kogroupware.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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef KOGROUPWARE_H
00038 #define KOGROUPWARE_H
00039
00040 #include <libkcal/icalformat.h>
00041 #include <libkcal/scheduler.h>
00042 #include <qstring.h>
00043
00044 #include <kio/job.h>
00045
00046 using namespace KCal;
00047
00048 namespace KCal {
00049 class Calendar;
00050 class Event;
00051 }
00052 class CalendarView;
00053 class FreeBusyManager;
00054
00055 class KOGroupware : public QObject
00056 {
00057 Q_OBJECT
00058 public:
00059 static KOGroupware* create( CalendarView*, KCal::Calendar* );
00060 static KOGroupware* instance();
00061
00062 FreeBusyManager *freeBusyManager();
00063
00068 bool sendICalMessage( QWidget* parent, KCal::Scheduler::Method method,
00069 Incidence* incidence, bool isDeleting = false );
00070
00071
00072 enum EventState { Accepted, ConditionallyAccepted, Declined, Request };
00073
00074 private slots:
00076 void incomingDirChanged( const QString& path );
00077
00078 protected:
00079 KOGroupware( CalendarView*, KCal::Calendar* );
00080
00081 private:
00082 static KOGroupware *mInstance;
00083 KCal::ICalFormat mFormat;
00084 CalendarView *mView;
00085 KCal::Calendar *mCalendar;
00086 static FreeBusyManager *mFreeBusyManager;
00087 };
00088
00089 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.