summaryrefslogtreecommitdiffstats
path: root/network/wirednetworkmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'network/wirednetworkmodel.h')
-rw-r--r--network/wirednetworkmodel.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/network/wirednetworkmodel.h b/network/wirednetworkmodel.h
index c8ea92d..352d9b3 100644
--- a/network/wirednetworkmodel.h
+++ b/network/wirednetworkmodel.h
@@ -5,16 +5,16 @@
class WiredNetworkModel : public AbstractNetworkModel
{
- Q_OBJECT
+ Q_OBJECT
- public:
+public:
enum WiredNetworkRoles {
- AddressRole = Qt::UserRole + 1,
- SecurityRole,
- ServiceRole,
- StateRole,
- RouteRole,
- NameServerRole,
+ AddressRole = Qt::UserRole + 1,
+ SecurityRole,
+ ServiceRole,
+ StateRole,
+ RouteRole,
+ NameServerRole,
};
WiredNetworkModel(QObject *parent = Q_NULLPTR);
@@ -23,9 +23,9 @@ class WiredNetworkModel : public AbstractNetworkModel
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;
+ void updateProperties(const QString &service, const QVariantMap &properties) override;
- protected:
+protected:
QHash<int, QByteArray> roleNames() const;
};