summaryrefslogtreecommitdiffstats
path: root/kmobile/kmobileclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmobile/kmobileclient.cpp')
-rw-r--r--kmobile/kmobileclient.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/kmobile/kmobileclient.cpp b/kmobile/kmobileclient.cpp
index 5a3ab8a6a..9c95efe8f 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").tqarg(ok?"sucessful.":"failed.");
+ PRINT_DEBUG << TQString("attached to DCOP server %1\n").arg(ok?"sucessful.":"failed.");
// m_clientAppId = registerAs("kmobileclient");
-// PRINT_DEBUG << TQString("registered as DCOP client %1\n").tqarg(m_clientAppId);
+// PRINT_DEBUG << TQString("registered as DCOP client %1\n").arg(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").tqarg(available?"available.":"not available");
+ PRINT_DEBUG << TQString("KMobile DCOP server: %1\n").arg(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").tqarg(ok?"ok.":"failed.");
+ PRINT_DEBUG << TQString("DCOP-CALL to klauncher: %1\n").arg(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").tqarg(FUNC).tqarg(ok?"ok.":"FAILED.")
+ PRINT_DEBUG << TQString("DCOP-CALL to %1: %2\n").arg(FUNC).arg(ok?"ok.":"FAILED.")
#define RETURN_TYPE( FUNC, PARAMS, RETURN_TYPE ) \
PREPARE( FUNC, PARAMS ); \
@@ -122,110 +122,110 @@ bool KMobileClient::startKMobileApplication()
-TQStringList KMobileClient::tqdeviceNames()
+TQStringList KMobileClient::deviceNames()
{
if (!isKMobileAvailable())
return TQStringList();
- RETURN_TYPE( "tqdeviceNames()", TQString::tqfromLatin1(""), TQStringList );
+ RETURN_TYPE( "deviceNames()", TQString::fromLatin1(""), TQStringList );
}
-void KMobileClient::removeDevice( TQString tqdeviceName )
+void KMobileClient::removeDevice( TQString deviceName )
{
- PREPARE( "removeDevice(TQString)", tqdeviceName );
+ PREPARE( "removeDevice(TQString)", deviceName );
Q_UNUSED(ok);
}
-void KMobileClient::configDevice( TQString tqdeviceName )
+void KMobileClient::configDevice( TQString deviceName )
{
- PREPARE( "configDevice(TQString)", tqdeviceName );
+ PREPARE( "configDevice(TQString)", deviceName );
Q_UNUSED(ok);
}
-bool KMobileClient::connectDevice( TQString tqdeviceName )
+bool KMobileClient::connectDevice( TQString deviceName )
{
- RETURN_BOOL( "connectDevice(TQString)", tqdeviceName );
+ RETURN_BOOL( "connectDevice(TQString)", deviceName );
}
-bool KMobileClient::disconnectDevice( TQString tqdeviceName )
+bool KMobileClient::disconnectDevice( TQString deviceName )
{
- RETURN_BOOL( "disconnectDevice(TQString)", tqdeviceName );
+ RETURN_BOOL( "disconnectDevice(TQString)", deviceName );
}
-bool KMobileClient::connected( TQString tqdeviceName )
+bool KMobileClient::connected( TQString deviceName )
{
- RETURN_BOOL( "connected(TQString)", tqdeviceName );
+ RETURN_BOOL( "connected(TQString)", deviceName );
}
-TQString KMobileClient::tqdeviceClassName( TQString tqdeviceName )
+TQString KMobileClient::deviceClassName( TQString deviceName )
{
- RETURN_TQSTRING( "tqdeviceClassName(TQString)", tqdeviceName );
+ RETURN_TQSTRING( "deviceClassName(TQString)", deviceName );
}
-TQString KMobileClient::tqdeviceName( TQString tqdeviceName )
+TQString KMobileClient::deviceName( TQString deviceName )
{
- RETURN_TQSTRING( "tqdeviceName(TQString)", tqdeviceName );
+ RETURN_TQSTRING( "deviceName(TQString)", deviceName );
}
-TQString KMobileClient::revision( TQString tqdeviceName )
+TQString KMobileClient::revision( TQString deviceName )
{
- RETURN_TQSTRING( "revision(TQString)", tqdeviceName );
+ RETURN_TQSTRING( "revision(TQString)", deviceName );
}
-int KMobileClient::classType( TQString tqdeviceName )
+int KMobileClient::classType( TQString deviceName )
{
- RETURN_INT( "classType(TQString)", tqdeviceName );
+ RETURN_INT( "classType(TQString)", deviceName );
}
-int KMobileClient::capabilities( TQString tqdeviceName )
+int KMobileClient::capabilities( TQString deviceName )
{
- RETURN_INT( "capabilities(TQString)", tqdeviceName );
+ RETURN_INT( "capabilities(TQString)", deviceName );
}
-TQString KMobileClient::nameForCap( TQString tqdeviceName, int cap )
+TQString KMobileClient::nameForCap( TQString deviceName, int cap )
{
- RETURN_TQSTRING( "nameForCap(TQString,int)", tqdeviceName << cap );
+ RETURN_TQSTRING( "nameForCap(TQString,int)", deviceName << cap );
}
-TQString KMobileClient::iconFileName( TQString tqdeviceName )
+TQString KMobileClient::iconFileName( TQString deviceName )
{
- RETURN_TQSTRING( "iconFileName(TQString)", tqdeviceName );
+ RETURN_TQSTRING( "iconFileName(TQString)", deviceName );
}
-int KMobileClient::numAddresses( TQString tqdeviceName )
+int KMobileClient::numAddresses( TQString deviceName )
{
- RETURN_INT( "numAddresses(TQString)", tqdeviceName );
+ RETURN_INT( "numAddresses(TQString)", deviceName );
}
-TQString KMobileClient::readAddress( TQString tqdeviceName, int index )
+TQString KMobileClient::readAddress( TQString deviceName, int index )
{
- RETURN_TQSTRING( "readAddress(TQString,int)", tqdeviceName << index );
+ RETURN_TQSTRING( "readAddress(TQString,int)", deviceName << index );
}
-bool KMobileClient::storeAddress( TQString tqdeviceName, int index, TQString vcard, bool append )
+bool KMobileClient::storeAddress( TQString deviceName, int index, TQString vcard, bool append )
{
- RETURN_BOOL( "storeAddress(TQString,int,TQString,bool)", tqdeviceName << index << vcard << append );
+ RETURN_BOOL( "storeAddress(TQString,int,TQString,bool)", deviceName << index << vcard << append );
}
-int KMobileClient::numCalendarEntries( TQString tqdeviceName )
+int KMobileClient::numCalendarEntries( TQString deviceName )
{
- RETURN_INT( "numCalendarEntries(TQString)", tqdeviceName );
+ RETURN_INT( "numCalendarEntries(TQString)", deviceName );
}
-int KMobileClient::numNotes( TQString tqdeviceName )
+int KMobileClient::numNotes( TQString deviceName )
{
- RETURN_INT( "numNotes(TQString)", tqdeviceName );
+ RETURN_INT( "numNotes(TQString)", deviceName );
}
-TQString KMobileClient::readNote( TQString tqdeviceName, int index )
+TQString KMobileClient::readNote( TQString deviceName, int index )
{
- RETURN_TQSTRING( "readNote(TQString,int)", tqdeviceName << index );
+ RETURN_TQSTRING( "readNote(TQString,int)", deviceName << index );
}
-bool KMobileClient::storeNote( TQString tqdeviceName, int index, TQString note )
+bool KMobileClient::storeNote( TQString deviceName, int index, TQString note )
{
- RETURN_BOOL( "storeNote(TQString,int,TQString)", tqdeviceName << index << note );
+ RETURN_BOOL( "storeNote(TQString,int,TQString)", deviceName << index << note );
}