diff options
Diffstat (limited to 'kmobile/kmobileclient.cpp')
-rw-r--r-- | kmobile/kmobileclient.cpp | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/kmobile/kmobileclient.cpp b/kmobile/kmobileclient.cpp index 9c95efe8f..5a3ab8a6a 100644 --- a/kmobile/kmobileclient.cpp +++ b/kmobile/kmobileclient.cpp @@ -36,10 +36,10 @@ KMobileClient::KMobileClient() m_kmobileObj = "kmobileIface"; bool ok = attach(); - PRINT_DEBUG << TQString("attached to DCOP server %1\n").arg(ok?"sucessful.":"failed."); + PRINT_DEBUG << TQString("attached to DCOP server %1\n").tqarg(ok?"sucessful.":"failed."); // m_clientAppId = registerAs("kmobileclient"); -// PRINT_DEBUG << TQString("registered as DCOP client %1\n").arg(m_clientAppId); +// PRINT_DEBUG << TQString("registered as DCOP client %1\n").tqarg(m_clientAppId); isKMobileAvailable(); } @@ -54,7 +54,7 @@ KMobileClient::~KMobileClient() bool KMobileClient::isKMobileAvailable() { bool available = isApplicationRegistered(m_kmobileApp); - PRINT_DEBUG << TQString("KMobile DCOP server: %1\n").arg(available?"available.":"not available"); + PRINT_DEBUG << TQString("KMobile DCOP server: %1\n").tqarg(available?"available.":"not available"); if (!available) { startKMobileApplication(); // check again... @@ -73,7 +73,7 @@ bool KMobileClient::startKMobileApplication() TQCString replyType; TQByteArray replyData; bool ok = call("klauncher", "klauncher", "tdeinit_exec_wait(TQString,TQStringList)", data, replyType, replyData); - PRINT_DEBUG << TQString("DCOP-CALL to klauncher: %1\n").arg(ok?"ok.":"failed."); + PRINT_DEBUG << TQString("DCOP-CALL to klauncher: %1\n").tqarg(ok?"ok.":"failed."); return ok; } @@ -93,7 +93,7 @@ bool KMobileClient::startKMobileApplication() TQCString replyType; \ TQByteArray replyData; \ bool ok = call(m_kmobileApp, m_kmobileObj, FUNC, data, replyType, replyData, KMOBILECLIENT_USE_EVENTLOOP, KMOBILECLIENT_TIMEOUT); \ - PRINT_DEBUG << TQString("DCOP-CALL to %1: %2\n").arg(FUNC).arg(ok?"ok.":"FAILED.") + PRINT_DEBUG << TQString("DCOP-CALL to %1: %2\n").tqarg(FUNC).tqarg(ok?"ok.":"FAILED.") #define RETURN_TYPE( FUNC, PARAMS, RETURN_TYPE ) \ PREPARE( FUNC, PARAMS ); \ @@ -122,110 +122,110 @@ bool KMobileClient::startKMobileApplication() -TQStringList KMobileClient::deviceNames() +TQStringList KMobileClient::tqdeviceNames() { if (!isKMobileAvailable()) return TQStringList(); - RETURN_TYPE( "deviceNames()", TQString::fromLatin1(""), TQStringList ); + RETURN_TYPE( "tqdeviceNames()", TQString::tqfromLatin1(""), TQStringList ); } -void KMobileClient::removeDevice( TQString deviceName ) +void KMobileClient::removeDevice( TQString tqdeviceName ) { - PREPARE( "removeDevice(TQString)", deviceName ); + PREPARE( "removeDevice(TQString)", tqdeviceName ); Q_UNUSED(ok); } -void KMobileClient::configDevice( TQString deviceName ) +void KMobileClient::configDevice( TQString tqdeviceName ) { - PREPARE( "configDevice(TQString)", deviceName ); + PREPARE( "configDevice(TQString)", tqdeviceName ); Q_UNUSED(ok); } -bool KMobileClient::connectDevice( TQString deviceName ) +bool KMobileClient::connectDevice( TQString tqdeviceName ) { - RETURN_BOOL( "connectDevice(TQString)", deviceName ); + RETURN_BOOL( "connectDevice(TQString)", tqdeviceName ); } -bool KMobileClient::disconnectDevice( TQString deviceName ) +bool KMobileClient::disconnectDevice( TQString tqdeviceName ) { - RETURN_BOOL( "disconnectDevice(TQString)", deviceName ); + RETURN_BOOL( "disconnectDevice(TQString)", tqdeviceName ); } -bool KMobileClient::connected( TQString deviceName ) +bool KMobileClient::connected( TQString tqdeviceName ) { - RETURN_BOOL( "connected(TQString)", deviceName ); + RETURN_BOOL( "connected(TQString)", tqdeviceName ); } -TQString KMobileClient::deviceClassName( TQString deviceName ) +TQString KMobileClient::tqdeviceClassName( TQString tqdeviceName ) { - RETURN_TQSTRING( "deviceClassName(TQString)", deviceName ); + RETURN_TQSTRING( "tqdeviceClassName(TQString)", tqdeviceName ); } -TQString KMobileClient::deviceName( TQString deviceName ) +TQString KMobileClient::tqdeviceName( TQString tqdeviceName ) { - RETURN_TQSTRING( "deviceName(TQString)", deviceName ); + RETURN_TQSTRING( "tqdeviceName(TQString)", tqdeviceName ); } -TQString KMobileClient::revision( TQString deviceName ) +TQString KMobileClient::revision( TQString tqdeviceName ) { - RETURN_TQSTRING( "revision(TQString)", deviceName ); + RETURN_TQSTRING( "revision(TQString)", tqdeviceName ); } -int KMobileClient::classType( TQString deviceName ) +int KMobileClient::classType( TQString tqdeviceName ) { - RETURN_INT( "classType(TQString)", deviceName ); + RETURN_INT( "classType(TQString)", tqdeviceName ); } -int KMobileClient::capabilities( TQString deviceName ) +int KMobileClient::capabilities( TQString tqdeviceName ) { - RETURN_INT( "capabilities(TQString)", deviceName ); + RETURN_INT( "capabilities(TQString)", tqdeviceName ); } -TQString KMobileClient::nameForCap( TQString deviceName, int cap ) +TQString KMobileClient::nameForCap( TQString tqdeviceName, int cap ) { - RETURN_TQSTRING( "nameForCap(TQString,int)", deviceName << cap ); + RETURN_TQSTRING( "nameForCap(TQString,int)", tqdeviceName << cap ); } -TQString KMobileClient::iconFileName( TQString deviceName ) +TQString KMobileClient::iconFileName( TQString tqdeviceName ) { - RETURN_TQSTRING( "iconFileName(TQString)", deviceName ); + RETURN_TQSTRING( "iconFileName(TQString)", tqdeviceName ); } -int KMobileClient::numAddresses( TQString deviceName ) +int KMobileClient::numAddresses( TQString tqdeviceName ) { - RETURN_INT( "numAddresses(TQString)", deviceName ); + RETURN_INT( "numAddresses(TQString)", tqdeviceName ); } -TQString KMobileClient::readAddress( TQString deviceName, int index ) +TQString KMobileClient::readAddress( TQString tqdeviceName, int index ) { - RETURN_TQSTRING( "readAddress(TQString,int)", deviceName << index ); + RETURN_TQSTRING( "readAddress(TQString,int)", tqdeviceName << index ); } -bool KMobileClient::storeAddress( TQString deviceName, int index, TQString vcard, bool append ) +bool KMobileClient::storeAddress( TQString tqdeviceName, int index, TQString vcard, bool append ) { - RETURN_BOOL( "storeAddress(TQString,int,TQString,bool)", deviceName << index << vcard << append ); + RETURN_BOOL( "storeAddress(TQString,int,TQString,bool)", tqdeviceName << index << vcard << append ); } -int KMobileClient::numCalendarEntries( TQString deviceName ) +int KMobileClient::numCalendarEntries( TQString tqdeviceName ) { - RETURN_INT( "numCalendarEntries(TQString)", deviceName ); + RETURN_INT( "numCalendarEntries(TQString)", tqdeviceName ); } -int KMobileClient::numNotes( TQString deviceName ) +int KMobileClient::numNotes( TQString tqdeviceName ) { - RETURN_INT( "numNotes(TQString)", deviceName ); + RETURN_INT( "numNotes(TQString)", tqdeviceName ); } -TQString KMobileClient::readNote( TQString deviceName, int index ) +TQString KMobileClient::readNote( TQString tqdeviceName, int index ) { - RETURN_TQSTRING( "readNote(TQString,int)", deviceName << index ); + RETURN_TQSTRING( "readNote(TQString,int)", tqdeviceName << index ); } -bool KMobileClient::storeNote( TQString deviceName, int index, TQString note ) +bool KMobileClient::storeNote( TQString tqdeviceName, int index, TQString note ) { - RETURN_BOOL( "storeNote(TQString,int,TQString)", deviceName << index << note ); + RETURN_BOOL( "storeNote(TQString,int,TQString)", tqdeviceName << index << note ); } |