11#ifndef ACTIVECONNECTIONINTERFACE_H
12#define ACTIVECONNECTIONINTERFACE_H
14#include "generictypes.h"
16#include <QDBusAbstractInterface>
17#include <QDBusObjectPath>
30 static inline const char *staticInterfaceName()
33 return "org.kde.fakenetwork.Connection.Active";
37 return "org.freedesktop.NetworkManager.Connection.Active";
42 OrgFreedesktopNetworkManagerConnectionActiveInterface(
const QString &
service,
47 ~OrgFreedesktopNetworkManagerConnectionActiveInterface()
override;
52 return qvariant_cast<QDBusObjectPath>(
property(
"Connection"));
56 inline bool default4()
const
58 return qvariant_cast<bool>(
property(
"Default"));
62 inline bool default6()
const
64 return qvariant_cast<bool>(
property(
"Default6"));
70 return qvariant_cast<QList<QDBusObjectPath>>(
property(
"Devices"));
76 return qvariant_cast<QDBusObjectPath>(
property(
"Dhcp4Config"));
82 return qvariant_cast<QDBusObjectPath>(
property(
"Dhcp6Config"));
88 return qvariant_cast<QString>(
property(
"Id"));
94 return qvariant_cast<QDBusObjectPath>(
property(
"Ip4Config"));
100 return qvariant_cast<QDBusObjectPath>(
property(
"Ip6Config"));
106 return qvariant_cast<QDBusObjectPath>(
property(
"Master"));
112 return qvariant_cast<QDBusObjectPath>(
property(
"SpecificObject"));
116 inline uint state()
const
118 return qvariant_cast<uint>(
property(
"State"));
124 return qvariant_cast<QString>(
property(
"Type"));
130 return qvariant_cast<QString>(
property(
"Uuid"));
134 inline bool vpn()
const
136 return qvariant_cast<bool>(
property(
"Vpn"));
141 void PropertiesChanged(
const QVariantMap &properties);
142 void StateChanged(uint state, uint reason);
QString path() const const
QString service() const const
QObject * parent() const const
QVariant property(const char *name) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:13 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.