36 #ifndef FREEBUSYMANAGER_H
37 #define FREEBUSYMANAGER_H
40 #include <libkcal/icalformat.h>
41 #include <libkcal/freebusycache.h>
45 namespace TDEIO { class Job; }
50 class FreeBusyManager;
61 FreeBusyManager *manager, const char *name = 0 );
66 void slotResult( TDEIO::Job * );
67 void slotData( TDEIO::Job *, const TQByteArray &data );
70 void freeBusyDownloaded( KCal::FreeBusy *, const TQString& email );
71 void freeBusyDownloadError( const TQString& email );
74 FreeBusyManager *mManager;
77 TQCString mFreeBusyData;
80 class FreeBusyManager : public TQObject, public KCal::FreeBusyCache
85 FreeBusyManager( TQObject *parent, const char *name );
90 void publishFreeBusy();
100 bool retrieveFreeBusy( const TQString &email, bool forceDownload );
102 void cancelRetrieval();
119 KURL freeBusyUrl( const TQString &email );
124 TQString freeBusyDir();
130 void setBrokenUrl( bool isBroken );
134 void slotPerhapsUploadFB();
140 void freeBusyRetrieved( KCal::FreeBusy *, const TQString &email );
143 void timerEvent( TQTimerEvent* );
148 TQString ownerFreeBusyAsString();
161 bool processRetrieveQueue();
164 void slotUploadFreeBusyResult( TDEIO::Job * );
165 void slotFreeBusyDownloadError( const TQString& email );
171 TQStringList mRetrieveQueue;
174 TQDateTime mNextUploadTime;
176 bool mUploadingFreeBusy;
Class for downloading FreeBusy Lists.
|