adcalendar_gui.h
00001
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 ADCALENDAR_GUI_H
00027 #define ADCALENDAR_GUI_H
00028
00029 #include <kapplication.h>
00030 #include <kaboutdata.h>
00031
00032 #include "adcalendarbase.h"
00033
00034
00035 class ADCalendarGui : public ADCalendarBase
00036 {
00037 public:
00038 ADCalendarGui(const QString& url, const QCString& appname, Type);
00039 ~ADCalendarGui() { }
00040
00041 bool loadFile() { return loadFile_(kapp->aboutData()->appName()); }
00042
00043 void setEnabled( bool e ) { mEnabled = e; }
00044 bool enabled() const { return mEnabled; }
00045
00046 void setAvailable( bool a ) { mAvailable = a; }
00047 bool available() const { return mAvailable; }
00048
00049 void setEventHandled(const Event*, const QValueList<QDateTime> &) {}
00050 bool eventHandled(const Event*, const QValueList<QDateTime> &) { return false; }
00051
00052 void setEventPending(const QString&) {}
00053 bool getEventPending(QString&) { return false; }
00054
00055 private:
00056 bool mAvailable;
00057 bool mEnabled;
00058 };
00059
00060 class ADCalendarGuiFactory : public ADCalendarBaseFactory
00061 {
00062 public:
00063 ADCalendarGui *create(const QString& url, const QCString& appname,
00064 ADCalendarBase::Type);
00065 };
00066
00067
00068 #endif
This file is part of the documentation for kdelibs Version 3.1.4.