korganizer
kogroupware.h
Go to the documentation of this file.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 #ifndef KOGROUPWARE_H
00037 #define KOGROUPWARE_H
00038
00039 #include <kcal/calendarresources.h>
00040 #include <kcal/icalformat.h>
00041 #include <kcal/scheduler.h>
00042
00043 #include <kio/job.h>
00044
00045 #include <QString>
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::iTIPMethod method,
00076 Incidence *incidence, bool isDeleting = false,
00077 bool statusChanged = false );
00078
00084 void sendCounterProposal( KCal::Calendar* calendar, KCal::Event* oldEvent, KCal::Event *newEvent ) const;
00085
00086
00087 enum EventState {
00088 Accepted,
00089 ConditionallyAccepted,
00090 Declined,
00091 Request
00092 };
00093
00094 private slots:
00096 void incomingDirChanged( const QString &path );
00097
00099 void slotViewNewIncidenceChanger( IncidenceChangerBase *changer );
00100
00101 void initialCheckForChanges();
00102
00103 protected:
00104 KOGroupware( CalendarView *, KCal::CalendarResources * );
00105
00106 private:
00107 static KOGroupware *mInstance;
00108 KCal::ICalFormat mFormat;
00109 CalendarView *mView;
00110 KCal::CalendarResources *mCalendar;
00111 static FreeBusyManager *mFreeBusyManager;
00112 };
00113
00114 #endif