diff options
Diffstat (limited to 'src/libtdebluez/objectmanagerImpl.cpp')
-rw-r--r-- | src/libtdebluez/objectmanagerImpl.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/libtdebluez/objectmanagerImpl.cpp b/src/libtdebluez/objectmanagerImpl.cpp index 789e221..96cb83e 100644 --- a/src/libtdebluez/objectmanagerImpl.cpp +++ b/src/libtdebluez/objectmanagerImpl.cpp @@ -191,12 +191,12 @@ bool ObjectManagerImpl::registerAgent() { if (!agentRegisteredStatus) { - TQT_DBusError error; + TQT_DBusError dbuserror; agentManager->RegisterAgent( - TQT_DBusObjectPath(TQCString(DBUS_AUTH_SERVICE_PATH)), DEVICE_PIN_CAPABILITY, error); - if (error.isValid()) + TQT_DBusObjectPath(TQCString(DBUS_AUTH_SERVICE_PATH)), DEVICE_PIN_CAPABILITY, dbuserror); + if (dbuserror.isValid()) { - tqDebug("Could not register agent: %s", error.message().local8Bit().data()); + tqDebug(i18n("Could not register agent: %1").arg(dbuserror.message())); return false; } agentRegisteredStatus = true; @@ -209,12 +209,12 @@ bool ObjectManagerImpl::unregisterAgent() kdDebug() << k_funcinfo << endl; if (agentRegisteredStatus) { - TQT_DBusError error; + TQT_DBusError dbuserror; getAgentManager()->UnregisterAgent( - TQT_DBusObjectPath(TQCString(DBUS_AUTH_SERVICE_PATH)), error); - if (error.isValid()) + TQT_DBusObjectPath(TQCString(DBUS_AUTH_SERVICE_PATH)), dbuserror); + if (dbuserror.isValid()) { - tqDebug("Could not unregister agent"); + tqDebug(i18n("Could not unregister agent")); return false; } agentRegisteredStatus = false; @@ -225,12 +225,12 @@ bool ObjectManagerImpl::unregisterAgent() bool ObjectManagerImpl::requestDefaultAgent() { - TQT_DBusError error; + TQT_DBusError dbuserror; agentManager->RequestDefaultAgent( - TQT_DBusObjectPath(TQCString(DBUS_AUTH_SERVICE_PATH)), error); - if (error.isValid()) + TQT_DBusObjectPath(TQCString(DBUS_AUTH_SERVICE_PATH)), dbuserror); + if (dbuserror.isValid()) { - tqDebug("Could not request default agent: %s", error.message().local8Bit().data()); + tqDebug(i18n("Could not request default agent: %1").arg(dbuserror.message())); return false; } agentIsDefaultAgent = true; @@ -258,17 +258,17 @@ bool ObjectManagerImpl::initDBUS() dBusConn = TQT_DBusConnection::addConnection(TQT_DBusConnection::SystemBus, DBUS_CONN_NAME); if (!dBusConn.isConnected()) { - tqDebug("Failed to open connection to system message bus: %s", dBusConn.lastError().message().local8Bit().data()); + tqDebug(i18n("Failed to open connection to system message bus: %1").arg(dBusConn.lastError().message())); TQTimer::singleShot(4000, this, TQT_SLOT(reconnect())); return false; } setConnection(dBusConn); TQT_DBusDataMap<TQT_DBusObjectPath> objects; - TQT_DBusError error; - if (!GetManagedObjects(objects, error)) + TQT_DBusError dbuserror; + if (!GetManagedObjects(objects, dbuserror)) { - tqDebug("GetManagedObjects(objects,error) FAILED:\n%s\n", error.message().latin1()); + tqDebug(i18n("GetManagedObjects(objects,error) failed: %1").arg(dbuserror.message())); return false; } @@ -278,7 +278,7 @@ bool ObjectManagerImpl::initDBUS() bool ok = false; slotInterfacesAdded(it.key(), it.data().toStringKeyMap(&ok)); if (!ok) - tqWarning("Failed to convert dbus data to string map: %s", it.key().latin1()); + tqWarning(i18n("Failed to convert dbus data to string map: %1").arg(it.key())); } connect(this, SIGNAL(InterfacesAdded(const TQT_DBusObjectPath&, const TQT_DBusDataMap< TQString >&)), @@ -313,7 +313,7 @@ void ObjectManagerImpl::adapterPropertiesChanged(TQString path, const TQMap< else continue; if (!ok) - tqDebug("ObjectManagerImpl::adapterPropertiesChanged conversion failed"); + tqDebug(i18n("ObjectManagerImpl::adapterPropertiesChanged conversion failed")); } } @@ -367,7 +367,7 @@ void ObjectManagerImpl::devicePropertiesChanged(TQString path, const TQMap<TQStr else continue; if (!ok) - tqDebug("ObjectManagerImpl::devicePropertiesChanged conversion failed"); + tqDebug(i18n("ObjectManagerImpl::devicePropertiesChanged conversion failed")); } } @@ -385,7 +385,7 @@ void ObjectManagerImpl::mediaControlPropertiesChanged(TQString path, const TQMap else continue; if (!ok) - tqDebug("ObjectManagerImpl::mediaControlPropertiesChanged conversion failed"); + tqDebug(i18n("ObjectManagerImpl::mediaControlPropertiesChanged conversion failed")); } } @@ -468,7 +468,7 @@ void ObjectManagerImpl::slotInterfacesAdded(const TQT_DBusObjectPath& object, co } else { - tqWarning("Interface not implemented: %s", interface.local8Bit().data()); + tqWarning(i18n("Interface not implemented: %1").arg(interface)); } } } @@ -539,7 +539,7 @@ void ObjectManagerImpl::slotInterfacesRemoved(const TQT_DBusObjectPath& object, } else { - tqWarning("Interface not implemented: %s", (*it).local8Bit().data()); + tqWarning(i18n("Interface not implemented: %1").arg((*it))); } } } |