summaryrefslogtreecommitdiffstats
path: root/network/abstractnetworkmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'network/abstractnetworkmodel.h')
-rw-r--r--network/abstractnetworkmodel.h10
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