summaryrefslogtreecommitdiffstats
path: root/knode/knfolder.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 /knode/knfolder.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 'knode/knfolder.cpp')
-rw-r--r--knode/knfolder.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/knode/knfolder.cpp b/knode/knfolder.cpp
index 9cdb2f054..01855d5bd 100644
--- a/knode/knfolder.cpp
+++ b/knode/knfolder.cpp
@@ -12,7 +12,7 @@
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
*/
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <ksimpleconfig.h>
#include <kstandarddirs.h>
@@ -41,10 +41,10 @@ KNFolder::KNFolder()
}
-KNFolder::KNFolder(int id, const QString &name, KNFolder *parent)
+KNFolder::KNFolder(int id, const TQString &name, KNFolder *parent)
: KNArticleCollection(parent), i_d(id), i_ndexDirty(false), w_asOpen(true)
{
- QString fname=path()+QString("custom_%1").arg(i_d);
+ TQString fname=path()+TQString("custom_%1").arg(i_d);
n_ame = name;
m_boxFile.setName(fname+".mbox");
@@ -60,10 +60,10 @@ KNFolder::KNFolder(int id, const QString &name, KNFolder *parent)
}
-KNFolder::KNFolder(int id, const QString &name, const QString &prefix, KNFolder *parent)
+KNFolder::KNFolder(int id, const TQString &name, const TQString &prefix, KNFolder *parent)
: KNArticleCollection(parent), i_d(id), i_ndexDirty(false), w_asOpen(true)
{
- QString fname=path()+QString("%1_%2").arg(prefix).arg(i_d);
+ TQString fname=path()+TQString("%1_%2").arg(prefix).arg(i_d);
n_ame = name;
m_boxFile.setName(fname+".mbox");
@@ -95,16 +95,16 @@ void KNFolder::updateListItem()
}
-QString KNFolder::path()
+TQString KNFolder::path()
{
- QString dir(locateLocal("data","knode/")+"folders/");
+ TQString dir(locateLocal("data","knode/")+"folders/");
/*if (dir.isNull())
KNHelper::displayInternalFileError();*/
return dir;
}
-bool KNFolder::readInfo(const QString &infoPath)
+bool KNFolder::readInfo(const TQString &infoPath)
{
if(infoPath.isEmpty())
return false;
@@ -120,8 +120,8 @@ bool KNFolder::readInfo(const QString &infoPath)
w_asOpen=info.readBoolEntry("wasOpen", true);
if(i_d>-1) {
- QFileInfo fi(infoPath);
- QString fname=fi.dirPath(true)+"/"+fi.baseName();
+ TQFileInfo fi(infoPath);
+ TQString fname=fi.dirPath(true)+"/"+fi.baseName();
closeFiles();
clear();
@@ -186,7 +186,7 @@ bool KNFolder::loadHdrs()
return false;
}
- QCString tmp;
+ TQCString tmp;
KQCStringSplitter split;
KNLocalArticle *art;
DynData dynamic;
@@ -284,7 +284,7 @@ bool KNFolder::loadHdrs()
clear();
closeFiles();
- knGlobals.setStatusMsg(QString::null);
+ knGlobals.setStatusMsg(TQString::null);
knGlobals.top->setCursorBusy(false);
return false;
}
@@ -297,7 +297,7 @@ bool KNFolder::loadHdrs()
c_ount=cnt;
updateListItem();
- knGlobals.setStatusMsg(QString::null);
+ knGlobals.setStatusMsg(TQString::null);
knGlobals.top->setCursorBusy(false);
return true;
@@ -347,7 +347,7 @@ bool KNFolder::loadArticle(KNLocalArticle *a)
m_boxFile.readLine(); //skip X-KNode-Overview
unsigned int size=a->endOffset()-m_boxFile.at()-1;
- QCString buff(size+10);
+ TQCString buff(size+10);
int readBytes=m_boxFile.readBlock(buff.data(), size);
closeFiles();
if(readBytes < (int)(size) && m_boxFile.status() != IO_Ok) { //cannot read file
@@ -378,8 +378,8 @@ bool KNFolder::saveArticles( KNLocalArticle::List &l )
int addCnt=0;
bool ret=true;
bool clear=false;
- QTextStream ts(&m_boxFile);
- ts.setEncoding(QTextStream::Latin1);
+ TQTextStream ts(&m_boxFile);
+ ts.setEncoding(TQTextStream::Latin1);
for ( KNLocalArticle::List::Iterator it = l.begin(); it != l.end(); ++it ) {
@@ -527,7 +527,7 @@ void KNFolder::deleteFiles()
{
m_boxFile.remove();
i_ndexFile.remove();
- QFile::remove(i_nfoPath);
+ TQFile::remove(i_nfoPath);
}