summaryrefslogtreecommitdiffstats
path: root/kpilot/conduits/memofileconduit/memofile.cc
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 /kpilot/conduits/memofileconduit/memofile.cc
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 'kpilot/conduits/memofileconduit/memofile.cc')
-rw-r--r--kpilot/conduits/memofileconduit/memofile.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/kpilot/conduits/memofileconduit/memofile.cc b/kpilot/conduits/memofileconduit/memofile.cc
index 1428c487d..3a7ff6c3a 100644
--- a/kpilot/conduits/memofileconduit/memofile.cc
+++ b/kpilot/conduits/memofileconduit/memofile.cc
@@ -27,7 +27,7 @@
#include "memofile.h"
-Memofile::Memofile(PilotMemo * memo, QString categoryName, QString fileName, QString baseDirectory) :
+Memofile::Memofile(PilotMemo * memo, TQString categoryName, TQString fileName, TQString baseDirectory) :
PilotMemo(memo,memo->text()), _categoryName(categoryName), _filename(fileName), _baseDirectory(baseDirectory)
{
_lastModified = 0;
@@ -36,7 +36,7 @@ Memofile::Memofile(PilotMemo * memo, QString categoryName, QString fileName, QSt
}
Memofile::Memofile(recordid_t id, int category, uint lastModifiedTime, uint size,
- QString categoryName, QString fileName, QString baseDirectory) :
+ TQString categoryName, TQString fileName, TQString baseDirectory) :
PilotMemo(), _categoryName(categoryName),
_filename(fileName),_baseDirectory(baseDirectory)
{
@@ -47,7 +47,7 @@ Memofile::Memofile(recordid_t id, int category, uint lastModifiedTime, uint size
_modified = _modifiedByPalm = false;
}
-Memofile::Memofile(int category, QString categoryName, QString fileName, QString baseDirectory) :
+Memofile::Memofile(int category, TQString categoryName, TQString fileName, TQString baseDirectory) :
PilotMemo(),
_categoryName(categoryName), _filename(fileName), _baseDirectory(baseDirectory)
{
@@ -70,7 +70,7 @@ bool Memofile::load()
return false;
}
- QFile f( filenameAbs() );
+ TQFile f( filenameAbs() );
if ( !f.open( IO_ReadOnly ) ) {
DEBUGKPILOT << fname
<< ": Couldn't open file: [" << filenameAbs() << "] to read. "
@@ -78,9 +78,9 @@ bool Memofile::load()
return false;
}
- QTextStream ts( &f );
+ TQTextStream ts( &f );
- QString text,title,body;
+ TQString text,title,body;
title = filename();
body = ts.read();
@@ -136,7 +136,7 @@ bool Memofile::deleteFile()
FUNCTIONSETUP;
DEBUGKPILOT << fname
<< ": deleting file: [" << filenameAbs() << "]." << endl;
- return QFile::remove(filenameAbs());
+ return TQFile::remove(filenameAbs());
}
@@ -156,7 +156,7 @@ bool Memofile::saveFile()
<< filenameAbs() << "]" << endl;
- QFile f( filenameAbs() );
+ TQFile f( filenameAbs() );
if ( !f.open( IO_WriteOnly ) ) {
DEBUGKPILOT << fname
<< ": Couldn't open file: [" << filenameAbs() << "] to write your memo to. "
@@ -164,7 +164,7 @@ bool Memofile::saveFile()
return false;
}
- QTextStream stream(&f);
+ TQTextStream stream(&f);
stream << text() << endl;
f.close();
@@ -226,14 +226,14 @@ bool Memofile::isModifiedBySize()
uint Memofile::getFileLastModified()
{
- QFileInfo f = QFileInfo(filenameAbs());
+ TQFileInfo f = TQFileInfo(filenameAbs());
uint lastModifiedTime = f.lastModified().toTime_t();
return lastModifiedTime;
}
uint Memofile::getFileSize()
{
- QFileInfo f = QFileInfo(filenameAbs());
+ TQFileInfo f = TQFileInfo(filenameAbs());
uint size = f.size();
return size;
}