diff options
Diffstat (limited to 'src/tdebluez/trayicon.cpp')
| -rw-r--r-- | src/tdebluez/trayicon.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tdebluez/trayicon.cpp b/src/tdebluez/trayicon.cpp index 2e0ee05..80b0449 100644 --- a/src/tdebluez/trayicon.cpp +++ b/src/tdebluez/trayicon.cpp @@ -44,7 +44,7 @@ TrayIcon::TrayIcon(TDEBluetoothApp* _app) app = _app; iconConnectingBlinkState = false; - helpMenu = new KHelpMenu(this, TDEApplication::kApplication()->aboutData()); + helpMenu = new KHelpMenu(this, tdeApp->aboutData()); adapterConfigDialog = new AdapterConfigDialog(app); deviceWizard = new DeviceWizard(app); @@ -359,7 +359,7 @@ void TrayIcon::updateIcon() setPixmap(iconNoAdapter); updateTooltip(i18n("No BT adapter")); if (!this->isHidden()) - KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), + KNotifyClient::event(tdeApp->mainWidget()->winId(), "AdapterDetached", i18n("<b>No BT adapter available.</b><br/>(BT adapter removed)")); adapterConfigAction->setEnabled(false); @@ -562,13 +562,13 @@ void TrayIcon::slotPowerOnChanged(const TQString &adapter, bool state) TQString msg; if (state) { - KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), + KNotifyClient::event(tdeApp->mainWidget()->winId(), "AdapterAvailable", i18n("BT adapter <b>%1</b> is on<br/>(<b>%2</b>)").arg(name).arg(addr)); msg = i18n("Power off [%1]").arg(name); } else { - KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), + KNotifyClient::event(tdeApp->mainWidget()->winId(), "AdapterAvailable", i18n("BT adapter <b>%1</b> is off<br/>(<b>%2</b>)").arg(name).arg(addr)); msg = i18n("Power on [%1]").arg(name); } @@ -590,12 +590,12 @@ void TrayIcon::slotDeviceConnectedChanged(const TQString& path, bool state) tqDebug(i18n("Adapter getAddress failed: %1").arg(dbuserr.message())); if (state) { - KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), + KNotifyClient::event(tdeApp->mainWidget()->winId(), "IncomingConnection", i18n("Connected to <b>%1</b> (<b>%2</b>)").arg(name).arg(address)); } else { - KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), + KNotifyClient::event(tdeApp->mainWidget()->winId(), "IncomingConnection", i18n("Disconnected from <b>%1</b> (<b>%2</b>)").arg(name).arg(address)); } updateIcon(); @@ -652,7 +652,7 @@ void TrayIcon::slotShowHelp() // TODO: This is surely not the correct way to jump to the // right chapter. Do I really have to mention the html-file, // or is the id enough? - TDEApplication::kApplication()->invokeHelp("", HELP_DOCUMENT); + tdeApp->invokeHelp("", HELP_DOCUMENT); } void TrayIcon::slotAddAdapter(const TQString& path) @@ -685,7 +685,7 @@ void TrayIcon::slotAddAdapter(const TQString& path) showPowerOnActionMap.insert(path, ad_a); connect(ad_a, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotPowerOn(bool))); - KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), + KNotifyClient::event(tdeApp->mainWidget()->winId(), "AdapterAttached", i18n("BT adapter <b>%1</b> attached<br/>(<b>%2</b>)").arg(name).arg(addr)); if(!powered) // find out if we have some powered adapter @@ -726,7 +726,7 @@ void TrayIcon::slotRemoveAdapter(const TQString& path) showPowerOnActionMap[path]->unplug(contextMenu()); showPowerOnActionMap.remove(path); - KNotifyClient::event(TDEApplication::kApplication()->mainWidget()->winId(), + KNotifyClient::event(tdeApp->mainWidget()->winId(), "AdapterDetached", i18n("BT adapter detached")); if (showPowerOnActionMap.isEmpty()) |
