diff options
Diffstat (limited to 'src/tdebluez/devicesetupwizard.cpp')
-rw-r--r-- | src/tdebluez/devicesetupwizard.cpp | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/src/tdebluez/devicesetupwizard.cpp b/src/tdebluez/devicesetupwizard.cpp index 77f88cf..521214d 100644 --- a/src/tdebluez/devicesetupwizard.cpp +++ b/src/tdebluez/devicesetupwizard.cpp @@ -177,7 +177,7 @@ void DeviceSetupWizard::next() // TQWizard::next(); // } // if (error.isValid()) -// tqDebug("Failed in connecting device: %s", error.message().local8Bit().data()); +// tqDebug(i18n("Failed in connecting device: %1").arg(error.message())); // } else if (currentPage() == donepage) { @@ -215,7 +215,7 @@ void DeviceSetupWizard::setDevice(DeviceImpl *_device) TQT_DBusError error; address = device->getAddress(error); if (error.isValid()) - tqDebug("Failed to get address for the new device: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to get address for the new device: %1").arg(error.message())); if (device->getPaired(error)) { @@ -237,7 +237,7 @@ void DeviceSetupWizard::setDevice(DeviceImpl *_device) tQListViewDst->clear(); } if (error.isValid()) - tqDebug("Failed to get paired status for the new device: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to get paired status for the new device: %1").arg(error.message())); if (device->getConnected(error)) { @@ -248,12 +248,12 @@ void DeviceSetupWizard::setDevice(DeviceImpl *_device) TQWizard::showPage(donepage); } if (error.isValid()) - tqDebug("Failed to get connecting status of the new device: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to get connecting status of the new device: %1").arg(error.message())); if (device->getTrusted(error)) trustedCheckBox->setChecked(true); if (error.isValid()) - tqDebug("Failed to get trusted status of the new device: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to get trusted status of the new device: %1").arg(error.message())); connect(device, SIGNAL(PairAsyncReply(int /*asyncCallId*/)), this, TQT_SLOT(slotPairAsyncReply(int /*asyncCallId*/))); @@ -277,7 +277,7 @@ void DeviceSetupWizard::updateServiceList() uuids.clear(); uuids = device->getUUIDs(error); if (error.isValid()) - tqDebug("Failed to get uuids: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to get uuids: %1").arg(error.message())); tQListViewSrc->clear(); for (TQStringList::iterator it = uuids.begin(); it != uuids.end(); ++it) @@ -305,7 +305,7 @@ void DeviceSetupWizard::startPairing() if (!device->PairAsync(asyncCallId, error)) { if (error.isValid()) - tqDebug("Failed to get paired status for the new device: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to get paired status for the new device: %1").arg(error.message())); } manager->getConnection()->scheduleDispatch(); } @@ -327,7 +327,7 @@ void DeviceSetupWizard::slotPairingTimeOut() setNextEnabled(pairpage, true); } else - tqDebug("Failed pairing the new device: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed pairing the new device: %1").arg(error.message())); } else { @@ -356,7 +356,7 @@ void DeviceSetupWizard::slotConnectTimeOut() setNextEnabled(connectpage, true); } else - tqDebug("Failed connecting the new device: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed connecting the new device: %1").arg(error.message())); } else { @@ -399,8 +399,7 @@ void DeviceSetupWizard::accept() device->setTrusted(true, error); } if (error.isValid()) - tqDebug("Could not set trusted for %s\nError: %s", - address.latin1(), error.message().local8Bit().data()); + tqDebug(i18n("Could not set trusted for %1\nError: %2").arg(address).arg(error.message())); } hide(); @@ -472,7 +471,7 @@ void DeviceSetupWizard::slotConnectNextProfile() if (!device->ConnectProfileAsync(asyncCallId, connect, error)) { if (error.isValid()) - tqDebug("Failed to call DBus ConnectProfileAsync: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to call DBus ConnectProfileAsync: %1").arg(error.message())); } manager->getConnection()->scheduleDispatch(); } @@ -480,7 +479,7 @@ void DeviceSetupWizard::slotConnectNextProfile() void DeviceSetupWizard::slotAsyncErrorResponseDetected(int asyncCallId, const TQT_DBusError error) { - tqDebug("AsyncErrorResponseDetected: %i %s %s", error.type(), error.name().local8Bit().data(), error.message().local8Bit().data()); + tqDebug(i18n("AsyncErrorResponseDetected: %1 %2 %3").arg(error.type()).arg(error.name()).arg(error.message())); if(pairingTimer->isActive()) pairingTimer->stop(); @@ -505,15 +504,15 @@ void DeviceSetupWizard::slotAsyncErrorResponseDetected(int asyncCallId, const TQ // TQMessageBox::critical( 0, "Device Setup Wizard", // TQString("AsyncErrorResponseDetected: %1\n%2\n%3") // .arg(error.type()) -// .arg(error.name().local8Bit().data()) -// .arg(error.message().local8Bit().data()), +// .arg(error.name()) +// .arg(error.message()), // TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton); KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), - "ConnectionError", tr("AsyncErrorResponseDetected: %1\n%2\n%3") + "ConnectionError", i18n("AsyncErrorResponseDetected: %1\n%2\n%3") .arg(error.type()) - .arg(error.name().local8Bit().data()) - .arg(error.message().local8Bit().data())); + .arg(error.name()) + .arg(error.message())); } void DeviceSetupWizard::slotConnectAsyncReply(int asyncCallId) @@ -561,7 +560,7 @@ void DeviceSetupWizard::slotCancelPairing() if (!device->CancelPairingAsync(asyncCallId, error)) { if (error.isValid()) - tqDebug("Failed to call DBus CancelPairingAsync: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to call DBus CancelPairingAsync: %1").arg(error.message())); } if(pairingTimer->isActive()) @@ -575,10 +574,10 @@ void DeviceSetupWizard::slotCancelConnecting() if (device->getConnected(error)) { if (!device->DisconnectAsync(asyncCallId, error)) - tqDebug("Failed to call DisconnectAsync: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed to call DisconnectAsync: %1").arg(error.message())); } if (error.isValid()) - tqDebug("Failed in slotCancelConnecting: %s", error.message().local8Bit().data()); + tqDebug(i18n("Failed in slotCancelConnecting: %1").arg(error.message())); if(connectTimer->isActive()) connectTimer->stop(); |