diff options
Diffstat (limited to 'kmail/kmfoldercachedimap.h')
-rw-r--r-- | kmail/kmfoldercachedimap.h | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/kmail/kmfoldercachedimap.h b/kmail/kmfoldercachedimap.h index 1ef82a3aa..726a7e06d 100644 --- a/kmail/kmfoldercachedimap.h +++ b/kmail/kmfoldercachedimap.h @@ -34,10 +34,10 @@ #include <kdialogbase.h> #include <kstandarddirs.h> -#include <qvaluelist.h> -#include <qvaluevector.h> -#include <qptrlist.h> -#include <qdialog.h> +#include <tqvaluelist.h> +#include <tqvaluevector.h> +#include <tqptrlist.h> +#include <tqdialog.h> #include "kmfoldermaildir.h" #include "kmfolderimap.h" @@ -73,7 +73,7 @@ public: RefreshCache }; - DImapTroubleShootDialog( QWidget* parent=0, const char* name=0 ); + DImapTroubleShootDialog( TQWidget* parent=0, const char* name=0 ); static int run(); @@ -81,8 +81,8 @@ private slots: void slotDone(); private: - QRadioButton *mIndexButton, *mCacheButton; - QComboBox *mIndexScope; + TQRadioButton *mIndexButton, *mCacheButton; + TQComboBox *mIndexScope; int rc; }; @@ -91,7 +91,7 @@ class KMFolderCachedImap : public KMFolderMaildir Q_OBJECT public: - static QString cacheLocation() { + static TQString cacheLocation() { return locateLocal("data", "kmail/dimap" ); } @@ -145,8 +145,8 @@ public: virtual void setSubfolderState(imapState state); /** The path to the imap folder on the server */ - void setImapPath(const QString &path); - QString imapPath() const { return mImapPath; } + void setImapPath(const TQString &path); + TQString imapPath() const { return mImapPath; } /** The highest UID in the folder */ void setLastUid( ulong uid ); @@ -156,8 +156,8 @@ public: KMMsgBase* findByUID( ulong uid ); /** The uidvalidity of the last update */ - void setUidValidity(const QString &validity) { mUidValidity = validity; } - QString uidValidity() const { return mUidValidity; } + void setUidValidity(const TQString &validity) { mUidValidity = validity; } + TQString uidValidity() const { return mUidValidity; } /** Forget which mails are considered locally present. Needed when uidvalidity * changes. */ @@ -168,7 +168,7 @@ public: KMAcctCachedImap* account() const; /** Returns the filename of the uidcache file */ - QString uidCacheLocation() const; + TQString uidCacheLocation() const; /** Read the uidValitidy and lastUid values from disk */ int readUidCache(); @@ -180,7 +180,7 @@ public: int progress() const { return mProgress; } /* Reimplemented from KMFolder. Moving is not supported, so aParent must be 0 */ - virtual int rename(const QString& aName, KMFolderDir *aParent=0); + virtual int rename(const TQString& aName, KMFolderDir *aParent=0); /** * Reimplemented from KMFolderMaildir @@ -206,7 +206,7 @@ public: /* Reimplemented from KMFolderMaildir */ virtual void removeMsg(int i, bool imapQuiet = false); - virtual void removeMsg(QPtrList<KMMessage> msgList, bool imapQuiet = false) + virtual void removeMsg(TQPtrList<KMMessage> msgList, bool imapQuiet = false) { FolderStorage::removeMsg(msgList, imapQuiet); } /// Is the folder readonly? @@ -269,7 +269,7 @@ public: void setQuotaInfo( const QuotaInfo & ); /// Return the list of ACL for this folder - typedef QValueVector<KMail::ACLListEntry> ACLList; + typedef TQValueVector<KMail::ACLListEntry> ACLList; const ACLList& aclList() const { return mACLList; } /// Set the list of ACL for this folder (for FolderDiaACLTab) @@ -277,9 +277,9 @@ public: // Reimplemented so the mStatusChangedLocally bool can be set virtual void setStatus( int id, KMMsgStatus status, bool toggle ); - virtual void setStatus( QValueList<int>& ids, KMMsgStatus status, bool toggle ); + virtual void setStatus( TQValueList<int>& ids, KMMsgStatus status, bool toggle ); - QString annotationFolderType() const { return mAnnotationFolderType; } + TQString annotationFolderType() const { return mAnnotationFolderType; } // For kmailicalifaceimpl only void updateAnnotationFolderType(); @@ -305,15 +305,15 @@ public: * List of namespaces that need to be queried * Is set by the account for the root folder when the listing starts */ - QStringList namespacesToList() { return mNamespacesToList; } - void setNamespacesToList( QStringList list ) { mNamespacesToList = list; } + TQStringList namespacesToList() { return mNamespacesToList; } + void setNamespacesToList( TQStringList list ) { mNamespacesToList = list; } /** * Specify an imap path that is used to create the folder on the server * Otherwise the parent folder is used to construct the path */ - const QString& imapPathForCreation() { return mImapPathCreation; } - void setImapPathForCreation( const QString& path ) { mImapPathCreation = path; } + const TQString& imapPathForCreation() { return mImapPathCreation; } + void setImapPathForCreation( const TQString& path ) { mImapPathCreation = path; } /** \reimp */ bool isCloseToQuota() const; @@ -322,10 +322,10 @@ public: int permanentFlags() const { return mPermanentFlags; } - QString folderAttributes() const { return mFolderAttributes; } + TQString folderAttributes() const { return mFolderAttributes; } protected slots: - void slotGetMessagesData(KIO::Job * job, const QByteArray & data); + void slotGetMessagesData(KIO::Job * job, const TQByteArray & data); void getMessagesResult(KMail::FolderJob *, bool lastSet); void slotGetLastMessagesResult(KMail::FolderJob *); void slotProgress(unsigned long done, unsigned long total); @@ -335,7 +335,7 @@ protected slots: void slotSubFolderComplete(KMFolderCachedImap*, bool); // Connected to the imap account - void slotConnectionResult( int errorCode, const QString& errorMsg ); + void slotConnectionResult( int errorCode, const TQString& errorMsg ); void slotCheckUidValidityResult( KMail::FolderJob* job ); void slotPermanentFlags( int flags ); @@ -347,11 +347,11 @@ protected slots: void slotReceivedACL( KMFolder*, KIO::Job*, const KMail::ACLList& ); void slotMultiSetACLResult(KIO::Job *); - void slotACLChanged( const QString&, int ); - void slotAnnotationResult(const QString& entry, const QString& value, bool found); - void slotAnnotationChanged( const QString& entry, const QString& attribute, const QString& value ); + void slotACLChanged( const TQString&, int ); + void slotAnnotationResult(const TQString& entry, const TQString& value, bool found); + void slotAnnotationChanged( const TQString& entry, const TQString& attribute, const TQString& value ); void slotDeleteMessagesResult(KMail::FolderJob *); - void slotImapStatusChanged(KMFolder* folder, const QString&, bool); + void slotImapStatusChanged(KMFolder* folder, const TQString&, bool); void slotStorageQuotaResult( const QuotaInfo& ); void slotQuotaResult( KIO::Job* job ); @@ -366,32 +366,32 @@ protected: void createNewFolders(); void listDirectory2(); - void createFoldersNewOnServerAndFinishListing( const QValueVector<int> foldersNewOnServer ); + void createFoldersNewOnServerAndFinishListing( const TQValueVector<int> foldersNewOnServer ); /** Utility methods for syncing. Finds new messages in the local cache that must be uploaded */ - virtual QValueList<unsigned long> findNewMessages(); + virtual TQValueList<unsigned long> findNewMessages(); /** Utility methods for syncing. Finds new subfolders in the local cache that must be created in the server */ - virtual QValueList<KMFolderCachedImap*> findNewFolders(); + virtual TQValueList<KMFolderCachedImap*> findNewFolders(); /** This returns false if we have subfolders. Otherwise it returns ::canRemoveFolder() */ virtual bool canRemoveFolder() const; /** Reimplemented from KMFolder */ virtual FolderJob* doCreateJob( KMMessage *msg, FolderJob::JobType jt, KMFolder *folder, - QString partSpecifier, const AttachmentStrategy *as ) const; - virtual FolderJob* doCreateJob( QPtrList<KMMessage>& msgList, const QString& sets, + TQString partSpecifier, const AttachmentStrategy *as ) const; + virtual FolderJob* doCreateJob( TQPtrList<KMMessage>& msgList, const TQString& sets, FolderJob::JobType jt, KMFolder *folder ) const; - virtual void timerEvent( QTimerEvent* ); + virtual void timerEvent( TQTimerEvent* ); /* update progress status */ - void newState( int progress, const QString& syncStatus ); + void newState( int progress, const TQString& syncStatus ); /** See if there is a better parent then this folder */ - KMFolderCachedImap* findParent( const QString& path, const QString& name ); + KMFolderCachedImap* findParent( const TQString& path, const TQString& name ); @@ -399,7 +399,7 @@ public slots: /** * Add the data a KIO::Job retrieves to the buffer */ - void slotSimpleData(KIO::Job * job, const QByteArray & data); + void slotSimpleData(KIO::Job * job, const TQByteArray & data); /** * Troubleshoot the IMAP cache @@ -410,15 +410,15 @@ public slots: * Connected to ListJob::receivedFolders * creates/removes folders */ - void slotListResult( const QStringList&, const QStringList&, - const QStringList&, const QStringList&, const ImapAccountBase::jobData& ); + void slotListResult( const TQStringList&, const TQStringList&, + const TQStringList&, const TQStringList&, const ImapAccountBase::jobData& ); /** * Connected to ListJob::receivedFolders * creates namespace folders */ - void slotCheckNamespace( const QStringList&, const QStringList&, - const QStringList&, const QStringList&, const ImapAccountBase::jobData& ); + void slotCheckNamespace( const TQStringList&, const TQStringList&, + const TQStringList&, const TQStringList&, const ImapAccountBase::jobData& ); private slots: void serverSyncInternal(); @@ -438,7 +438,7 @@ signals: private: void setReadOnly( bool readOnly ); - QString state2String( int state ) const; + TQString state2String( int state ) const; void rememberDeletion( int ); /** Rescue not yet synced messages to a lost+found folder in case syncing is not possible because the folder has been deleted on the @@ -479,34 +479,34 @@ private: int mProgress; int mStatusFlagsJobs; - QString mUidValidity; - QString mImapPath; + TQString mUidValidity; + TQString mImapPath; imapState mContentState, mSubfolderState; - QStringList mSubfolderNames, mSubfolderPaths, + TQStringList mSubfolderNames, mSubfolderPaths, mSubfolderMimeTypes, mSubfolderAttributes; - QString mFolderAttributes; - QString mAnnotationFolderType; + TQString mFolderAttributes; + TQString mAnnotationFolderType; IncidencesFor mIncidencesFor; bool mHasInbox; bool mIsSelected; bool mCheckFlags; bool mReadOnly; - mutable QGuardedPtr<KMAcctCachedImap> mAccount; + mutable TQGuardedPtr<KMAcctCachedImap> mAccount; - QIntDict<int> uidsOnServer; - QValueList<ulong> uidsForDeletionOnServer; - QValueList<KMail::CachedImapJob::MsgForDownload> mMsgsForDownload; - QValueList<ulong> mUidsForDownload; - QStringList foldersForDeletionOnServer; + TQIntDict<int> uidsOnServer; + TQValueList<ulong> uidsForDeletionOnServer; + TQValueList<KMail::CachedImapJob::MsgForDownload> mMsgsForDownload; + TQValueList<ulong> mUidsForDownload; + TQStringList foldersForDeletionOnServer; - QValueList<KMFolderCachedImap*> mSubfoldersForSync; + TQValueList<KMFolderCachedImap*> mSubfoldersForSync; KMFolderCachedImap* mCurrentSubfolder; /** Mapping uid -> index Keep updated in addMsg, take and removeMsg. This is used to lookup whether a mail is present locally or not. */ - QMap<ulong,int> uidMap; + TQMap<ulong,int> uidMap; bool uidMapDirty; void reloadUidMap(); int uidWriteTimer; @@ -549,16 +549,16 @@ private: /// Set to true when the "incidences-for" annotation needs to be set on the next sync bool mIncidencesForChanged; - QStringList mNamespacesToList; + TQStringList mNamespacesToList; int mNamespacesToCheck; bool mPersonalNamespacesCheckDone; - QString mImapPathCreation; + TQString mImapPathCreation; QuotaInfo mQuotaInfo; - QMap<ulong,void*> mDeletedUIDsSinceLastSync; + TQMap<ulong,void*> mDeletedUIDsSinceLastSync; bool mAlarmsBlocked; - QValueList<KMFolder*> mToBeDeletedAfterRescue; + TQValueList<KMFolder*> mToBeDeletedAfterRescue; int mRescueCommandCount; int mPermanentFlags; |