kocore.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KOCORE_H
00024 #define KOCORE_H
00025
00026 #include <ktrader.h>
00027
00028 #include <calendar/calendardecoration.h>
00029 #include <korganizer/part.h>
00030
00031 #include <calendarsystem/kcalendarsystem.h>
00032
00033 class KOCore {
00034 public:
00035 static KOCore *self();
00036
00037 KTrader::OfferList availablePlugins(const QString &type);
00038
00039 KOrg::Plugin *loadPlugin(KService::Ptr service);
00040 KOrg::Plugin *loadPlugin(const QString &);
00041
00042 KOrg::CalendarDecoration *loadCalendarDecoration(KService::Ptr service);
00043 KOrg::CalendarDecoration *loadCalendarDecoration(const QString &);
00044
00045 KOrg::Part *loadPart(KService::Ptr,KOrg::MainWindow *parent);
00046 KOrg::Part *loadPart(const QString &,KOrg::MainWindow *parent);
00047
00048 KOrg::CalendarDecoration::List calendarDecorations();
00049 KOrg::Part::List loadParts(KOrg::MainWindow *parent);
00050
00056 void unloadParts(KOrg::MainWindow *parent, KOrg::Part::List& parts);
00057 void unloadPlugins();
00058
00059 void reloadPlugins();
00060
00065 KOrg::Part::List reloadParts(KOrg::MainWindow *parent, KOrg::Part::List& parts);
00066
00067 QString holiday( const QDate & );
00068
00069 KCalendarSystem *calendarSystem();
00070
00071 protected:
00072 KOCore();
00073
00074 private:
00075 static KOCore *mSelf;
00076
00077 KOrg::CalendarDecoration::List mCalendarDecorations;
00078 bool mCalendarDecorationsLoaded;
00079
00080 KOrg::CalendarDecoration *mHolidays;
00081
00082 KCalendarSystem *mCalendarSystem;
00083 };
00084
00085 #endif
This file is part of the documentation for kdelibs Version 3.1.5.