Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qnetworkmanagerservice.cpp File Reference

(cb9b46ef70f06c51aea01e83dd07d21a56627a50)

#include "qnetworkmanagerservice.h"
#include "qnetworkmanagernetworkinformationbackend.h"
#include <QObject>
#include <QList>
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusError>
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusMessage>
#include <QtDBus/QDBusReply>
#include <QtDBus/QDBusPendingCallWatcher>
#include <QtDBus/QDBusObjectPath>
#include <QtDBus/QDBusPendingCall>
#include "moc_qnetworkmanagerservice.cpp"
+ Include dependency graph for qnetworkmanagerservice.cpp:

Go to the source code of this file.

Macros

#define DBUS_PROPERTIES_INTERFACE   "org.freedesktop.DBus.Properties"_L1
 
#define NM_DBUS_INTERFACE   "org.freedesktop.NetworkManager"
 
#define NM_DBUS_SERVICE   NM_DBUS_INTERFACE ""_L1
 
#define NM_DBUS_PATH   "/org/freedesktop/NetworkManager"_L1
 
#define NM_CONNECTION_DBUS_INTERFACE   NM_DBUS_SERVICE ".Connection.Active"_L1
 
#define NM_DEVICE_DBUS_INTERFACE   NM_DBUS_SERVICE ".Device"_L1
 

Functions

static std::optional< QDBusInterfacegetPrimaryDevice (const QDBusObjectPath &devicePath)
 

Macro Definition Documentation

◆ DBUS_PROPERTIES_INTERFACE

#define DBUS_PROPERTIES_INTERFACE   "org.freedesktop.DBus.Properties"_L1

◆ NM_CONNECTION_DBUS_INTERFACE

#define NM_CONNECTION_DBUS_INTERFACE   NM_DBUS_SERVICE ".Connection.Active"_L1

Definition at line 24 of file qnetworkmanagerservice.cpp.

Referenced by getPrimaryDevice().

◆ NM_DBUS_INTERFACE

#define NM_DBUS_INTERFACE   "org.freedesktop.NetworkManager"

Definition at line 20 of file qnetworkmanagerservice.cpp.

◆ NM_DBUS_PATH

#define NM_DBUS_PATH   "/org/freedesktop/NetworkManager"_L1

◆ NM_DBUS_SERVICE

◆ NM_DEVICE_DBUS_INTERFACE

#define NM_DEVICE_DBUS_INTERFACE   NM_DBUS_SERVICE ".Device"_L1

Definition at line 25 of file qnetworkmanagerservice.cpp.

Referenced by getPrimaryDevice().

Function Documentation

◆ getPrimaryDevice()

static std::optional< QDBusInterface > getPrimaryDevice ( const QDBusObjectPath & devicePath)
static

Definition at line 110 of file qnetworkmanagerservice.cpp.

References connection, NM_CONNECTION_DBUS_INTERFACE, NM_DBUS_SERVICE, NM_DEVICE_DBUS_INTERFACE, QDBusObjectPath::path(), QObject::property(), QDBusConnection::systemBus(), and QVariant::value().

+ Here is the call graph for this function: