2
Copyright 2013 Jan Grulich <jgrulich@redhat.com>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) version 3, or any
8
later version accepted by the membership of KDE e.V. (or its
9
successor approved by the membership of KDE e.V.), which shall
10
act as a proxy defined in Section 6 of version 3 of the license.
12
This library 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 GNU
15
Lesser General Public License for more details.
17
You should have received a copy of the GNU Lesser General Public
18
License along with this library. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef PLASMA_NM_MONITOR_H
22
#define PLASMA_NM_MONITOR_H
24
#include <NetworkManagerQt/ActiveConnection>
25
#include <NetworkManagerQt/AccessPoint>
26
#include <NetworkManagerQt/Device>
27
#include <NetworkManagerQt/Manager>
28
#include <NetworkManagerQt/VpnConnection>
29
#include <NetworkManagerQt/WirelessNetwork>
30
#include <NetworkManagerQt/WirelessDevice>
32
#include <ModemManagerQt/modeminterface.h>
34
class Monitor : public QObject
38
explicit Monitor(QObject* parent = 0);
45
void availableConnectionAppeared(const QString& connection);
46
void availableConnectionDisappeared(const QString& connection);
47
void activeConnectionAdded(const QString& active);
48
void activeConnectionRemoved(const QString& active);
49
void activeConnectionStateChanged(NetworkManager::ActiveConnection::State state);
50
void cablePlugged(bool plugged);
51
void connectionAdded(const QString& connection);
52
void connectionRemoved(const QString& connection);
53
void connectionUpdated();
54
void deviceAdded(const QString& device);
55
void deviceRemoved(const QString& device);
56
void gsmNetworkAccessTechnologyChanged(ModemManager::ModemInterface::AccessTechnology technology);
57
void gsmNetworkAllowedModeChanged(ModemManager::ModemInterface::AllowedMode mode);
58
void gsmNetworkSignalQualityChanged(uint signal);
59
void statusChanged(NetworkManager::Status status);
60
void wimaxNspAppeared(const QString& nsp);
61
void wimaxNspDisappeared(const QString& nsp);
62
void wimaxNspSignalChanged(uint signal);
63
void wimaxEnabled(bool enabled);
64
void wirelessNetworkAppeared(const QString& ssid);
65
void wirelessNetworkDisappeared(const QString& ssid);
66
void wirelessNetworkSignalChanged(int strength);
67
void wirelessNetworkReferenceApChanged(const QString& ap);
68
void wirelessEnabled(bool enabled);
70
void activeConnectionStateChanged(const QString& active, NetworkManager::ActiveConnection::State state);
71
void addActiveConnection(const QString& active);
72
void addConnection(const QString& connection, const QString& device);
73
void addNspNetwork(const QString& nsp, const QString& device);
74
void addVpnConnection(const QString& connection);
75
void addWimaxNsp(const QString& nsp, const QString& device);
76
void addWirelessNetwork(const QString& network, const QString& device);
77
void connectionUpdated(const QString& connection);
78
void modemAccessTechnologyChanged(const QString& modem);
79
void modemAllowedModeChanged(const QString& modem);
80
void modemSignalQualityChanged(const QString& modem);
81
void removeActiveConnection(const QString& active);
82
void removeConnectionsByDevice(const QString& udi);
83
void removeConnection(const QString& connection);
84
void removeVpnConnections();
85
void removeWimaxNsp(const QString& nsp, const QString& device);
86
void removeWimaxNsps();
87
void removeWirelessNetwork(const QString& ssid, const QString& device);
88
void removeWirelessNetworks();
89
void vpnConnectionStateChanged(const QString& vpn, NetworkManager::VpnConnection::State state);
90
void wimaxNspSignalChanged(const QString& nsp, int strength);
91
void wirelessNetworkSignalChanged(const QString& ssid, int signal);
92
void wirelessNetworkAccessPointChanged(const QString& ssid, const QString& ap);
95
void addAvailableConnectionsForDevice(const NetworkManager::Device::Ptr& device);
96
void addDevice(const NetworkManager::Device::Ptr& device);
99
#endif // PLASMA_NM_MONITOR_H