diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/freebusymanager.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/freebusymanager.h')
-rw-r--r-- | korganizer/freebusymanager.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/korganizer/freebusymanager.h b/korganizer/freebusymanager.h index c51af125b..a91d9f36d 100644 --- a/korganizer/freebusymanager.h +++ b/korganizer/freebusymanager.h @@ -39,8 +39,8 @@ #include <kurl.h> #include <libkcal/icalformat.h> #include <libkcal/freebusycache.h> -#include <qstring.h> -#include <qobject.h> +#include <tqstring.h> +#include <tqobject.h> namespace KIO { class Job; } namespace KCal { @@ -56,31 +56,31 @@ class FreeBusyDownloadJob : public QObject { Q_OBJECT public: - FreeBusyDownloadJob( const QString &email, const KURL &url, + FreeBusyDownloadJob( const TQString &email, const KURL &url, FreeBusyManager *manager, const char *name = 0 ); virtual ~FreeBusyDownloadJob(); protected slots: void slotResult( KIO::Job * ); - void slotData( KIO::Job *, const QByteArray &data ); + void slotData( KIO::Job *, const TQByteArray &data ); signals: - void freeBusyDownloaded( KCal::FreeBusy *, const QString& email ); - void freeBusyDownloadError( const QString& email ); + void freeBusyDownloaded( KCal::FreeBusy *, const TQString& email ); + void freeBusyDownloadError( const TQString& email ); private: FreeBusyManager *mManager; - QString mEmail; + TQString mEmail; - QCString mFreeBusyData; + TQCString mFreeBusyData; }; -class FreeBusyManager : public QObject, public KCal::FreeBusyCache +class FreeBusyManager : public TQObject, public KCal::FreeBusyCache { Q_OBJECT public: - FreeBusyManager( QObject *parent, const char *name ); + FreeBusyManager( TQObject *parent, const char *name ); void setCalendar( KCal::Calendar * ); @@ -91,35 +91,35 @@ class FreeBusyManager : public QObject, public KCal::FreeBusyCache KOrganizer downloads somebody else's free/busy list The call is asynchronous, and upon download, the receivers slot specified by member will be called. - The slot should be of type "member(const QString&, KCal::FreeBusy*)" + The slot should be of type "member(const TQString&, KCal::FreeBusy*)" Return true if a download is initiated, and false otherwise */ - bool retrieveFreeBusy( const QString &email, bool forceDownload ); + bool retrieveFreeBusy( const TQString &email, bool forceDownload ); void cancelRetrieval(); - KCal::FreeBusy *iCalToFreeBusy( const QCString &data ); + KCal::FreeBusy *iCalToFreeBusy( const TQCString &data ); /** Load freebusy information belonging to email. */ - KCal::FreeBusy *loadFreeBusy( const QString &email ); + KCal::FreeBusy *loadFreeBusy( const TQString &email ); /** Store freebusy information belonging to email. */ bool saveFreeBusy( KCal::FreeBusy *freebusy, const KCal::Person &person ); -// bool saveFreeBusy( KCal::FreeBusy *, const QString &email ); +// bool saveFreeBusy( KCal::FreeBusy *, const TQString &email ); /** Return URL of freeBusy information for given email address. */ - KURL freeBusyUrl( const QString &email ); + KURL freeBusyUrl( const TQString &email ); /** Return directory used for stroing free/busy information. */ - QString freeBusyDir(); + TQString freeBusyDir(); /** Change the broken Url status @@ -135,15 +135,15 @@ class FreeBusyManager : public QObject, public KCal::FreeBusyCache /** This signal is emitted to return results of free/busy requests. */ - void freeBusyRetrieved( KCal::FreeBusy *, const QString &email ); + void freeBusyRetrieved( KCal::FreeBusy *, const TQString &email ); protected: - void timerEvent( QTimerEvent* ); + void timerEvent( TQTimerEvent* ); /** Return free/busy list of calendar owner as iCalendar string. */ - QString ownerFreeBusyAsString(); + TQString ownerFreeBusyAsString(); /** Return free/busy list of calendar owner. @@ -153,23 +153,23 @@ class FreeBusyManager : public QObject, public KCal::FreeBusyCache /** Convert free/busy object to iCalendar string. */ - QString freeBusyToIcal( KCal::FreeBusy * ); + TQString freeBusyToIcal( KCal::FreeBusy * ); protected slots: bool processRetrieveQueue(); private slots: void slotUploadFreeBusyResult( KIO::Job * ); - void slotFreeBusyDownloadError( const QString& email ); + void slotFreeBusyDownloadError( const TQString& email ); private: KCal::Calendar *mCalendar; KCal::ICalFormat mFormat; - QStringList mRetrieveQueue; + TQStringList mRetrieveQueue; // Free/Busy uploading - QDateTime mNextUploadTime; + TQDateTime mNextUploadTime; int mTimerID; bool mUploadingFreeBusy; bool mBrokenUrl; |