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 private slots:
00094 void incomingDirChanged( const QString& path );
00095
00097 void slotViewNewIncidenceChanger( IncidenceChangerBase* changer );
00098
00099 void initialCheckForChanges();
00100 protected:
00101 KOGroupware( CalendarView*, KCal::CalendarResources* );
00102
00103 private:
00104 static KOGroupware *mInstance;
00105 KCal::ICalFormat mFormat;
00106 CalendarView *mView;
00107 KCal::CalendarResources *mCalendar;
00108 static FreeBusyManager *mFreeBusyManager;
00109 };
00110
00111 #endif
|