summaryrefslogtreecommitdiffstats
path: root/kmail/kmmsgdict.cpp
diff options
context:
space:
mode:
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 6f834e02..bedc3bb4 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) );
}