#include "shutdowndlg.h" #include #include #include #include int main(int argc, char *argv[]) { KAboutData about("kapptest", "kapptest", "version"); TDECmdLineArgs::init(argc, argv, &about); KApplication a; a.iconLoader()->addAppDir("ksmserver"); KSMShutdownFeedback::start(); // ShutdownTypeNone == Logout == 0 // ShutdownTypeReboot == 1 // ShutdownTypeHalt == 2 KApplication::ShutdownType sdtype = KApplication::ShutdownTypeNone; TQString bopt; KSMDelayedMessageBox::showTicker( sdtype ); /* (void)KSMShutdownDlg::confirmShutdown( true, sdtype, bopt );*/ /* (void)KSMShutdownDlg::confirmShutdown( false, sdtype, bopt ); */ KSMShutdownFeedback::stop(); }