summaryrefslogtreecommitdiffstats
path: root/ksmserver/test.cpp
blob: 846c449dbfcbc52ef21eecb043dc609717c71cd1 (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
#include "shutdowndlg.h"
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kapplication.h>
#include <kiconloader.h>

int
main(int argc, char *argv[])
{
   KAboutData about("kapptest", "kapptest", "version");
   KCmdLineArgs::init(argc, argv, &about);

   KApplication a;
   a.iconLoader()->addAppDir("ksmserver");
   KSMShutdownFeedback::start();

   KApplication::ShutdownType sdtype = KApplication::ShutdownTypeNone;
   TQString bopt;
   (void)KSMShutdownDlg::confirmShutdown( true,
                                          sdtype,
                                          bopt );
/*   (void)KSMShutdownDlg::confirmShutdown( false,
                                          sdtype,
                                          bopt ); */

   KSMShutdownFeedback::stop();
}