korganizer
kogroupware.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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef KOGROUPWARE_H
00038 #define KOGROUPWARE_H
00039
00040 #include <libkcal/calendarresources.h>
00041 #include <libkcal/icalformat.h>
00042 #include <libkcal/scheduler.h>
00043 #include <qstring.h>
00044
00045 #include <kio/job.h>
00046
00047 using namespace KCal;
00048
00049 namespace KCal {
00050 class Calendar;
00051 class Event;
00052 }
00053 class CalendarView;
00054 class FreeBusyManager;
00055
00056 namespace KOrg {
00057 class IncidenceChangerBase;
00058 }
00059
00060 using namespace KOrg;
00061
00062 class KOGroupware : public QObject
00063 {
00064 Q_OBJECT
00065 public:
00066 static KOGroupware* create( CalendarView*, KCal::CalendarResources* );
00067 static KOGroupware* instance();
00068
00069 FreeBusyManager *freeBusyManager();
00070
00075 bool sendICalMessage( QWidget* parent, KCal::Scheduler::Method method,
00076 Incidence* incidence, bool isDeleting = false,
00077 bool statusChanged = false );
00078
00079
00080 enum EventState { Accepted, ConditionallyAccepted, Declined, Request };
00081
00082
00083 QString msTNEFToVPart( const QByteArray& tnef );
00084
00085 private slots:
00087 void incomingDirChanged( const QString& path );
00088
00090 void slotViewNewIncidenceChanger( IncidenceChangerBase* changer );
00091
00092 void initialCheckForChanges();
00093 protected:
00094 KOGroupware( CalendarView*, KCal::CalendarResources* );
00095
00096 private:
00097 static KOGroupware *mInstance;
00098 KCal::ICalFormat mFormat;
00099 CalendarView *mView;
00100 KCal::CalendarResources *mCalendar;
00101 static FreeBusyManager *mFreeBusyManager;
00102 };
00103
00104 #endif
|