1
2/*
3 * main.cpp
4 *
5 * Copyright (C) 2010 David Hubner <hubnerd@ntlworld.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 *
21 */
22
23//Local
24#include "main.h"
25
26//KDE
27#include <kaboutdata.h>
28#include <kcmdlineargs.h>
29#include <config-workspace.h>
30
31KicApp::KicApp() : KApplication()
32{
33 display = new KInfoCenter();
34 display->show();
35}
36
37int main(int argc, char *argv[])
38{
39 KLocale::setMainCatalog("kinfocenter");
40
41 KAboutData aboutKInfoCenter( "kinfocenter", 0, ki18n("KDE Info Center"),
42 WORKSPACE_VERSION_STRING, ki18n("The KDE Info Center"), KAboutData::License_GPL,
43 ki18n("(c) 2009-2010, The KDE SC KInfocenter Development Team"));
44
45 QByteArray argv_0 = argv[0];
46 KAboutData *aboutData = &aboutKInfoCenter;
47
48 aboutData->addAuthor(ki18n("David Hubner"),ki18n("Current Maintainer"), "hubnerd@ntlworld.com");
49 aboutData->addAuthor(ki18n("Helge Deller"), ki18n("Previous Maintainer"), "deller@kde.org");
50 aboutData->addAuthor(ki18n("Matthias Hoelzer-Kluepfel"),KLocalizedString(), "hoelzer@kde.org");
51 aboutData->addAuthor(ki18n("Matthias Elter"),KLocalizedString(), "elter@kde.org");
52 aboutData->addAuthor(ki18n("Matthias Ettrich"),KLocalizedString(), "ettrich@kde.org");
53 aboutData->addAuthor(ki18n("Waldo Bastian"),KLocalizedString(), "bastian@kde.org");
54 aboutData->addAuthor(ki18n("Nicolas Ternisien"), KLocalizedString(), "nicolas.ternisien@gmail.com");
55
56 KCmdLineOptions options;
57 KCmdLineArgs::addCmdLineOptions( options );
58
59 KCmdLineArgs::init( argc, argv, aboutData );
60
61 KicApp Kic;
62 return Kic.exec();
63}
64