1
/***************************************************************************
3
* main.cpp - A NetworkManager frontend for KDE
5
* Copyright (C) 2005, 2006 Novell, Inc.
7
* Author: Timo Hoenig <thoenig@suse.de>, <thoenig@nouse.net>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
**************************************************************************/
26
#include <kaboutdata.h>
27
#include <kcmdlineargs.h>
28
#include <dcopclient.h>
35
#include "knetworkmanager.h"
38
static const char* knm_version = I18N_NOOP(KNETWORKMANAGER_VERSION_STRING);
39
static const char* knm_descr = I18N_NOOP("A NetworkManager front-end for KDE");
40
static const char* knm_copy = I18N_NOOP("Copyright (C) 2005, 2006 Novell, Inc.");
41
static const char* knm_webpage = I18N_NOOP("http://opensuse.org/Projects/KNetworkManager");
43
extern "C" KDE_EXPORT int
44
kdemain (int argc, char* argv[])
46
KAboutData aboutData ("knetworkmanager", I18N_NOOP("KNetworkManager"),
47
knm_version, knm_descr, KAboutData::License_GPL,
48
knm_copy, 0, knm_webpage );
50
aboutData.addAuthor ("Helmut Schaa", I18N_NOOP("Maintainer"), "hschaa@suse.de");
51
aboutData.addAuthor ("Timo Hoenig", I18N_NOOP("Maintainer"), "thoenig@suse.de");
52
aboutData.addAuthor ("Will Stephenson", I18N_NOOP("Additional code"), "wstephenson@suse.de");
53
aboutData.addAuthor ("Valentine Sinitsyn", I18N_NOOP("Additional code"), "e_val@inbox.ru");
54
aboutData.addAuthor ("Stefan Bogner", I18N_NOOP("KWallet integration"), "sbogner@suse.de");
56
KCmdLineArgs::init (argc, argv, &aboutData);
58
if (KNetworkManager::start ()) {
60
app.disableSessionManagement ();