korganizer

kocorehelper.h
1/*
2 This file is part of KOrganizer.
3
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>
7
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.
12
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.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22 As a special exception, permission is given to link this program
23 with any edition of TQt, and distribute the resulting executable,
24 without including the source code for TQt in the source distribution.
25*/
26#ifndef _KOCOREHELPER_H
27#define _KOCOREHELPER_H
28
29
30#include "korganizer/corehelper.h"
31#include "koprefs.h"
32#include "koglobals.h"
33#include "kocore.h"
34
35class KCalendarSystem;
36
37class KOCoreHelper : public KOrg::CoreHelper
38{
39 public:
40 KOCoreHelper() {}
41 virtual ~KOCoreHelper() {}
42
43 virtual TQColor textColor( const TQColor &bgColor ) { return getTextColor( bgColor ); }
44 virtual TQColor categoryColor( const TQStringList &cats );
45 virtual TQString holidayString( const TQDate &dt );
46 virtual TQTime dayStart() { return KOPrefs::instance()->mDayBegins.time(); }
47 virtual const KCalendarSystem *calendarSystem() { return KOGlobals::self()->calendarSystem(); }
48 virtual KOrg::PrintPlugin::List loadPrintPlugins() { return KOCore::self()->loadPrintPlugins(); }
49 virtual bool isWorkingDay( const TQDate &dt ) { return KOGlobals::self()->isWorkDay( dt ); }
50};
51
52#endif