3
#include "%{APPNAMELC}.h"
4
#include <kapplication.h>
5
#include <kaboutdata.h>
6
#include <kcmdlineargs.h>
9
static const char description[] =
10
I18N_NOOP("A KDE Application");
12
static const char version[] = "%{VERSION}";
14
static KCmdLineOptions options[] =
16
{ "+[URL]", I18N_NOOP( "Document to open" ), 0 },
20
int main(int argc, char **argv)
22
KAboutData about("%{APPNAMELC}", I18N_NOOP("%{APPNAME}"), version, description,
23
KAboutData::License_%{LICENSE}, "(C) %{YEAR} %{AUTHOR}", 0, 0, "%{EMAIL}");
24
about.addAuthor( "%{AUTHOR}", 0, "%{EMAIL}" );
25
KCmdLineArgs::init(argc, argv, &about);
26
KCmdLineArgs::addCmdLineOptions(options);
29
// see if we are starting with session management
32
RESTORE(%{APPNAMELC});
36
// no session.. just start up normally
37
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
38
if (args->count() == 0)
40
%{APPNAMELC} *widget = new %{APPNAMELC};
46
for (; i < args->count(); i++)
48
%{APPNAMELC} *widget = new %{APPNAMELC};