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 /kresources/lib/groupwaredataadaptor.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 'kresources/lib/groupwaredataadaptor.h')
-rw-r--r-- | kresources/lib/groupwaredataadaptor.h | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/kresources/lib/groupwaredataadaptor.h b/kresources/lib/groupwaredataadaptor.h index 5e7aec49e..52021a07b 100644 --- a/kresources/lib/groupwaredataadaptor.h +++ b/kresources/lib/groupwaredataadaptor.h @@ -26,9 +26,9 @@ #include <groupwareresourcejob.h> #include <folderlister.h> #include <kurl.h> -#include <qstring.h> +#include <tqstring.h> #include <libkcal/listbase.h> -#include <qobject.h> +#include <tqobject.h> #include <kdepimmacros.h> @@ -59,14 +59,14 @@ class KDE_EXPORT GroupwareUploadItem KURL url() const { return mUrl; } void setUrl( const KURL &url ) { mUrl = url; } - QString uid() const { return mUid; } - void setUid( const QString &uid ) { mUid = uid; } + TQString uid() const { return mUid; } + void setUid( const TQString &uid ) { mUid = uid; } - QString fingerprint() const { return mFingerprint; } - void setFingerprint( const QString &fpr ) { mFingerprint = fpr; } + TQString fingerprint() const { return mFingerprint; } + void setFingerprint( const TQString &fpr ) { mFingerprint = fpr; } - virtual QString data() const { return mData; } - virtual void setData( const QString &data ) { mData = data; } + virtual TQString data() const { return mData; } + virtual void setData( const TQString &data ) { mData = data; } virtual KURL adaptNewItemUrl( GroupwareDataAdaptor *adaptor, const KURL &url ); @@ -81,9 +81,9 @@ class KDE_EXPORT GroupwareUploadItem KPIM::FolderLister::ContentType mItemType; private: KURL mUrl; - QString mUid; - QString mData; - QString mFingerprint; + TQString mUid; + TQString mData; + TQString mFingerprint; UploadType mType; }; @@ -108,14 +108,14 @@ Q_OBJECT Set progress message shown by progress manager during download. It will be interpreted as rich text, so it might have to be escaped. */ - void setDownloadProgressMessage( const QString &v ) + void setDownloadProgressMessage( const TQString &v ) { mDownloadProgressMessage = v; } /** Get download progress message. See setDownloadProgressMessage(). */ - QString downloadProgressMessage() const + TQString downloadProgressMessage() const { return mDownloadProgressMessage; } @@ -124,14 +124,14 @@ Q_OBJECT Set progress message shown by progress manager during upload. It will be interpreted as rich text, so it might have to be escaped. */ - void setUploadProgressMessage( const QString &v ) + void setUploadProgressMessage( const TQString &v ) { mUploadProgressMessage = v; } /** Get upload progress message. See setUploadProgressMessage(). */ - QString uploadProgressMessage() const + TQString uploadProgressMessage() const { return mUploadProgressMessage; } @@ -154,14 +154,14 @@ Q_OBJECT /** Set user name. */ - void setUser( const QString &v ) + void setUser( const TQString &v ) { mUser = v; } /** Get user. See setUser(). */ - QString user() const + TQString user() const { return mUser; } @@ -169,14 +169,14 @@ Q_OBJECT /** Set password of user. */ - void setPassword( const QString &v ) + void setPassword( const TQString &v ) { mPassword = v; } /** Get password. See setPassword(). */ - QString password() const + TQString password() const { return mPassword; } @@ -221,24 +221,24 @@ Q_OBJECT virtual void customAdaptUploadUrl( KURL &/*url*/ ) {} /** Return the mime-type expected by the resource. */ - virtual QString mimeType() const = 0; + virtual TQString mimeType() const = 0; /** Identifier of the Resource. Used for the custom fields where resource-specific information is stored. */ - virtual QCString identifier() const = 0; + virtual TQCString identifier() const = 0; /** Returns whether the item with the given localId exists locally. */ - virtual bool localItemExists( const QString &localId ) = 0; + virtual bool localItemExists( const TQString &localId ) = 0; /** Returns whether the item was changed locally since the last download from the server. */ - virtual bool localItemHasChanged( const QString &localId ) = 0; + virtual bool localItemHasChanged( const TQString &localId ) = 0; /** Remove the item from the local cache. */ - virtual void deleteItem( const QString &localId ) = 0; + virtual void deleteItem( const TQString &localId ) = 0; /** Removed the changed flag for the item with the given uid. */ - virtual void clearChange( const QString &uid ) = 0; + virtual void clearChange( const TQString &uid ) = 0; virtual FolderLister::Entry::List defaultFolders(); - virtual QValueList<FolderLister::ContentType> supportedTypes() = 0; + virtual TQValueList<FolderLister::ContentType> supportedTypes() = 0; virtual bool supports( FolderLister::ContentType type ) { return supportedTypes().contains( type ); } @@ -248,13 +248,13 @@ Q_OBJECT /** Creates the KIO::Job for logging in to the server. This is only * called if the GroupwareDataAdaptor::GWResNeedsLogin flag is set * for the resource. */ - virtual KIO::Job *createLoginJob( const KURL &, const QString &/*user*/, - const QString &/*password*/ ) { return 0; } + virtual KIO::Job *createLoginJob( const KURL &, const TQString &/*user*/, + const TQString &/*password*/ ) { return 0; } /** Creates the KIO::Job for logging off the server. This is only * called if the GroupwareDataAdaptor::GWResNeedsLogoff flag is set * for the resource. */ - virtual KIO::Job *createLogoffJob( const KURL &, const QString &/*user*/, - const QString &/*password*/ ) { return 0; } + virtual KIO::Job *createLogoffJob( const KURL &, const TQString &/*user*/, + const TQString &/*password*/ ) { return 0; } /** Creates the KIO::Job for listing all subfolders of the given url. */ virtual KIO::Job *createListFoldersJob ( const KURL & ) = 0; /** Creates the KIO::TransferJob for listing all items in the given url. */ @@ -263,7 +263,7 @@ Q_OBJECT virtual KIO::TransferJob *createDownloadJob( const KURL &, FolderLister::ContentType ) = 0; /** Creates the KIO::TransferJob for downloading a list of items items. */ - virtual KIO::TransferJob *createDownloadJob( const QMap<KURL,FolderLister::ContentType> & ) { return 0; } + virtual KIO::TransferJob *createDownloadJob( const TQMap<KURL,FolderLister::ContentType> & ) { return 0; } /** Create the job to remove the deletedItems from the server. The base URL of the server is passed as uploadurl. */ virtual KIO::Job *createRemoveJob( const KURL &, @@ -298,21 +298,21 @@ Q_OBJECT /** Extract the list of items on the server and the list of items to be downloaded from the results of the job (the job was created by createListitemsJob). */ - virtual bool interpretListItemsJob( KIO::Job *, const QString &jobData ) = 0; - virtual bool interpretDownloadItemsJob( KIO::Job *job, const QString &jobData ) = 0; - virtual bool interpretRemoveJob( KIO::Job *job, const QString &jobData ); - virtual bool interpretUploadJob( KIO::Job *job, const QString &/*jobData*/ ); - virtual bool interpretUploadNewJob( KIO::Job *job, const QString &/*jobData*/ ); + virtual bool interpretListItemsJob( KIO::Job *, const TQString &jobData ) = 0; + virtual bool interpretDownloadItemsJob( KIO::Job *job, const TQString &jobData ) = 0; + virtual bool interpretRemoveJob( KIO::Job *job, const TQString &jobData ); + virtual bool interpretUploadJob( KIO::Job *job, const TQString &/*jobData*/ ); + virtual bool interpretUploadNewJob( KIO::Job *job, const TQString &/*jobData*/ ); virtual void processDownloadListItem( const KURL &entry, - const QString &newFingerprint, KPIM::FolderLister::ContentType type ); + const TQString &newFingerprint, KPIM::FolderLister::ContentType type ); /** Return the default file name for a new item. */ - virtual QString defaultNewItemName( GroupwareUploadItem * ) + virtual TQString defaultNewItemName( GroupwareUploadItem * ) { - return QString::null; + return TQString::null; } - virtual QString uidFromJob( KIO::Job *job ) const; - virtual void setUidForJob( KIO::Job *job, const QString &uid ); + virtual TQString uidFromJob( KIO::Job *job ) const; + virtual void setUidForJob( KIO::Job *job, const TQString &uid ); enum { @@ -328,7 +328,7 @@ Q_OBJECT signals: - void folderInfoRetrieved( const KURL &href, const QString &name, + void folderInfoRetrieved( const KURL &href, const TQString &name, KPIM::FolderLister::ContentType ); void folderSubitemRetrieved( const KURL &, bool isFolder ); @@ -336,26 +336,26 @@ Q_OBJECT /** passed the whole remote url (including hostname) to the receiver */ void itemOnServer( const KURL &remoteURL ); - void itemDownloaded( const QString &localID, const KURL &remoteURL, - const QString &fingerprint ); - void itemDeleted( const QString &localID, const KURL &remoteURL ); - void itemUploaded( const QString &localID, const KURL &remoteURL ); - void itemUploadedNew( const QString &localID, const KURL &remoteURL ); + void itemDownloaded( const TQString &localID, const KURL &remoteURL, + const TQString &fingerprint ); + void itemDeleted( const TQString &localID, const KURL &remoteURL ); + void itemUploaded( const TQString &localID, const KURL &remoteURL ); + void itemUploadedNew( const TQString &localID, const KURL &remoteURL ); - void itemDownloadError( const KURL &remoteURL, const QString &error ); - void itemDeletionError( const KURL &remoteURL, const QString &error ); - void itemUploadError( const KURL &remoteURL, const QString &error ); - void itemUploadNewError( const QString &localID, const QString &error ); + void itemDownloadError( const KURL &remoteURL, const TQString &error ); + void itemDeletionError( const KURL &remoteURL, const TQString &error ); + void itemUploadError( const KURL &remoteURL, const TQString &error ); + void itemUploadNewError( const TQString &localID, const TQString &error ); private: FolderLister *mFolderLister; - QString mDownloadProgressMessage; - QString mUploadProgressMessage; + TQString mDownloadProgressMessage; + TQString mUploadProgressMessage; KURL mBaseURL; - QString mUser; - QString mPassword; + TQString mUser; + TQString mPassword; KPIM::IdMapper *mIdMapper; - QMap<KIO::Job*,QString> mJobUIDMap; + TQMap<KIO::Job*,TQString> mJobUIDMap; }; } |