|
|
@ -30,7 +30,7 @@
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdecmdlineargs.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdemessagebox.h>
|
|
|
|
#include <tdemessagebox.h>
|
|
|
|
#include <kuniqueapplication.h>
|
|
|
|
#include <tdeuniqueapplication.h>
|
|
|
|
|
|
|
|
|
|
|
|
// 0.1.x, 0.3.x, etc - Unstable, Beta
|
|
|
|
// 0.1.x, 0.3.x, etc - Unstable, Beta
|
|
|
|
// 0.2.x, 0.4.x, etc - Stable
|
|
|
|
// 0.2.x, 0.4.x, etc - Stable
|
|
|
@ -75,14 +75,14 @@ static TDECmdLineOptions options[] =
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/** @short KShutDown application. */
|
|
|
|
/** @short KShutDown application. */
|
|
|
|
class KShutDownApplication: public KUniqueApplication
|
|
|
|
class KShutDownApplication: public TDEUniqueApplication
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
* Constructor.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
KShutDownApplication()
|
|
|
|
KShutDownApplication()
|
|
|
|
: KUniqueApplication(),
|
|
|
|
: TDEUniqueApplication(),
|
|
|
|
_confirm(false),
|
|
|
|
_confirm(false),
|
|
|
|
isTimeArg(false),
|
|
|
|
isTimeArg(false),
|
|
|
|
now(false),
|
|
|
|
now(false),
|
|
|
@ -382,7 +382,7 @@ int main(int argc, char **argv)
|
|
|
|
TDECmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
TDECmdLineArgs::init(argc, argv, &aboutData);
|
|
|
|
TDECmdLineArgs::addCmdLineOptions(options);
|
|
|
|
TDECmdLineArgs::addCmdLineOptions(options);
|
|
|
|
|
|
|
|
|
|
|
|
if (!KUniqueApplication::start())
|
|
|
|
if (!TDEUniqueApplication::start())
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
// init application
|
|
|
|
// init application
|
|
|
|