summaryrefslogtreecommitdiffstats
path: root/src/networksettings/qnetworksettingsmanager.h
diff options
context:
space:
mode:
authorRami Potinkara <rami.potinkara@qt.io>2020-05-25 18:52:09 +0300
committerRami Potinkara <rami.potinkara@qt.io>2020-07-15 13:29:12 +0000
commit714e5dadf2d6064aaddd7d4e0abd55af332b9448 (patch)
tree0eb645a417ff8987849d094090c3cf5b4a47727f /src/networksettings/qnetworksettingsmanager.h
parentbdbef030c3f81bd06fa1f69b4981d6b60634f913 (diff)
new menu item for usb ethernet protocol selection5.15
Task-number: QTBUG-83011 Change-Id: I8098ef26c9fa42cdf301145937eca011365d6f19 Pick-to: 5.15 Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Diffstat (limited to 'src/networksettings/qnetworksettingsmanager.h')
-rw-r--r--src/networksettings/qnetworksettingsmanager.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/networksettings/qnetworksettingsmanager.h b/src/networksettings/qnetworksettingsmanager.h
index 17a3082..16ed539 100644
--- a/src/networksettings/qnetworksettingsmanager.h
+++ b/src/networksettings/qnetworksettingsmanager.h
@@ -52,6 +52,8 @@ class Q_DECL_EXPORT QNetworkSettingsManager : public QObject
Q_PROPERTY(QNetworkSettingsUserAgent* userAgent READ userAgent CONSTANT)
Q_PROPERTY(QNetworkSettingsService* currentWifiConnection READ currentWifiConnection NOTIFY currentWifiConnectionChanged)
Q_PROPERTY(QNetworkSettingsService* currentWiredConnection READ currentWiredConnection NOTIFY currentWiredConnectionChanged)
+ Q_PROPERTY(QString usbEthernetIpAddress READ usbEthernetInternetProtocolAddress NOTIFY usbEthernetInternetProtocolAddressChanged)
+ Q_PROPERTY(QString usbEthernetProtocol READ usbVirtualEthernetLinkProtocol NOTIFY usbVirtualEthernetLinkProtocolChanged)
public:
explicit QNetworkSettingsManager(QObject* parent = Q_NULLPTR);
@@ -69,18 +71,26 @@ public:
QNetworkSettingsService* currentWifiConnection();
QNetworkSettingsService* currentWiredConnection();
Q_INVOKABLE QNetworkSettingsInterface* interface(int type, int instance);
+ Q_INVOKABLE QString usbEthernetInternetProtocolAddress();
+ Q_INVOKABLE QString usbVirtualEthernetLinkProtocol();
+ Q_INVOKABLE bool hasUsbEthernetProtocolConfiguration();
+ Q_INVOKABLE void setUsbVirtualEthernetLinkProtocol(const QString &protocol);
Q_SIGNALS:
void servicesChanged();
void interfacesChanged();
void currentWifiConnectionChanged();
void currentWiredConnectionChanged();
+ void usbEthernetInternetProtocolAddressChanged(const QString &newusbEthernetIpAddress);
+ void usbVirtualEthernetLinkProtocolChanged(const QString &newUsbEthernetProtocol);
+
protected:
QNetworkSettingsManagerPrivate *d_ptr;
private:
Q_DISABLE_COPY(QNetworkSettingsManager)
Q_DECLARE_PRIVATE(QNetworkSettingsManager)
+
};
QT_END_NAMESPACE