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 /kmail/kmfoldermaildir.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 'kmail/kmfoldermaildir.h')
-rw-r--r-- | kmail/kmfoldermaildir.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kmail/kmfoldermaildir.h b/kmail/kmfoldermaildir.h index 8e09a6f3f..12f24942c 100644 --- a/kmail/kmfoldermaildir.h +++ b/kmail/kmfoldermaildir.h @@ -5,7 +5,7 @@ #include <kfileitem.h> -#include <qguardedptr.h> +#include <tqguardedptr.h> class KMFolderMaildir; namespace KMail { @@ -52,7 +52,7 @@ public: /** Remove (first occurrence of) given message from the folder. */ 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) { return KMFolderIndex::removeMsg(msgList, imapQuiet); } // Called by KMMsgBase::setStatus when status of a message has changed @@ -83,20 +83,20 @@ public: @param folderPath the full path of the folder as returned by location() @return 0 on success and an error code (cf. man 3 errno) otherwise */ - static int createMaildirFolders( const QString & folderPath ); + static int createMaildirFolders( const TQString & folderPath ); - static QString constructValidFileName( const QString & filename = QString(), + static TQString constructValidFileName( const TQString & filename = TQString(), KMMsgStatus status = KMMsgStatusNew ); - static bool removeFile( const QString & folderPath, - const QString & filename ); + static bool removeFile( const TQString & folderPath, + const TQString & filename ); /** @reimpl */ virtual int create(); /** Remove some deleted messages from the folder. Returns zero on success and an errno on failure. This is only for use from MaildirCompactionJob. */ - int compact( unsigned int startIndex, int nbMessages, const QStringList& entryList, bool& done ); + int compact( unsigned int startIndex, int nbMessages, const TQStringList& entryList, bool& done ); /** Remove deleted messages from the folder. Returns zero on success and an errno on failure. */ @@ -110,8 +110,8 @@ public: protected: 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; /** Load message from file and store it at given index. Returns 0 on failure. */ @@ -147,10 +147,10 @@ private slots: void slotDirSizeJobResult( KIO::Job* job ); private: - void readFileHeaderIntern(const QString& dir, const QString& file, KMMsgStatus status); - QString moveInternal(const QString& oldLoc, const QString& newLoc, KMMsgInfo* mi); - QString moveInternal(const QString& oldLoc, const QString& newLoc, QString& aFileName, KMMsgStatus status); - bool removeFile(const QString& filename); + void readFileHeaderIntern(const TQString& dir, const TQString& file, KMMsgStatus status); + TQString moveInternal(const TQString& oldLoc, const TQString& newLoc, KMMsgInfo* mi); + TQString moveInternal(const TQString& oldLoc, const TQString& newLoc, TQString& aFileName, KMMsgStatus status); + bool removeFile(const TQString& filename); /** Tests whether the contents of this folder is newer than the index. Returns IndexTooOld if the index is older than the contents. @@ -159,10 +159,10 @@ private: */ virtual IndexStatus indexStatus(); - typedef QPair<QGuardedPtr<const KMFolderMaildir>,KFileItemList> DirSizeJobQueueEntry; - static QValueList<DirSizeJobQueueEntry> s_DirSizeJobQueue; + typedef QPair<TQGuardedPtr<const KMFolderMaildir>,KFileItemList> DirSizeJobQueueEntry; + static TQValueList<DirSizeJobQueueEntry> s_DirSizeJobQueue; - QStrList mIdxToFileList; + TQStrList mIdxToFileList; int mIdxCount; mutable bool mCurrentlyCheckingFolderSize; }; |