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
00084 void sendCounterProposal( KCal::Calendar* calendar, KCal::Event* oldEvent, KCal::Event *newEvent ) const;
00085
00086
00087 enum EventState { Accepted, ConditionallyAccepted, Declined, Request };
00088
00089
00090 QString msTNEFToVPart( const QByteArray& tnef );
00091
00092
00093
00094 void setDoNotNotify( bool notify ) { mDoNotNotify = notify; }
00095 bool doNotNotify() { return mDoNotNotify; }
00096
00097 private slots:
00099 void incomingDirChanged( const QString& path );
00100
00102 void slotViewNewIncidenceChanger( IncidenceChangerBase* changer );
00103
00104 void initialCheckForChanges();
00105 protected:
00106 KOGroupware( CalendarView*, KCal::CalendarResources* );
00107
00108 private:
00109 static KOGroupware *mInstance;
00110 KCal::ICalFormat mFormat;
00111 CalendarView *mView;
00112 KCal::CalendarResources *mCalendar;
00113 static FreeBusyManager *mFreeBusyManager;
00114 bool mDoNotNotify;
00115 };
00116
00117 #endif
|