summaryrefslogtreecommitdiffstats
path: root/network/wirednetworkmodel.h
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-09-09 00:35:55 +0200
committerraquel medina <raquel.medina@konsulko.com>2019-09-20 15:38:55 +0000
commit18dde87f580d41f6743b64b824b55d68df81aff1 (patch)
treed5666e316fc98c1d2ed70199c3309ee472c82de2 /network/wirednetworkmodel.h
parentfc0369fdb69dcdcefeea80d3ddb580980e5365f4 (diff)
wired: add hooks for addressing configuration
- Add new roles to provide UI clients with the active configuration (values obtained from the stack: agl-service-network binding + connman). - Add Q_INVOKABLE methods to feed new values from the UI client. SPEC-2676 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: Id239ddc549ec8471d44d56f7631d4e9e3efda798 (cherry picked from commit 4221fd2f9e5b72090fe5c2c5f19aa16ab8bf68b8)
Diffstat (limited to 'network/wirednetworkmodel.h')
-rw-r--r--network/wirednetworkmodel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/network/wirednetworkmodel.h b/network/wirednetworkmodel.h
index b73fa3f..c8ea92d 100644
--- a/network/wirednetworkmodel.h
+++ b/network/wirednetworkmodel.h
@@ -13,10 +13,14 @@ class WiredNetworkModel : public AbstractNetworkModel
SecurityRole,
ServiceRole,
StateRole,
+ RouteRole,
+ NameServerRole,
};
WiredNetworkModel(QObject *parent = Q_NULLPTR);
+ Q_INVOKABLE QVariantList readCurrentRouteConfig(const QModelIndex &index) const;
+ Q_INVOKABLE QVariantList readCurrentNameServerConfig(const QModelIndex &index) const;
QString getType() const override { return "wired"; }
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
void updateProperties(QString service, QJsonObject properties) override;