summaryrefslogtreecommitdiffstats
path: root/ksmserver/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksmserver/test.cpp')
-rw-r--r--ksmserver/test.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/ksmserver/test.cpp b/ksmserver/test.cpp
new file mode 100644
index 000000000..3349809a2
--- /dev/null
+++ b/ksmserver/test.cpp
@@ -0,0 +1,32 @@
+#include "shutdowndlg.h"
+#include <tdecmdlineargs.h>
+#include <tdeaboutdata.h>
+#include <tdeapplication.h>
+#include <kiconloader.h>
+
+int
+main(int argc, char *argv[])
+{
+ TDEAboutData about("kapptest", "kapptest", "version");
+ TDECmdLineArgs::init(argc, argv, &about);
+
+ TDEApplication a;
+ a.iconLoader()->addAppDir("ksmserver");
+ KSMShutdownFeedback::start();
+
+ // ShutdownTypeNone == Logout == 0
+ // ShutdownTypeReboot == 1
+ // ShutdownTypeHalt == 2
+ TDEApplication::ShutdownType sdtype = TDEApplication::ShutdownTypeNone;
+ TQString bopt;
+ KSMDelayedMessageBox::showTicker( sdtype );
+ /*
+ (void)KSMShutdownDlg::confirmShutdown( true,
+ sdtype,
+ bopt );*/
+/* (void)KSMShutdownDlg::confirmShutdown( false,
+ sdtype,
+ bopt ); */
+
+ KSMShutdownFeedback::stop();
+}