diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-01-28 16:54:55 -0500 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-01-28 17:00:09 -0500 |
commit | 5ef90db242ad29c9772f2237b477c58ef65545c7 (patch) | |
tree | f9b7b2e56a0aaec37bb9ef99faa316465613b941 /network/abstractnetworkmodel.h | |
parent | 0fee9bfb0f656b78f34c44542329760be2980892 (diff) |
Re-enable network supportmarlin_12.92.0marlin/12.92.012.92.0
Rework network support code to use new connman-glib library instead
of the previously disabled agl-service-network API. The only user
visible change is that a few extra previously exported header files
have been pruned from installation to avoid exposing GLib usage
and potentially requiring users needing to build against it.
Bug-AGL: SPEC-4182
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Iab8f3c9d04ee603e06b80dfd92ac03d9d52af477
Diffstat (limited to 'network/abstractnetworkmodel.h')
-rw-r--r-- | network/abstractnetworkmodel.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/network/abstractnetworkmodel.h b/network/abstractnetworkmodel.h index 1b0db43..349c109 100644 --- a/network/abstractnetworkmodel.h +++ b/network/abstractnetworkmodel.h @@ -4,15 +4,14 @@ #include <QAbstractListModel> #include <QStringList> #include <QtQml/QQmlContext> -#include <QJsonObject> #include "connectionprofile.h" class AbstractNetworkModel : public QAbstractListModel { - Q_OBJECT + Q_OBJECT - public: +public: AbstractNetworkModel(QObject *parent = Q_NULLPTR); virtual QString getType() const = 0; @@ -23,10 +22,11 @@ class AbstractNetworkModel : public QAbstractListModel int rowCount(const QModelIndex &parent = QModelIndex()) const; virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const = 0; - virtual void updateProperties(QString service, QJsonObject properties) =0; + virtual void updateProperties(const QString &service, const QVariantMap &properties) = 0; - protected: +protected: QList<ConnectionProfile *> m_networks; QModelIndex indexOf(ConnectionProfile *network); }; + #endif // ABSTRACT_NETWORK_MODEL_H |