SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / korganizer / kocorehelper.h
blob17bd018ce65fcd8b72498873a72463ad794c671f
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 1999 Preston Brown <pbrown@kde.org>
5 Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
6 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 As a special exception, permission is given to link this program
23 with any edition of Qt, and distribute the resulting executable,
24 without including the source code for Qt in the source distribution.
27 #ifndef KORG_KOCOREHELPER_H
28 #define KORG_KOCOREHELPER_H
30 #include "kocore.h"
31 #include "koglobals.h"
32 #include "prefs/koprefs.h"
33 #include "corehelper.h"
35 class KOCoreHelper : public KOrg::CoreHelper
37 public:
38 KOCoreHelper() {}
39 virtual ~KOCoreHelper() {}
41 QColor categoryColor(const QStringList &cats) Q_DECL_OVERRIDE;
43 QString holidayString(const QDate &dt) Q_DECL_OVERRIDE;
45 QTime dayStart() Q_DECL_OVERRIDE {
46 return KOPrefs::instance()->mDayBegins.time();
49 const KCalendarSystem *calendarSystem() Q_DECL_OVERRIDE {
50 return KOGlobals::self()->calendarSystem();
54 #endif