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 4 Application");
12
static const char version[] = "%{VERSION}";
14
int main(int argc, char **argv)
16
KAboutData about("%{APPNAMELC}", 0, ki18n("%{APPNAME}"), version, ki18n(description),
17
KAboutData::License_%{LICENSE}, ki18n("(C) %{YEAR} %{AUTHOR}"), KLocalizedString(), 0, "%{EMAIL}");
18
about.addAuthor( ki18n("%{AUTHOR}"), KLocalizedString(), "%{EMAIL}" );
19
KCmdLineArgs::init(argc, argv, &about);
21
KCmdLineOptions options;
22
options.add("+[URL]", ki18n( "Document to open" ));
23
KCmdLineArgs::addCmdLineOptions(options);
26
%{APPNAME} *widget = new %{APPNAME};
28
// see if we are starting with session management
29
if (app.isSessionRestored())
35
// no session.. just start up normally
36
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
37
if (args->count() == 0)
39
//%{APPNAMELC} *widget = new %{APPNAMELC};
45
for (; i < args->count(); i++)
47
//%{APPNAMELC} *widget = new %{APPNAMELC};