Plasma
main.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <KApplication>
00021 #include <KAboutData>
00022 #include <KCmdLineArgs>
00023 #include <KLocale>
00024 #include <KIcon>
00025
00026 #include <config-workspace.h>
00027 #include "plasmaapp.h"
00028
00029 static const char description[] = I18N_NOOP( "The KDE desktop, panels and widgets workspace application." );
00030 static const char version[] = "0.3";
00031
00032 extern "C"
00033 #ifdef Q_WS_WIN
00034 int kdemain(int argc, char **argv)
00035 #else
00036 KDE_EXPORT int kdemain(int argc, char **argv)
00037 #endif
00038 {
00039 KAboutData aboutData("plasma", 0, ki18n("Plasma Workspace"),
00040 version, ki18n(description), KAboutData::License_GPL,
00041 ki18n("Copyright 2006-2007, The KDE Team"));
00042 aboutData.addAuthor(ki18n("Aaron J. Seigo"),
00043 ki18n("Author and maintainer"),
00044 "aseigo@kde.org");
00045 aboutData.addCredit(ki18n("John Lions"),
00046 ki18n("In memory of his contributions, 1937-1998."),
00047 0, "http://en.wikipedia.org/wiki/John_Lions");
00048
00049 KCmdLineArgs::init(argc, argv, &aboutData);
00050
00051 PlasmaApp *app = PlasmaApp::self();
00052 QApplication::setWindowIcon(KIcon("plasma"));
00053 app->disableSessionManagement();
00054 int rc = app->exec();
00055 delete app;
00056 return rc;
00057 }