File indexing completed on 2024-05-12 05:21:23
0001 /* 0002 This file is part of KOrganizer. 0003 0004 SPDX-FileCopyrightText: 1999 Preston Brown <pbrown@kde.org> 0005 SPDX-FileCopyrightText: 2000, 2001 Cornelius Schumacher <schumacher@kde.org> 0006 SPDX-FileCopyrightText: 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0009 */ 0010 0011 #pragma once 0012 0013 #include "corehelper.h" 0014 #include "kocore.h" 0015 #include "koglobals.h" 0016 #include "prefs/koprefs.h" 0017 0018 class KOCoreHelper : public KOrg::CoreHelper 0019 { 0020 public: 0021 KOCoreHelper() = default; 0022 0023 ~KOCoreHelper() override = default; 0024 0025 [[nodiscard]] QColor categoryColor(const QStringList &cats) override; 0026 0027 [[nodiscard]] QString holidayString(const QDate &dt) override; 0028 0029 [[nodiscard]] QTime dayStart() override 0030 { 0031 return KOPrefs::instance()->mDayBegins.time(); 0032 } 0033 };