diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kpilot/lib/pilotSerialDatabase.cc | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/lib/pilotSerialDatabase.cc')
-rw-r--r-- | kpilot/lib/pilotSerialDatabase.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kpilot/lib/pilotSerialDatabase.cc b/kpilot/lib/pilotSerialDatabase.cc index a38898d1d..f57cac934 100644 --- a/kpilot/lib/pilotSerialDatabase.cc +++ b/kpilot/lib/pilotSerialDatabase.cc @@ -34,7 +34,7 @@ #include <pi-dlp.h> -#include <qfile.h> +#include <tqfile.h> #include <klocale.h> #include <kdebug.h> @@ -45,7 +45,7 @@ #include "kpilotdevicelink.h" PilotSerialDatabase::PilotSerialDatabase(KPilotDeviceLink *l, - const QString &dbName) : + const TQString &dbName) : PilotDatabase(dbName), fDBName( dbName ), fDBHandle(-1), @@ -56,8 +56,8 @@ PilotSerialDatabase::PilotSerialDatabase(KPilotDeviceLink *l, } PilotSerialDatabase::PilotSerialDatabase( KPilotDeviceLink *l, const DBInfo *info ) : - PilotDatabase( info ? Pilot::fromPilot( info->name ) : QString::null ), - fDBName( QString::null ), + PilotDatabase( info ? Pilot::fromPilot( info->name ) : TQString::null ), + fDBName( TQString::null ), fDBHandle( -1 ), fDBSocket( l->pilotSocket() ) { @@ -86,9 +86,9 @@ PilotSerialDatabase::~PilotSerialDatabase() closeDatabase(); } -QString PilotSerialDatabase::dbPathName() const +TQString PilotSerialDatabase::dbPathName() const { - QString s = CSL1("Pilot:"); + TQString s = CSL1("Pilot:"); s.append(fDBName); return s; } @@ -140,10 +140,10 @@ unsigned int PilotSerialDatabase::recordCount() const } -// Returns a QValueList of all record ids in the database. -QValueList<recordid_t> PilotSerialDatabase::idList() +// Returns a TQValueList of all record ids in the database. +TQValueList<recordid_t> PilotSerialDatabase::idList() { - QValueList<recordid_t> idlist; + TQValueList<recordid_t> idlist; int idlen=recordCount(); if (idlen<=0) return idlist; @@ -346,14 +346,14 @@ void PilotSerialDatabase::openDatabase() setDBOpen(false); - QString s = getDBName(); + TQString s = getDBName(); if (s.isEmpty()) { WARNINGKPILOT << "Bad DB name, " << s << " string given." << endl; return; } - QCString encodedName = QFile::encodeName(s); + TQCString encodedName = TQFile::encodeName(s); if (encodedName.isEmpty()) { WARNINGKPILOT << "Bad DB name, " |