summaryrefslogtreecommitdiffstats
path: root/kmail/kmmsgdict.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kmail/kmmsgdict.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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/kmmsgdict.cpp')
-rw-r--r--kmail/kmmsgdict.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kmail/kmmsgdict.cpp b/kmail/kmmsgdict.cpp
index 6f834e02d..bedc3bb44 100644
--- a/kmail/kmmsgdict.cpp
+++ b/kmail/kmmsgdict.cpp
@@ -8,7 +8,7 @@
#include "globalsettings.h"
#include "folderstorage.h"
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <kdebug.h>
#include <kstaticdeleter.h>
@@ -133,7 +133,7 @@ public:
}
public:
- QMemArray<KMMsgDictEntry *> array;
+ TQMemArray<KMMsgDictEntry *> array;
FILE *fp;
bool swapByteOrder;
off_t baseOffset;
@@ -356,9 +356,9 @@ unsigned long KMMsgDict::getMsgSerNum(KMFolder *folder, int index) const
//-----------------------------------------------------------------------------
//static
-QValueList<unsigned long> KMMsgDict::serNumList(QPtrList<KMMsgBase> msgList)
+TQValueList<unsigned long> KMMsgDict::serNumList(TQPtrList<KMMsgBase> msgList)
{
- QValueList<unsigned long> ret;
+ TQValueList<unsigned long> ret;
for ( unsigned int i = 0; i < msgList.count(); i++ ) {
unsigned long serNum = msgList.at(i)->getMsgSerNum();
assert( serNum );
@@ -369,7 +369,7 @@ QValueList<unsigned long> KMMsgDict::serNumList(QPtrList<KMMsgBase> msgList)
//-----------------------------------------------------------------------------
-QString KMMsgDict::getFolderIdsLocation( const FolderStorage &storage )
+TQString KMMsgDict::getFolderIdsLocation( const FolderStorage &storage )
{
return storage.indexLocation() + ".ids";
}
@@ -380,8 +380,8 @@ bool KMMsgDict::isFolderIdsOutdated( const FolderStorage &storage )
{
bool outdated = false;
- QFileInfo indexInfo( storage.indexLocation() );
- QFileInfo idsInfo( getFolderIdsLocation( storage ) );
+ TQFileInfo indexInfo( storage.indexLocation() );
+ TQFileInfo idsInfo( getFolderIdsLocation( storage ) );
if (!indexInfo.exists() || !idsInfo.exists())
outdated = true;
@@ -398,8 +398,8 @@ int KMMsgDict::readFolderIds( FolderStorage& storage )
if ( isFolderIdsOutdated( storage ) )
return -1;
- QString filename = getFolderIdsLocation( storage );
- FILE *fp = fopen(QFile::encodeName(filename), "r+");
+ TQString filename = getFolderIdsLocation( storage );
+ FILE *fp = fopen(TQFile::encodeName(filename), "r+");
if (!fp)
return -1;
@@ -491,8 +491,8 @@ KMMsgDictREntry *KMMsgDict::openFolderIds( const FolderStorage& storage, bool tr
}
if (!rentry->fp) {
- QString filename = getFolderIdsLocation( storage );
- FILE *fp = truncate ? 0 : fopen(QFile::encodeName(filename), "r+");
+ TQString filename = getFolderIdsLocation( storage );
+ FILE *fp = truncate ? 0 : fopen(TQFile::encodeName(filename), "r+");
if (fp)
{
int version = 0;
@@ -512,7 +512,7 @@ KMMsgDictREntry *KMMsgDict::openFolderIds( const FolderStorage& storage, bool tr
if (!fp)
{
- fp = fopen(QFile::encodeName(filename), "w+");
+ fp = fopen(TQFile::encodeName(filename), "w+");
if (!fp)
{
kdDebug(5006) << "Dict '" << filename
@@ -561,8 +561,8 @@ int KMMsgDict::writeFolderIds( const FolderStorage &storage )
rentry->sync();
off_t eof = ftell(fp);
- QString filename = getFolderIdsLocation( storage );
- truncate(QFile::encodeName(filename), eof);
+ TQString filename = getFolderIdsLocation( storage );
+ truncate(TQFile::encodeName(filename), eof);
fclose(rentry->fp);
rentry->fp = 0;
@@ -646,6 +646,6 @@ bool KMMsgDict::hasFolderIds( const FolderStorage& storage )
bool KMMsgDict::removeFolderIds( FolderStorage& storage )
{
storage.setRDict( 0 );
- QString filename = getFolderIdsLocation( storage );
- return unlink( QFile::encodeName( filename) );
+ TQString filename = getFolderIdsLocation( storage );
+ return unlink( TQFile::encodeName( filename) );
}