summaryrefslogtreecommitdiffstats
path: root/ksmserver/test.cpp
blob: 126164db9ba986f743e8e0a0303c2ccc978a13b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "shutdowndlg.h"
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kapplication.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();
}