From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpilot/lib/pilotSerialDatabase.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kpilot/lib/pilotSerialDatabase.cc') 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 -#include +#include #include #include @@ -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 PilotSerialDatabase::idList() +// Returns a TQValueList of all record ids in the database. +TQValueList PilotSerialDatabase::idList() { - QValueList idlist; + TQValueList 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, " -- cgit v1.2.1