diff options
Diffstat (limited to 'kmobile/devices/skeleton')
-rw-r--r-- | kmobile/devices/skeleton/skeleton.cpp | 30 | ||||
-rw-r--r-- | kmobile/devices/skeleton/skeleton.h | 18 |
2 files changed, 24 insertions, 24 deletions
diff --git a/kmobile/devices/skeleton/skeleton.cpp b/kmobile/devices/skeleton/skeleton.cpp index 122e2af20..e6b1d9c59 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 ¬e ) +int KMobileSkeleton::readNote( int index, TQString ¬e ) { // 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" diff --git a/kmobile/devices/skeleton/skeleton.h b/kmobile/devices/skeleton/skeleton.h index eb0d7db0b..de57947a3 100644 --- a/kmobile/devices/skeleton/skeleton.h +++ b/kmobile/devices/skeleton/skeleton.h @@ -30,25 +30,25 @@ class KMobileSkeleton : public KMobileDevice { Q_OBJECT public: - KMobileSkeleton( QObject *obj=0, const char *name=0, const QStringList &args=QStringList() ); + KMobileSkeleton( TQObject *obj=0, const char *name=0, const TQStringList &args=TQStringList() ); ~KMobileSkeleton(); // createObject needs to be reimplemented by every KMobileDevice driver - QObject *createObject( QObject *parent=0, const char *name=0, - const char *classname="QObject", const QStringList &args=QStringList() ); + TQObject *createObject( TQObject *parent=0, const char *name=0, + const char *classname="TQObject", const TQStringList &args=TQStringList() ); // connect, disconnect and current status - bool connectDevice(QWidget *parent); - bool disconnectDevice(QWidget *parent); + bool connectDevice(TQWidget *parent); + bool disconnectDevice(TQWidget *parent); // returns true, if this device is read-only (default: false) bool isReadOnly() const; // you may provide your own icon() implementation to display // an appropriate Pixmap (e.g. a Palm Pilot or a Zaurus image). - QString iconFileName() const; + TQString iconFileName() const; - QString deviceUniqueID(); + TQString deviceUniqueID(); /* * Addressbook / Phonebook support @@ -61,11 +61,11 @@ public: * Notes support */ int numNotes(); - int readNote( int index, QString ¬e ); + int readNote( int index, TQString ¬e ); signals: void connectionChanged( bool connected ); - void message( int msgLevel, const QString &msg ); + void message( int msgLevel, const TQString &msg ); }; #endif |