summaryrefslogtreecommitdiffstats
path: root/sessionapplet/dmctl.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-03-25 20:06:45 +0100
committerSlávek Banko <[email protected]>2016-03-25 20:06:45 +0100
commit88b7febc2393324ee14940c1c41a8ddc342c35f6 (patch)
treeb9a917fd3a40988e6e0134490f5357e5335c1c70 /sessionapplet/dmctl.cpp
parent2ee99ab520931c5efe91123c85ba10064a45e95d (diff)
downloadtde-style-baghira-88b7febc2393324ee14940c1c41a8ddc342c35f6.tar.gz
tde-style-baghira-88b7febc2393324ee14940c1c41a8ddc342c35f6.zip
Initial TDE conversion
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'sessionapplet/dmctl.cpp')
-rw-r--r--sessionapplet/dmctl.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/sessionapplet/dmctl.cpp b/sessionapplet/dmctl.cpp
index eb7fc7c..788f537 100644
--- a/sessionapplet/dmctl.cpp
+++ b/sessionapplet/dmctl.cpp
@@ -21,7 +21,7 @@
#ifdef Q_WS_X11
-#include <klocale.h>
+#include <tdelocale.h>
#include <dcopclient.h>
#include <sys/types.h>
@@ -91,16 +91,16 @@ DM::exec( const char *cmd )
}
/**
- * Execute a KDM remote control command.
+ * Execute a TDM remote control command.
* @param cmd the command to execute. FIXME: undocumented yet.
* @param ret the result buffer.
* @return result:
* @li If true, the command was successfully executed.
* @p ret might contain addional results.
* @li If false and @p ret is empty, a communication error occurred
- * (most probably KDM is not running).
+ * (most probably TDM is not running).
* @li If false and @p ret is non-empty, it contains the error message
- * from KDM.
+ * from TDM.
*/
bool
DM::exec( const char *cmd, TQCString &buf )
@@ -157,24 +157,24 @@ DM::canShutdown()
}
void
-DM::shutdown( KApplication::ShutdownType shutdownType,
- KApplication::ShutdownMode shutdownMode,
+DM::shutdown( TDEApplication::ShutdownType shutdownType,
+ TDEApplication::ShutdownMode shutdownMode,
const TQString &bootOption )
{
if (!bootOption.isEmpty() && DMType != NewKDM)
return;
- if (shutdownType != KApplication::ShutdownTypeNone) {
+ if (shutdownType != TDEApplication::ShutdownTypeNone) {
TQCString cmd( "shutdown\t" );
- cmd.append( shutdownType == KApplication::ShutdownTypeReboot ?
+ cmd.append( shutdownType == TDEApplication::ShutdownTypeReboot ?
"reboot\t" : "halt\t" );
if (!bootOption.isNull())
cmd.append( "=" ).append( bootOption.local8Bit() ).append( "\t" );
- cmd.append( shutdownMode == KApplication::ShutdownModeInteractive ?
+ cmd.append( shutdownMode == TDEApplication::ShutdownModeInteractive ?
"ask\n" :
- shutdownMode == KApplication::ShutdownModeForceNow ?
+ shutdownMode == TDEApplication::ShutdownModeForceNow ?
"forcenow\n" :
- shutdownMode == KApplication::ShutdownModeTryNow ?
+ shutdownMode == TDEApplication::ShutdownModeTryNow ?
"trynow\n" : "schedule\n" );
exec( cmd.data() );
}