summaryrefslogtreecommitdiffstats
path: root/src/networksettings/connman/qnetworksettingsmanager_p.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/connman/qnetworksettingsmanager_p.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/connman/qnetworksettingsmanager_p.h')
-rw-r--r--src/networksettings/connman/qnetworksettingsmanager_p.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/networksettings/connman/qnetworksettingsmanager_p.h b/src/networksettings/connman/qnetworksettingsmanager_p.h
index 8b5d1a7..c6f31e6 100644
--- a/src/networksettings/connman/qnetworksettingsmanager_p.h
+++ b/src/networksettings/connman/qnetworksettingsmanager_p.h
@@ -74,6 +74,10 @@ public:
QNetworkSettingsService* currentWifiConnection() const {return m_currentWifiConnection;}
void setCurrentWiredConnection(QNetworkSettingsService *connection) {m_currentWiredConnection = connection;}
QNetworkSettingsService* currentWiredConnection() const {return m_currentWiredConnection;}
+ QString usbEthernetInternetProtocolAddress();
+ QString usbVirtualEthernetLinkProtocol();
+ bool hasUsbEthernetProtocolConfiguration();
+ void setUsbVirtualEthernetLinkProtocol(const QString &protocol);
public slots:
void getServicesFinished(QDBusPendingCallWatcher *watcher);
@@ -84,9 +88,14 @@ public slots:
void onConnmanServiceRegistered(const QString &serviceName);
void onTechnologyAdded(const QDBusObjectPath &technology, const QVariantMap &properties);
void onTechnologyRemoved(const QDBusObjectPath &technology);
+
private:
bool initialize();
- void handleNewService(const QString& servicePath);
+ void handleNewService(const QString &servicePath);
+ void writeUsbEthernetProtocolToFileContent(QByteArray &fileContent, const QString &protocol);
+ static QByteArray readQdbdFileContent();
+ static QByteArray readUsbEthernetProtocolLine();
+
protected:
QNetworkSettingsInterfaceModel m_interfaceModel;
QNetworkSettingsServiceModel *m_serviceModel;