diff options
author | Ville Voutilainen <ville.voutilainen@qt.io> | 2017-08-03 19:13:52 +0300 |
---|---|---|
committer | Ville Voutilainen <ville.voutilainen@qt.io> | 2017-08-04 10:21:09 +0000 |
commit | 1671759a9ef01b1e6533d4caf72cfd1ac3c9223e (patch) | |
tree | 3ffdf098e05b9a47769c429985b1393401177e4e /src/networksettings/connman/qnetworksettingsservice_p.cpp | |
parent | 132c80442f8820e3b82ab21f649c810bddd38d3f (diff) |
Introduce a placeholder for removed wired networks
Disable entering the wired network settings when none have been
seen. When a wired network is cable-disconnected, leave a placeholder
for it. When a new wired network is cable-connected, replace the placeholder
with that.
Task-number: QTBUG-60979
Change-Id: I8eeb20d25d765c7bb104ad2e698e4d0686c8dc2d
Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Diffstat (limited to 'src/networksettings/connman/qnetworksettingsservice_p.cpp')
-rw-r--r-- | src/networksettings/connman/qnetworksettingsservice_p.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/networksettings/connman/qnetworksettingsservice_p.cpp b/src/networksettings/connman/qnetworksettingsservice_p.cpp index 49213c4..f5876e7 100644 --- a/src/networksettings/connman/qnetworksettingsservice_p.cpp +++ b/src/networksettings/connman/qnetworksettingsservice_p.cpp @@ -324,6 +324,16 @@ void QNetworkSettingsServicePrivate::disconnectService() } +void QNetworkSettingsServicePrivate::setPlaceholderState(bool placeholderState) +{ + m_placeholderState = placeholderState; +} + +bool QNetworkSettingsServicePrivate::placeholderState() const +{ + return m_placeholderState; +} + void QNetworkSettingsServicePrivate::propertiesUpdated(QDBusPendingCallWatcher *call) { QDBusPendingReply<QVariantMap> reply = *call; |