summaryrefslogtreecommitdiffstats
path: root/src/networksettings/connman/qnetworksettingsinterface_p.h
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2018-08-30 14:55:54 +0300
committerPasi Petäjäjärvi <pasi.petajajarvi@qt.io>2018-10-25 06:21:43 +0000
commit5d4ba35bc917bc5a48b60da5a4c2cbd03ff4bbf4 (patch)
treefe4ff27ddb78f7443a03cc4c7a4c087045d4073a /src/networksettings/connman/qnetworksettingsinterface_p.h
parent9ad08f17c3cd96bb6b9d5d501870cb3987ed9097 (diff)
Add support for dynamically add/remove physical network interfaces
Change-Id: I1690ce5f4b71c1faf14002a9389ca7b5f2b5665d Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Diffstat (limited to 'src/networksettings/connman/qnetworksettingsinterface_p.h')
-rw-r--r--src/networksettings/connman/qnetworksettingsinterface_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/networksettings/connman/qnetworksettingsinterface_p.h b/src/networksettings/connman/qnetworksettingsinterface_p.h
index 728e64a..d85712a 100644
--- a/src/networksettings/connman/qnetworksettingsinterface_p.h
+++ b/src/networksettings/connman/qnetworksettingsinterface_p.h
@@ -63,6 +63,7 @@ public:
QNetworkSettingsType::Types type() const {return m_type.type();}
QNetworkSettingsState::States state() const {return m_state.state();}
bool powered() const {return m_powered;}
+ QString path() const;
public slots:
void updateProperty(const QString &name, const QDBusVariant &value);
@@ -98,6 +99,12 @@ public:
virtual ~ConnmanSettingsInterface() {
}
+
+ QString path() const {
+ if (d_ptr)
+ return d_ptr->path();
+ return QString();
+ }
};
QT_END_NAMESPACE