summaryrefslogtreecommitdiffstats
path: root/kmobile/devices/skeleton/skeleton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmobile/devices/skeleton/skeleton.cpp')
-rw-r--r--kmobile/devices/skeleton/skeleton.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmobile/devices/skeleton/skeleton.cpp b/kmobile/devices/skeleton/skeleton.cpp
index 122e2af2..e6b1d9c5 100644
--- a/kmobile/devices/skeleton/skeleton.cpp
+++ b/kmobile/devices/skeleton/skeleton.cpp
@@ -17,8 +17,8 @@
*/
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <klibloader.h>
#include <kstandarddirs.h>
@@ -35,8 +35,8 @@
K_EXPORT_COMPONENT_FACTORY( libkmobile_skeleton, KMobileSkeleton() )
/* createObject needs to be reimplemented by every KMobileDevice driver */
-QObject *KMobileSkeleton::createObject( QObject *parent, const char *name,
- const char *, const QStringList &args )
+TQObject *KMobileSkeleton::createObject( TQObject *parent, const char *name,
+ const char *, const TQStringList &args )
{
return new KMobileSkeleton( parent, name, args );
}
@@ -46,7 +46,7 @@ QObject *KMobileSkeleton::createObject( QObject *parent, const char *name,
* The KDE skeleton mobile device driver.
*/
-KMobileSkeleton::KMobileSkeleton(QObject *obj, const char *name, const QStringList &args )
+KMobileSkeleton::KMobileSkeleton(TQObject *obj, const char *name, const TQStringList &args )
: KMobileDevice(obj, name, args)
{
// set initial device info
@@ -61,7 +61,7 @@ KMobileSkeleton::~KMobileSkeleton()
}
// connect the device and ask user to turn device on (if necessary)
-bool KMobileSkeleton::connectDevice(QWidget *parent)
+bool KMobileSkeleton::connectDevice(TQWidget *parent)
{
if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parent,
i18n("Please turn on your %1 on now and press continue to proceed.").arg(m_deviceName),
@@ -73,7 +73,7 @@ bool KMobileSkeleton::connectDevice(QWidget *parent)
}
// disconnect the device and return true, if sucessful
-bool KMobileSkeleton::disconnectDevice(QWidget *)
+bool KMobileSkeleton::disconnectDevice(TQWidget *)
{
m_connected = true;
return true;
@@ -87,12 +87,12 @@ bool KMobileSkeleton::isReadOnly() const
// return a unique ID, e.g. the IMEI number of phones, or a serial number
// this String is used to have a unique identification for syncronisation.
-QString KMobileSkeleton::deviceUniqueID()
+TQString KMobileSkeleton::deviceUniqueID()
{
- return QString::fromLocal8Bit("SkElEtOn-123456789");
+ return TQString::fromLocal8Bit("SkElEtOn-123456789");
}
-QString KMobileSkeleton::iconFileName() const
+TQString KMobileSkeleton::iconFileName() const
{
return "mobile_unknown"; /* KMOBILE_ICON_UNKNOWN */
}
@@ -112,11 +112,11 @@ int KMobileSkeleton::readAddress( int index, KABC::Addressee &addr )
return KIO::ERR_DOES_NOT_EXIST;
// now build our own sample name
- addr.setFamilyName(QString("Meyer_%1").arg(index+1));
+ addr.setFamilyName(TQString("Meyer_%1").arg(index+1));
addr.setGivenName("Peter");
addr.setFormattedName("Peter "+addr.familyName());
addr.setNickName("PeterM");
- addr.setBirthday(QDateTime(QDate(1970,7,22)));
+ addr.setBirthday(TQDateTime(TQDate(1970,7,22)));
addr.setRole("KDE Software Developer");
addr.setOrganization("KDE.ORG");
addr.setNote("the best KDE developer ever");
@@ -125,7 +125,7 @@ int KMobileSkeleton::readAddress( int index, KABC::Addressee &addr )
addr.insertPhoneNumber(KABC::PhoneNumber("+49 6110 12345"));
// the Revision might be important for syncronisations
- addr.setRevision(QDateTime(QDate(2003,1,1)));
+ addr.setRevision(TQDateTime(TQDate(2003,1,1)));
return 0;
}
@@ -144,13 +144,13 @@ int KMobileSkeleton::numNotes()
return 100;
}
-int KMobileSkeleton::readNote( int index, QString &note )
+int KMobileSkeleton::readNote( int index, TQString &note )
{
// index is zero-based, and we only have one simulated note
if (index<0 || index>=numNotes())
return KIO::ERR_DOES_NOT_EXIST;
- note = QString("NOTE #%1\n"
+ note = TQString("NOTE #%1\n"
"--------\n"
"This is a sample note #%2\n\n"
"DeviceClassName: %3\n"