7#ifndef NETWORKMANAGERQT_FAKE_NETWORK_H
8#define NETWORKMANAGERQT_FAKE_NETWORK_H
12#include <QDBusObjectPath>
15#include "../generictypes.h"
17#include "activeconnection.h"
21class FakeNetwork :
public QObject
24 Q_CLASSINFO(
"D-Bus Interface",
"org.kde.fakenetwork")
27 ~FakeNetwork() override;
31 Q_PROPERTY(uint Connectivity READ connectivity)
33 Q_PROPERTY(
bool NetworkingEnabled READ networkingEnabled)
37 Q_PROPERTY(
bool WimaxEnabled READ wimaxEnabled WRITE setWimaxEnabled)
38 Q_PROPERTY(
bool WimaxHardwareEnabled READ wimaxHardwareEnabled)
39 Q_PROPERTY(
bool WirelessEnabled READ wirelessEnabled WRITE setWirelessEnabled)
40 Q_PROPERTY(
bool WirelessHardwareEnabled READ wirelessHardwareEnabled)
41 Q_PROPERTY(
bool WwanEnabled READ wwanEnabled WRITE setWwanEnabled)
42 Q_PROPERTY(
bool WwanHardwareEnabled READ wwanHardwareEnabled)
46 uint connectivity() const;
48 bool networkingEnabled() const;
52 bool wimaxEnabled() const;
53 void setWimaxEnabled(
bool enabled);
54 bool wimaxHardwareEnabled() const;
55 void setWimaxHardwareEnabled(
bool enabled);
56 bool wirelessEnabled() const;
57 void setWirelessEnabled(
bool enabled);
58 bool wirelessHardwareEnabled() const;
59 void setWirelessHardwareEnabled(
bool enabled);
60 bool wwanEnabled() const;
61 void setWwanEnabled(
bool enabled);
62 bool wwanHardwareEnabled() const;
65 void addDevice(Device *device);
66 void removeDevice(Device *device);
67 void registerService();
68 void unregisterService();
74 void updateConnectingState();
75 void updateDeactivatingState();
79 Q_SCRIPTABLE uint CheckConnectivity() const;
80 Q_SCRIPTABLE
void DeactivateConnection(const
QDBusObjectPath &active_connection);
87 Q_SCRIPTABLE
void PropertiesChanged(const QVariantMap &properties);
88 Q_SCRIPTABLE
void StateChanged(uint state);
95 bool m_networkingEnabled;
100 bool m_wimaxHardwareEnabled;
101 bool m_wirelessEnabled;
102 bool m_wirelessHardwareEnabled;
104 bool m_wwanHardwareEnabled;
109 int m_activeConnectionsCounter;
111 Settings *m_settings;
QObject * parent() const const