summaryrefslogtreecommitdiffstats
path: root/network/wirednetworkmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'network/wirednetworkmodel.h')
-rw-r--r--network/wirednetworkmodel.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/network/wirednetworkmodel.h b/network/wirednetworkmodel.h
new file mode 100644
index 0000000..b73fa3f
--- /dev/null
+++ b/network/wirednetworkmodel.h
@@ -0,0 +1,28 @@
+#ifndef WIRED_NETWORK_MODEL_H
+#define WIRED_NETWORK_MODEL_H
+
+#include "abstractnetworkmodel.h"
+
+class WiredNetworkModel : public AbstractNetworkModel
+{
+ Q_OBJECT
+
+ public:
+ enum WiredNetworkRoles {
+ AddressRole = Qt::UserRole + 1,
+ SecurityRole,
+ ServiceRole,
+ StateRole,
+ };
+
+ WiredNetworkModel(QObject *parent = Q_NULLPTR);
+
+ QString getType() const override { return "wired"; }
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ void updateProperties(QString service, QJsonObject properties) override;
+
+ protected:
+ QHash<int, QByteArray> roleNames() const;
+
+};
+#endif // WIRED_NETWORK_MODEL_H