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 "koglobals.h"
00041
00042 #include <libkcal/calendarresources.h>
00043 #include <libkcal/icalformat.h>
00044 #include <libkcal/scheduler.h>
00045
00046 #include <kio/job.h>
00047
00048 #include <qstring.h>
00049
00050 using namespace KCal;
00051
00052 namespace KCal {
00053 class Calendar;
00054 class Event;
00055 }
00056 class CalendarView;
00057 class FreeBusyManager;
00058
00059 namespace KOrg {
00060 class IncidenceChangerBase;
00061 }
00062
00063 using namespace KOrg;
00064
00065 class KOGroupware : public QObject
00066 {
00067 Q_OBJECT
00068 public:
00069 static KOGroupware* create( CalendarView*, KCal::CalendarResources* );
00070 static void destroy();
00071 static KOGroupware* instance();
00072
00073 FreeBusyManager *freeBusyManager();
00074
00083 bool sendICalMessage( QWidget *parent, KCal::Scheduler::Method method,
00084 Incidence *incidence,
00085 Incidence *oldincidence,
00086 KOGlobals::HowChanged action,
00087 bool attendeeStatusChanged,
00088 bool useLastDialogAnswer = false );
00089
00095 void sendCounterProposal( KCal::Calendar* calendar, KCal::Event* oldEvent, KCal::Event *newEvent ) const;
00096
00097
00098 QString msTNEFToVPart( const QByteArray& tnef );
00099
00100
00101
00102 void setDoNotNotify( bool notify ) { mDoNotNotify = notify; }
00103 bool doNotNotify() { return mDoNotNotify; }
00104
00105 private slots:
00107 void incomingDirChanged( const QString& path );
00108
00110 void slotViewNewIncidenceChanger( IncidenceChangerBase* changer );
00111
00112 void initialCheckForChanges();
00113 protected:
00114 KOGroupware( CalendarView*, KCal::CalendarResources* );
00115
00116 private:
00117 static KOGroupware *mInstance;
00118 KCal::ICalFormat mFormat;
00119 CalendarView *mView;
00120 KCal::CalendarResources *mCalendar;
00121 static FreeBusyManager *mFreeBusyManager;
00122 bool mDoNotNotify;
00123
00127 int lastUsedDialogAnswer;
00128 };
00129
00130 #endif
|