42 #ifndef QNETWORKMANAGERSERVICE_H 43 #define QNETWORKMANAGERSERVICE_H 56 #include <QtDBus/QtDBus> 57 #include <QtDBus/QDBusConnection> 58 #include <QtDBus/QDBusError> 59 #include <QtDBus/QDBusInterface> 60 #include <QtDBus/QDBusMessage> 61 #include <QtDBus/QDBusReply> 63 #include <QtDBus/QDBusPendingCallWatcher> 64 #include <QtDBus/QDBusObjectPath> 65 #include <QtDBus/QDBusContext> 71 #ifndef NETWORK_MANAGER_H 102 #define NM_DBUS_SERVICE "org.freedesktop.NetworkManager" 104 #define NM_DBUS_PATH "/org/freedesktop/NetworkManager" 105 #define NM_DBUS_INTERFACE "org.freedesktop.NetworkManager" 106 #define NM_DBUS_INTERFACE_DEVICE NM_DBUS_INTERFACE ".Device" 107 #define NM_DBUS_INTERFACE_DEVICE_WIRED NM_DBUS_INTERFACE_DEVICE ".Wired" 108 #define NM_DBUS_INTERFACE_DEVICE_WIRELESS NM_DBUS_INTERFACE_DEVICE ".Wireless" 109 #define NM_DBUS_PATH_ACCESS_POINT NM_DBUS_PATH "/AccessPoint" 110 #define NM_DBUS_INTERFACE_ACCESS_POINT NM_DBUS_INTERFACE ".AccessPoint" 112 #define NM_DBUS_PATH_SETTINGS "/org/freedesktop/NetworkManagerSettings" 114 #define NM_DBUS_IFACE_SETTINGS_CONNECTION "org.freedesktop.NetworkManagerSettings.Connection" 115 #define NM_DBUS_IFACE_SETTINGS "org.freedesktop.NetworkManagerSettings" 116 #define NM_DBUS_INTERFACE_ACTIVE_CONNECTION NM_DBUS_INTERFACE ".Connection.Active" 117 #define NM_DBUS_INTERFACE_IP4_CONFIG NM_DBUS_INTERFACE ".IP4Config" 119 #define NM_DBUS_SERVICE_USER_SETTINGS "org.freedesktop.NetworkManagerUserSettings" 120 #define NM_DBUS_SERVICE_SYSTEM_SETTINGS "org.freedesktop.NetworkManagerSystemSettings" 122 #define NM_802_11_AP_FLAGS_NONE 0x00000000 123 #define NM_802_11_AP_FLAGS_PRIVACY 0x00000001 203 ApSecurityNone = 0x0,
255 QString networkInterface()
const;
287 bool carrier()
const;
327 quint32 wirelessCapabilities()
const;
375 bool isAutoConnect();
416 bool defaultRoute()
const;
448 #endif //QNETWORKMANAGERSERVICE_H
QList< QDBusObjectPath > activeConnections() const
void deviceRemoved(QDBusObjectPath)
#define QT_END_NAMESPACE
This macro expands to.
~QNetworkManagerInterface()
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
QNetworkManagerConnectionActivePrivate * d
void propertiesChanged(const QString &, QMap< QString, QVariant >)
The QDBusInterface class is a proxy for interfaces on remote objects.
The QDBusPendingCallWatcher class provides a convenient way for waiting for asynchronous replies...
The QString class provides a Unicode character string.
bool wirelessHardwareEnabled() const
QList< quint32 > ServerThing
The QObject class is the base class of all Qt objects.
QMap< QString, QMap< QString, QVariant > > QNmSettingsMap
void activationFinished(QDBusPendingCallWatcher *)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QNmDBusHelper * nmDBusHelper
QNmDBusHelper * nmDBusHelper
QNetworkManagerSettingsConnectionPrivate * d
The QStringList class provides a list of strings.
#define QT_PREPEND_NAMESPACE(name)
This macro qualifies identifier with the full namespace.
QNetworkManagerInterface(QObject *parent=0)
void activateConnection(const QString &serviceName, QDBusObjectPath connection, QDBusObjectPath device, QDBusObjectPath specificObject)
QNmDBusHelper * nmDBusHelper
QNetworkManagerInterfaceDeviceWirelessPrivate * d
void deactivateConnection(QDBusObjectPath connectionPath) const
QList< QDBusObjectPath > getDevices() const
QNetworkManagerIp4ConfigPrivate * d
QNmDBusHelper * nmDBusHelper
QNmDBusHelper * nmDBusHelper
QObject * parent() const
Returns a pointer to the parent object.
QNmDBusHelper * nmDBusHelper
void deviceAdded(QDBusObjectPath)
The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-B...
QNetworkManagerSettingsPrivate * d
void stateChanged(const QString &, quint32)
QDBusInterface * connectionInterface() const
QNetworkManagerInterfaceAccessPointPrivate * d
QNetworkManagerInterfacePrivate * d
QNetworkManagerInterfaceDevicePrivate * d
QDBusObjectPath path() const
QNmDBusHelper * nmDBusHelper
The QMap class is a template class that provides a skip-list-based dictionary.
bool wirelessEnabled() const
QNetworkManagerInterfaceDeviceWiredPrivate * d
The QList class is a template class that provides lists.