summaryrefslogtreecommitdiffstats
path: root/kpilot/conduits/memofileconduit/memofile.h
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.h
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.h')
-rw-r--r--kpilot/conduits/memofileconduit/memofile.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/kpilot/conduits/memofileconduit/memofile.h b/kpilot/conduits/memofileconduit/memofile.h
index 27931cdfe..4bd5fb776 100644
--- a/kpilot/conduits/memofileconduit/memofile.h
+++ b/kpilot/conduits/memofileconduit/memofile.h
@@ -40,10 +40,10 @@
#include <pi-memo.h>
-#include <qfile.h>
-#include <qdir.h>
-#include <qtextstream.h>
-#include <qtextcodec.h>
+#include <tqfile.h>
+#include <tqdir.h>
+#include <tqtextstream.h>
+#include <tqtextcodec.h>
#include "pilotMemo.h"
@@ -55,9 +55,9 @@
class Memofile : public PilotMemo
{
public:
- Memofile(PilotMemo * memo, QString categoryName, QString fileName, QString baseDirectory);
- Memofile(recordid_t id, int category, uint lastModifiedTime, uint size, QString categoryName, QString filename, QString baseDirectory);
- Memofile(int category, QString categoryName, QString fileName, QString baseDirectory);
+ Memofile(PilotMemo * memo, TQString categoryName, TQString fileName, TQString baseDirectory);
+ Memofile(recordid_t id, int category, uint lastModifiedTime, uint size, TQString categoryName, TQString filename, TQString baseDirectory);
+ Memofile(int category, TQString categoryName, TQString fileName, TQString baseDirectory);
uint lastModified() const { return _lastModified; } ;
uint size() const { return _size; } ;
@@ -72,30 +72,30 @@ class Memofile : public PilotMemo
bool load();
- bool fileExists() { return QFile::exists(filenameAbs()); } ;
+ bool fileExists() { return TQFile::exists(filenameAbs()); } ;
void setID(recordid_t id);
bool save();
bool deleteFile();
- QString toString() {
- return CSL1("id: [") + QString::number(id())
+ TQString toString() {
+ return CSL1("id: [") + TQString::number(id())
+ CSL1("], category:[") + _categoryName
+ CSL1("], filename: [") + _filename + CSL1("]");
} ;
- const QString & getCategoryName() { return _categoryName; } ;
- const QString & getFilename() { return _filename; } ;
- const QString & filename() { return _filename; } ;
+ const TQString & getCategoryName() { return _categoryName; } ;
+ const TQString & getFilename() { return _filename; } ;
+ const TQString & filename() { return _filename; } ;
private:
bool saveFile();
bool isModifiedByTimestamp();
bool isModifiedBySize();
- QString filenameAbs() { return dirName() + filename(); } ;
- QString dirName() { return _baseDirectory + QDir::separator() + _categoryName + QDir::separator(); } ;
- bool setCategory(const QString &label);
+ TQString filenameAbs() { return dirName() + filename(); } ;
+ TQString dirName() { return _baseDirectory + TQDir::separator() + _categoryName + TQDir::separator(); } ;
+ bool setCategory(const TQString &label);
uint getFileLastModified();
uint getFileSize();
@@ -105,9 +105,9 @@ class Memofile : public PilotMemo
uint _lastModified;
uint _size;
- QString _categoryName;
- QString _filename;
- QString _baseDirectory;
+ TQString _categoryName;
+ TQString _filename;
+ TQString _baseDirectory;
} ;
#endif