You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/ksmserver/test.cpp

33 lines
951 B

#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();
}