44 #include <QtDBus/QtDBus> 45 #include <QtDBus/QDBusConnection> 46 #include <QtDBus/QDBusError> 47 #include <QtDBus/QDBusInterface> 48 #include <QtDBus/QDBusMessage> 49 #include <QtDBus/QDBusReply> 50 #include <QtDBus/QDBusPendingCallWatcher> 51 #include <QtDBus/QDBusObjectPath> 52 #include <QtDBus/QDBusPendingCall> 140 return reply.
value();
197 d->
path = dbusPathName;
305 d->
path = deviceObjectPath;
396 d->
path = ifaceDevicePath;
400 dbusConnection, parent);
473 d->
path = ifaceDevicePath;
477 dbusConnection, parent);
550 return reply.
value();
590 d->
path = settingsService;
629 return reply.
value();
649 :
QObject(parent), nmDBusHelper(0)
651 qDBusRegisterMetaType<QNmSettingsMap>();
653 d->path = connectionObjectPath;
654 d->service = settingsService;
658 dbusConnection, parent);
659 if (!d->connectionInterface->isValid()) {
665 d->settingsMap = rep.
value();
741 return autoConnect.
toBool();
807 d->
path = activeConnectionObjectPath;
811 dbusConnection, parent);
819 QNetworkManagerConnectionActive::~QNetworkManagerConnectionActive()
901 d->
path = deviceObjectPath;
905 dbusConnection, parent);
The QVariant class acts like a union for the most common Qt data types.
QList< QDBusObjectPath > activeConnections() const
QDBusInterface * connectionInterface
void deviceRemoved(QDBusObjectPath)
QDBusInterface * connectionInterface() const
#define QT_END_NAMESPACE
This macro expands to.
void newConnection(QDBusObjectPath)
QString path() const
Returns the object path that this interface is associated with.
~QNetworkManagerInterface()
~QNetworkManagerInterfaceDeviceWired()
quint32 deviceType() const
QDBusInterface * connectionInterface
QNetworkManagerConnectionActivePrivate * d
QNetworkManagerInterfaceDeviceWired(const QString &ifaceDevicePath, QObject *parent=0)
bool isValid() const
Returns true if this is a valid reference to a remote object.
QList< QDBusObjectPath > devices() const
QDBusInterface * connectionInterface
QNmSettingsMap settingsMap
The QDBusReply class stores the reply for a method call to a remote object.
QDBusPendingCall asyncCall(const QString &method, const QVariant &arg1=QVariant(), const QVariant &arg2=QVariant(), const QVariant &arg3=QVariant(), const QVariant &arg4=QVariant(), const QVariant &arg5=QVariant(), const QVariant &arg6=QVariant(), const QVariant &arg7=QVariant(), const QVariant &arg8=QVariant())
Calls the method method on this interface and passes the parameters to this function to the method...
void stateChanged(const QString &, quint32)
QDBusInterface * connectionInterface() const
The QDBusError class represents an error received from the D-Bus bus or from remote applications foun...
The QDBusPendingCall class refers to one pending asynchronous call.
QString toString() const
Returns the variant as a QString if the variant has type() String , Bool , ByteArray ...
void propertiesChanged(const QString &, QMap< QString, QVariant >)
QString hwAddress() const
The QDBusInterface class is a proxy for interfaces on remote objects.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
bool toBool() const
Returns the variant as a bool if the variant has type() Bool.
static QDBusConnection systemBus()
Returns a QDBusConnection object opened with the system bus.
The QDBusPendingCallWatcher class provides a convenient way for waiting for asynchronous replies...
#define NM_DBUS_INTERFACE_ACCESS_POINT
#define NM_DBUS_PATH_SETTINGS
The QString class provides a Unicode character string.
bool wirelessHardwareEnabled() const
QNetworkManagerIp4Config(const QString &dbusPathName, QObject *parent=0)
QStringList getSeenBssids()
The QObject class is the base class of all Qt objects.
QDBusInterface * connectionInterface() const
QDBusInterface * connectionInterface
void propertiesChanged(QList< QDBusObjectPath >)
QString hwAddress() const
#define NM_DBUS_INTERFACE_DEVICE
QStringList toStringList() const
Returns the variant as a QStringList if the variant has type() StringList, String ...
QList< QDBusObjectPath > listConnections()
void activationFinished(QDBusPendingCallWatcher *)
void propertiesChanged(const QString &, QMap< QString, QVariant >)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDBusInterface * connectionInterface
QNmDBusHelper * nmDBusHelper
QDBusInterface * connectionInterface() const
QNmDBusHelper * nmDBusHelper
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
~QNetworkManagerSettings()
QList< QDBusObjectPath > getAccessPoints()
QNetworkManagerSettingsConnectionPrivate * d
const T value(const Key &key) const
Returns the value associated with the key key.
QNetworkManagerInterfaceDeviceWireless(const QString &ifaceDevicePath, QObject *parent=0)
The QStringList class provides a list of strings.
QNetworkManagerInterface(QObject *parent=0)
#define NM_DBUS_INTERFACE_DEVICE_WIRELESS
void activateConnection(const QString &serviceName, QDBusObjectPath connection, QDBusObjectPath device, QDBusObjectPath specificObject)
#define NM_DBUS_IFACE_SETTINGS
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
void propertiesChanged(const QString &, QMap< QString, QVariant >)
QDBusObjectPath ip4config() const
QStringList domains() const
QDBusObjectPath connection() const
QNmDBusHelper * nmDBusHelper
QNetworkManagerInterfaceDeviceWirelessPrivate * d
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
QDBusError lastError() const
Returns the last error that happened in this connection.
void deactivateConnection(QDBusObjectPath connectionPath) const
QList< QDBusObjectPath > getDevices() const
QString networkInterface() const
#define NM_DBUS_INTERFACE_IP4_CONFIG
QDBusInterface * connectionInterface() const
#define NM_DBUS_INTERFACE_ACTIVE_CONNECTION
QNetworkManagerIp4ConfigPrivate * d
QNmDBusHelper * nmDBusHelper
QNetworkManagerConnectionActive(const QString &dbusPathName, QObject *parent=0)
void accessPointAdded(const QString &, QDBusObjectPath)
QNmDBusHelper * nmDBusHelper
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
Connects the signal specified by the service, path, interface and name parameters to the slot slot in...
quint32 ip4Address() const
static QDBusConnection dbusConnection
void accessPointRemoved(const QString &, QDBusObjectPath)
QNetworkManagerSettings(const QString &settingsService, QObject *parent=0)
The QDBusConnection class represents a connection to the D-Bus bus daemon.
QString hwAddress() const
QDBusInterface * connectionInterface
QNetworkManagerInterfaceDevice(const QString &deviceObjectPath, QObject *parent=0)
QObject * parent() const
Returns a pointer to the parent object.
~QNetworkManagerSettingsConnection()
QNmDBusHelper * nmDBusHelper
uint toUInt(bool *ok=0) const
Returns the variant as an unsigned int if the variant has type() UInt , Bool , ByteArray ...
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)
#define NM_DBUS_INTERFACE
QString serviceName() const
quint32 frequency() const
QDBusInterface * connectionInterface
QVariant property(const char *name) const
Returns the value of the object's name property.
QNetworkManagerInterfaceAccessPoint(const QString &dbusPathName, QObject *parent=0)
QDBusInterface * connectionInterface() const
QNetworkManagerSettingsConnection(const QString &settingsService, const QString &connectionObjectPath, QObject *parent=0)
#define NM_DBUS_INTERFACE_DEVICE_WIRED
#define NM_DBUS_IFACE_SETTINGS_CONNECTION
void propertiesChanged(QMap< QString, QVariant >)
QDBusInterface * connectionInterface() const
quint32 maxBitrate() const
T value() const
Returns the stored value converted to the template type T.
bool isValid() const
Returns true if the storage type of this variant is not QVariant::Invalid; otherwise returns false...
void updated(const QNmSettingsMap &settings)
~QNetworkManagerIp4Config()
~QNetworkManagerInterfaceDeviceWireless()
QDBusInterface * connectionInterface() const
~QNetworkManagerInterfaceAccessPoint()
QNetworkManagerInterfaceAccessPointPrivate * d
~QNetworkManagerInterfaceDevice()
Type value() const
Returns the remote function's calls return value.
QNetworkManagerInterfacePrivate * d
QDBusObjectPath specificObject() const
bool defaultRoute() const
QNetworkManagerInterfaceDevicePrivate * d
QDBusInterface * connectionInterface
QNmDBusHelper * nmDBusHelper
bool wirelessEnabled() const
QDBusInterface * connectionInterface
QDBusObjectPath activeAccessPoint() const
QNetworkManagerInterfaceDeviceWiredPrivate * d
QNmSettingsMap getSettings()
The QList class is a template class that provides lists.
quint32 wirelessCapabilities() const
QDBusMessage call(const QString &method, const QVariant &arg1=QVariant(), const QVariant &arg2=QVariant(), const QVariant &arg3=QVariant(), const QVariant &arg4=QVariant(), const QVariant &arg5=QVariant(), const QVariant &arg6=QVariant(), const QVariant &arg7=QVariant(), const QVariant &arg8=QVariant())
Calls the method method on this interface and passes the parameters to this function to the method...
void removed(const QString &path)