summaryrefslogtreecommitdiffstats
path: root/kmail/kmfolderdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/kmfolderdir.cpp')
-rw-r--r--kmail/kmfolderdir.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/kmail/kmfolderdir.cpp b/kmail/kmfolderdir.cpp
index 1092e41cd..46aba345c 100644
--- a/kmail/kmfolderdir.cpp
+++ b/kmail/kmfolderdir.cpp
@@ -1,7 +1,7 @@
// kmfolderdir.cpp
#include <config.h>
-#include <qdir.h>
+#include <tqdir.h>
#include "kmfolderdir.h"
#include "kmfoldersearch.h"
@@ -18,7 +18,7 @@
//=============================================================================
//=============================================================================
-KMFolderRootDir::KMFolderRootDir(KMFolderMgr* manager, const QString& path,
+KMFolderRootDir::KMFolderRootDir(KMFolderMgr* manager, const TQString& path,
KMFolderDirType dirType)
: KMFolderDir( 0, 0, path, dirType ),
mPath( path ),
@@ -36,31 +36,31 @@ KMFolderRootDir::~KMFolderRootDir()
}
//-----------------------------------------------------------------------------
-void KMFolderRootDir::setPath(const QString& aPath)
+void KMFolderRootDir::setPath(const TQString& aPath)
{
mPath = aPath;
}
//-----------------------------------------------------------------------------
-QString KMFolderRootDir::path() const
+TQString KMFolderRootDir::path() const
{
return mPath;
}
//-----------------------------------------------------------------------------
-QString KMFolderRootDir::prettyURL() const
+TQString KMFolderRootDir::prettyURL() const
{
if ( !mBaseURL.isEmpty() )
return i18n( mBaseURL.data() );
else
- return QString::null;
+ return TQString::null;
}
//-----------------------------------------------------------------------------
-void KMFolderRootDir::setBaseURL( const QCString &baseURL )
+void KMFolderRootDir::setBaseURL( const TQCString &baseURL )
{
mBaseURL = baseURL;
}
@@ -76,7 +76,7 @@ KMFolderMgr* KMFolderRootDir::manager() const
//=============================================================================
//=============================================================================
KMFolderDir::KMFolderDir( KMFolder * owner, KMFolderDir* parent,
- const QString& name, KMFolderDirType dirType )
+ const TQString& name, KMFolderDirType dirType )
: KMFolderNode( parent, name ), KMFolderNodeList(),
mOwner( owner ), mDirType( dirType )
{
@@ -92,7 +92,7 @@ KMFolderDir::~KMFolderDir()
//-----------------------------------------------------------------------------
-KMFolder* KMFolderDir::createFolder(const QString& aFolderName, bool aSysFldr, KMFolderType aFolderType)
+KMFolder* KMFolderDir::createFolder(const TQString& aFolderName, bool aSysFldr, KMFolderType aFolderType)
{
KMFolder* fld;
@@ -125,9 +125,9 @@ KMFolder* KMFolderDir::createFolder(const QString& aFolderName, bool aSysFldr, K
//----------------------------------------------------------------------------
-QString KMFolderDir::path() const
+TQString KMFolderDir::path() const
{
- static QString p;
+ static TQString p;
if (parent())
{
@@ -142,19 +142,19 @@ QString KMFolderDir::path() const
//----------------------------------------------------------------------------
-QString KMFolderDir::label() const
+TQString KMFolderDir::label() const
{
if ( mOwner )
return mOwner->label();
else
- return QString::null;
+ return TQString::null;
}
//-----------------------------------------------------------------------------
-QString KMFolderDir::prettyURL() const
+TQString KMFolderDir::prettyURL() const
{
- QString parentUrl;
+ TQString parentUrl;
if ( parent() )
parentUrl = parent()->prettyURL();
if ( !parentUrl.isEmpty() )
@@ -167,21 +167,21 @@ QString KMFolderDir::prettyURL() const
//-----------------------------------------------------------------------------
bool KMFolderDir::reload(void)
{
- QDir dir;
+ TQDir dir;
KMFolder* folder;
- QFileInfo* fileInfo;
- QStringList diList;
- QPtrList<KMFolder> folderList;
+ TQFileInfo* fileInfo;
+ TQStringList diList;
+ TQPtrList<KMFolder> folderList;
clear();
- const QString fldPath = path();
- dir.setFilter(QDir::Files | QDir::Dirs | QDir::Hidden);
+ const TQString fldPath = path();
+ dir.setFilter(TQDir::Files | TQDir::Dirs | TQDir::Hidden);
dir.setNameFilter("*");
if (!dir.cd(fldPath, TRUE))
{
- QString msg = i18n("<qt>Cannot enter folder <b>%1</b>.</qt>").arg(fldPath);
+ TQString msg = i18n("<qt>Cannot enter folder <b>%1</b>.</qt>").arg(fldPath);
KMessageBox::information(0, msg);
return FALSE;
}
@@ -189,14 +189,14 @@ bool KMFolderDir::reload(void)
QFileInfoList* fiList=(QFileInfoList*)dir.entryInfoList();
if (!fiList)
{
- QString msg = i18n("<qt>Folder <b>%1</b> is unreadable.</qt>").arg(fldPath);
+ TQString msg = i18n("<qt>Folder <b>%1</b> is unreadable.</qt>").arg(fldPath);
KMessageBox::information(0, msg);
return FALSE;
}
for (fileInfo=fiList->first(); fileInfo; fileInfo=fiList->next())
{
- const QString fname = fileInfo->fileName();
+ const TQString fname = fileInfo->fileName();
if( ( fname[0] == '.' ) && !fname.endsWith( ".directory" ) ) {
// ignore all hidden files except our subfolder containers
continue;
@@ -232,8 +232,8 @@ bool KMFolderDir::reload(void)
{
// For this to be a cached IMAP folder, it must be in the KMail dimap
// subdir and must be have a uidcache file or be a maildir folder
- QString maildir(fname + "/new");
- QString imapcachefile = QString::fromLatin1(".%1.uidcache").arg(fname);
+ TQString maildir(fname + "/new");
+ TQString imapcachefile = TQString::fromLatin1(".%1.uidcache").arg(fname);
if ( dir.exists( imapcachefile) || dir.exists( maildir ) )
{
folder = new KMFolder( this, fname, KMFolderTypeCachedImap );
@@ -274,7 +274,7 @@ bool KMFolderDir::reload(void)
for (folder=folderList.first(); folder; folder=folderList.next())
{
- for(QStringList::Iterator it = diList.begin();
+ for(TQStringList::Iterator it = diList.begin();
it != diList.end();
++it)
if (*it == "." + folder->fileName() + ".directory")
@@ -291,7 +291,7 @@ bool KMFolderDir::reload(void)
//-----------------------------------------------------------------------------
-KMFolderNode* KMFolderDir::hasNamedFolder(const QString& aName)
+KMFolderNode* KMFolderDir::hasNamedFolder(const TQString& aName)
{
KMFolderNode* fNode;
for (fNode=first(); fNode; fNode=next()) {