From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/kmfolderindex.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'kmail/kmfolderindex.h') diff --git a/kmail/kmfolderindex.h b/kmail/kmfolderindex.h index 2762d143..b0850895 100644 --- a/kmail/kmfolderindex.h +++ b/kmail/kmfolderindex.h @@ -37,23 +37,24 @@ class KMFolderIndex: public FolderStorage { Q_OBJECT + TQ_OBJECT //TODO:Have to get rid of this friend declaration and add necessary pure - //virtuals to kmfolder.h so that KMMsgBase::parent() can be a plain KMFolder + //virtuals to kmfolder.h so that KMMsgBase::tqparent() can be a plain KMFolder //rather than a KMFolderIndex. Need this for database indices. friend class ::KMMsgBase; public: /** This enum indicates the status of the index file. It's returned by - indexStatus(). + indextqStatus(). */ - enum IndexStatus { IndexOk, + enum IndextqStatus { IndexOk, IndexMissing, IndexCorrupt, IndexTooOld }; - /** Usually a parent is given. But in some cases there is no - fitting parent object available. Then the name of the folder + /** Usually a tqparent is given. But in some cases there is no + fitting tqparent object available. Then the name of the folder is used as the absolute path to the folder file. */ KMFolderIndex(KMFolder* folder, const char* name=0); virtual ~KMFolderIndex(); @@ -67,8 +68,8 @@ public: virtual const KMMsgBase* getMsgBase(int idx) const { return mMsgList[idx]; } virtual KMMsgBase* getMsgBase(int idx) { return mMsgList[idx]; } - virtual int find(const KMMsgBase* msg) const { return mMsgList.find((KMMsgBase*)msg); } - int find( const KMMessage * msg ) const { return FolderStorage::find( msg ); } + virtual int tqfind(const KMMsgBase* msg) const { return mMsgList.tqfind((KMMsgBase*)msg); } + int tqfind( const KMMessage * msg ) const { return FolderStorage::tqfind( msg ); } /** Registered unique serial number for the index file */ int serialIndexId() const { return mIndexId; } @@ -90,7 +91,7 @@ public: Should return IndexOk if the folder doesn't exist anymore "physically" or if the index is not older than the contents. */ - virtual IndexStatus indexStatus() = 0; + virtual IndextqStatus indextqStatus() = 0; public slots: /** Incrementally update the index if possible else call writeIndex */ -- cgit v1.2.3