~ubuntu-branches/ubuntu/karmic/knetworkmanager/karmic

« back to all changes in this revision

Viewing changes to knetworkmanager/src/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-09-26 12:40:26 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080926124026-t5fr920l4lf2l6hz
Tags: 1:0.7svn864988-0ubuntu1
New upstream snapshot, now works with current NM API, 
closes LP: #259278

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *
3
 
 * main.cpp - A NetworkManager frontend for KDE 
4
 
 *
5
 
 * Copyright (C) 2005, 2006 Novell, Inc.
6
 
 *
7
 
 * Author: Timo Hoenig <thoenig@suse.de>, <thoenig@nouse.net>
8
 
 *
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.
13
 
 *
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.
18
 
 * 
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
22
 
 *
23
 
 **************************************************************************/
24
 
 
25
 
// KDE includes
26
 
#include <kaboutdata.h>
27
 
#include <kcmdlineargs.h>
28
 
#include <dcopclient.h>
29
 
#include <dcopref.h>
30
 
 
31
 
// Qt includes
32
 
#include <qtimer.h>
33
 
 
34
 
// KNM includes
35
 
#include "knetworkmanager.h"
36
 
 
37
 
 
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");
42
 
 
43
 
extern "C" KDE_EXPORT int
44
 
kdemain (int argc, char* argv[])
45
 
{
46
 
        KAboutData aboutData ("knetworkmanager", I18N_NOOP("KNetworkManager"),
47
 
                              knm_version, knm_descr, KAboutData::License_GPL,
48
 
                              knm_copy, 0, knm_webpage );
49
 
 
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");
55
 
 
56
 
        KCmdLineArgs::init (argc, argv, &aboutData);
57
 
 
58
 
        if (KNetworkManager::start ()) {
59
 
                KNetworkManager app;
60
 
                app.disableSessionManagement ();
61
 
                return app.exec ();
62
 
        }
63
 
        return 0;
64
 
}