2
Copyright 2009 Dario Freddi <drf54321@gmail.com>
3
Copyright 2009 Will Stephenson <wstephenson@kde.org>
4
Copyright 2011-2012 Lamarque V. Souza <lamarque@kde.org>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License as
8
published by the Free Software Foundation; either version 2 of
9
the License or (at your option) version 3 or any later version
10
accepted by the membership of KDE e.V. (or its successor approved
11
by the membership of KDE e.V.), which shall act as a proxy
12
defined in Section 14 of version 3 of the license.
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, see <http://www.gnu.org/licenses/>.
25
#include <KPluginFactory>
27
#include "secretagent.h"
28
#include "interfacenotification.h"
29
#include "modemmonitor.h"
31
#include <QDBusMetaType>
33
K_PLUGIN_FACTORY(NetworkManagementServiceFactory, registerPlugin<NetworkManagementService>();)
34
K_EXPORT_PLUGIN(NetworkManagementServiceFactory("plasmanm", "plasmanm-kded"))
36
class NetworkManagementServicePrivate
42
NetworkManagementService::NetworkManagementService(QObject * parent, const QVariantList&)
43
: KDEDModule(parent), d_ptr(new NetworkManagementServicePrivate)
45
Q_D(NetworkManagementService);
47
d->agent = new SecretAgent(this);
48
new InterfaceNotification(this);
49
new ModemMonitor(this);
52
NetworkManagementService::~NetworkManagementService()