From 2f64e55b006125b1110fcdb05df19909159cee71 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 20 Jan 2025 17:21:59 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- kmilo/delli8k/delli8k.cpp | 4 ++-- kmilo/generic/generic_monitor.cpp | 8 ++++---- kmilo/kmilo_kvaio/kvaio.cpp | 4 ++-- kmilo/thinkpad/thinkpad.cpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'kmilo') diff --git a/kmilo/delli8k/delli8k.cpp b/kmilo/delli8k/delli8k.cpp index e647d89..2bcb9ed 100644 --- a/kmilo/delli8k/delli8k.cpp +++ b/kmilo/delli8k/delli8k.cpp @@ -145,7 +145,7 @@ bool DellI8kMonitor::retrieveVolume() if (kmix_error) { // maybe the error occurred because kmix wasn't running - if( kapp->startServiceByDesktopName( "kmix" ) == 0 ) // trying to start kmix + if( tdeApp->startServiceByDesktopName( "kmix" ) == 0 ) // trying to start kmix { // trying again reply = kmixClient->call( "masterVolume"); @@ -210,7 +210,7 @@ bool DellI8kMonitor::retrieveMute() if (kmix_error) { // maybe the error occurred because kmix wasn't running - if( kapp->startServiceByDesktopName( "kmix" ) == 0 ) // trying to start kmix + if( tdeApp->startServiceByDesktopName( "kmix" ) == 0 ) // trying to start kmix { // trying again reply = kmixClient->call( "masterVolume" ); diff --git a/kmilo/generic/generic_monitor.cpp b/kmilo/generic/generic_monitor.cpp index e1933c9..2c15ad5 100644 --- a/kmilo/generic/generic_monitor.cpp +++ b/kmilo/generic/generic_monitor.cpp @@ -147,7 +147,7 @@ bool GenericMonitor::retrieveVolume(int &volume) // maybe the error occurred because kmix wasn't running. Try to start it _interface->displayText(i18n("Starting KMix...")); - if (kapp->startServiceByDesktopName("kmix") == 0) + if (tdeApp->startServiceByDesktopName("kmix") == 0) { // trying again reply = kmixClient->call("volume"); @@ -215,7 +215,7 @@ bool GenericMonitor::retrieveMute(bool &muted) // maybe the error occurred because kmix wasn't running. Try to start it _interface->displayText(i18n("Starting KMix...")); - if (kapp->startServiceByDesktopName("kmix") == 0) + if (tdeApp->startServiceByDesktopName("kmix") == 0) { // trying again reply = kmixClient->call("mute"); @@ -324,12 +324,12 @@ void GenericMonitor::launch(TQString configKey, TQString defaultApplication) void GenericMonitor::launchMail() { kdDebug() << "launchMail" << endl; - kapp->invokeMailer("", "", "", "", "", "", "", ""); + tdeApp->invokeMailer("", "", "", "", "", "", "", ""); } void GenericMonitor::launchBrowser() { - kapp->invokeBrowser(""); + tdeApp->invokeBrowser(""); } void GenericMonitor::launchSearch() diff --git a/kmilo/kmilo_kvaio/kvaio.cpp b/kmilo/kmilo_kvaio/kvaio.cpp index 004f15e..c9b114d 100644 --- a/kmilo/kmilo_kvaio/kvaio.cpp +++ b/kmilo/kmilo_kvaio/kvaio.cpp @@ -478,7 +478,7 @@ bool KVaio::retrieveVolume() { { // _interface->displayText showTextMsg(i18n("Starting KMix...")); - if (kapp->startServiceByDesktopName("kmix")==0) // trying to start kmix + if (tdeApp->startServiceByDesktopName("kmix")==0) // trying to start kmix { // trying again reply = kmixClient->call("masterVolume"); @@ -545,7 +545,7 @@ bool KVaio::retrieveMute() // maybe the error occurred because kmix wasn't running //_interface->displayText showTextMsg(i18n("Starting KMix...")); - if (kapp->startServiceByDesktopName("kmix")==0) // trying to start kmix + if (tdeApp->startServiceByDesktopName("kmix")==0) // trying to start kmix { // trying again reply = kmixClient->call("masterMute"); diff --git a/kmilo/thinkpad/thinkpad.cpp b/kmilo/thinkpad/thinkpad.cpp index 16e22a9..50bc532 100644 --- a/kmilo/thinkpad/thinkpad.cpp +++ b/kmilo/thinkpad/thinkpad.cpp @@ -461,7 +461,7 @@ bool ThinkPadMonitor::retrieveVolume() { } if (kmix_error) { // maybe the error occurred because kmix wasn't running - if (kapp->startServiceByDesktopName("kmix")==0) { // trying to start kmix + if (tdeApp->startServiceByDesktopName("kmix")==0) { // trying to start kmix // trying again reply = kmixClient->call("masterVolume"); if (reply.isValid()) { -- cgit v1.2.3