diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:50:20 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-24 13:50:20 -0600 |
commit | aef5eada7f51ee48f3d21448db290bd8f06953a8 (patch) | |
tree | 9d6e7572ebcc27e402501d6966f9b46361a1702c /klaptopdaemon/portable.cpp | |
parent | 95d05392f9bc01594738a1e06ebf23123b3d3e6e (diff) | |
download | tdeutils-aef5eada7f51ee48f3d21448db290bd8f06953a8.tar.gz tdeutils-aef5eada7f51ee48f3d21448db290bd8f06953a8.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'klaptopdaemon/portable.cpp')
-rw-r--r-- | klaptopdaemon/portable.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/klaptopdaemon/portable.cpp b/klaptopdaemon/portable.cpp index 7c5d227..ed4801f 100644 --- a/klaptopdaemon/portable.cpp +++ b/klaptopdaemon/portable.cpp @@ -745,14 +745,14 @@ laptop_portable::acpi_set_mask(bool standby, bool suspend, bool hibernate, bool static void invoke_acpi_helper(const char *param, const char *param2, const char *param3) { - KProcess proc; + TDEProcess proc; proc << KStandardDirs::findExe("klaptop_acpi_helper"); proc << param; if (param2) proc << param2; if (param3) proc << param3; - proc.start(KProcess::Block); // helper runs fast and we want to see the result + proc.start(TDEProcess::Block); // helper runs fast and we want to see the result } static unsigned long apm_sleep_enabled = 0x0c; // apm sleep functions enabled mask @@ -1086,10 +1086,10 @@ void laptop_portable::invoke_standby() return; } // add other machine specific standbys here - KProcess proc; + TDEProcess proc; proc << "/usr/bin/apm"; proc << "--standby"; - proc.start(KProcess::Block); // helper runs fast and we want to see the result + proc.start(TDEProcess::Block); // helper runs fast and we want to see the result } // @@ -1100,10 +1100,10 @@ void laptop_portable::invoke_suspend() last_seed++; // make it look for battery removal/return if (::has_pmu()) { - KProcess proc; + TDEProcess proc; proc << "/usr/bin/apm"; proc << "-f"; - proc.start(KProcess::Block); // helper runs fast and we want to see the result + proc.start(TDEProcess::Block); // helper runs fast and we want to see the result return; } @@ -1125,10 +1125,10 @@ void laptop_portable::invoke_suspend() return; } // add other machine specific suspends here - KProcess proc; + TDEProcess proc; proc << "/usr/bin/apm"; proc << "--suspend"; - proc.start(KProcess::Block); // helper runs fast and we want to see the result + proc.start(TDEProcess::Block); // helper runs fast and we want to see the result } // @@ -2225,12 +2225,12 @@ void laptop_portable::invoke_suspend() // void laptop_portable::invoke_hibernation() { - KProcess thisProc; + TDEProcess thisProc; if (::access(PATH_TPCTL, X_OK)==0) { thisProc << PATH_TPCTL; thisProc << "---hibernate"; - thisProc.start(KProcess::Block); + thisProc.start(TDEProcess::Block); return; } } @@ -2603,10 +2603,10 @@ TQLabel *laptop_portable::pcmcia_info(int x, TQWidget *parent) // void laptop_portable::invoke_standby() { - KProcess proc; + TDEProcess proc; proc << "/usr/sbin/apm"; proc << "-S"; - proc.start(KProcess::Block); // helper runs fast and we want to see the result + proc.start(TDEProcess::Block); // helper runs fast and we want to see the result } // @@ -2616,10 +2616,10 @@ void laptop_portable::invoke_standby() // void laptop_portable::invoke_suspend() { - KProcess proc; + TDEProcess proc; proc << "/usr/sbin/apm"; proc << "-z"; - proc.start(KProcess::Block); // helper runs fast and we want to see the result + proc.start(TDEProcess::Block); // helper runs fast and we want to see the result } // |