korganizer
kocorehelper.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _KOCOREHELPER_H
00027 #define _KOCOREHELPER_H
00028
00029
00030 #include "korganizer/corehelper.h"
00031 #include "koprefs.h"
00032 #include "koglobals.h"
00033 #include "kocore.h"
00034
00035 class KCalendarSystem;
00036
00037 class KOCoreHelper : public KOrg::CoreHelper
00038 {
00039 public:
00040 KOCoreHelper() {}
00041 virtual ~KOCoreHelper() {}
00042
00043 virtual QColor textColor( const QColor &bgColor ) { return getTextColor( bgColor ); }
00044 virtual QColor categoryColor( const QStringList &cats );
00045 virtual QString holidayString( const QDate &dt );
00046 virtual QTime dayStart() { return KOPrefs::instance()->mDayBegins.time(); }
00047 virtual const KCalendarSystem *calendarSystem() { return KOGlobals::self()->calendarSystem(); }
00048 virtual KOrg::PrintPlugin::List loadPrintPlugins() { return KOCore::self()->loadPrintPlugins(); }
00049 virtual bool isWorkingDay( const QDate &dt ) { return KOGlobals::self()->isWorkDay( dt ); }
00050 };
00051
00052 #endif
|