kapptemplate
Go to the documentation of this file.
21 #include <KDE/KApplication>
22 #include <KDE/KAboutData>
23 #include <KDE/KCmdLineArgs>
24 #include <KDE/KLocale>
27 I18N_NOOP(
"A KDE 4 Application");
29 static const char version[] =
"%{VERSION}";
31 int main(
int argc,
char **argv)
34 KAboutData::License_GPL, ki18n(
"(C) %{CURRENT_YEAR} %{AUTHOR}"), KLocalizedString(), 0,
"%{EMAIL}");
35 about.addAuthor( ki18n(
"%{AUTHOR}"), KLocalizedString(),
"%{EMAIL}" );
38 KCmdLineOptions options;
39 options.add(
"+[URL]", ki18n(
"Document to open" ));
40 KCmdLineArgs::addCmdLineOptions(options);
46 if (app.isSessionRestored())
53 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
54 if (args->count() == 0)
62 for (; i < args->count(); i++)
static const char version[]
int main(int argc, char **argv)
static const char description[]
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:39:44 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.