Changeset View
Changeset View
Standalone View
Standalone View
libs/models/networkmodel.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 44 | enum ItemRole { | |||
---|---|---|---|---|---|
66 | TypeRole, | 66 | TypeRole, | ||
67 | UniRole, | 67 | UniRole, | ||
68 | UuidRole, | 68 | UuidRole, | ||
69 | VpnState, | 69 | VpnState, | ||
70 | VpnType, | 70 | VpnType, | ||
71 | RxBytesRole, | 71 | RxBytesRole, | ||
72 | TxBytesRole | 72 | TxBytesRole | ||
73 | }; | 73 | }; | ||
74 | Q_ENUMS(ItemRole) | ||||
74 | 75 | | |||
75 | int rowCount(const QModelIndex &parent) const override; | 76 | int rowCount(const QModelIndex &parent) const override; | ||
76 | QVariant data(const QModelIndex &index, int role) const override; | 77 | QVariant data(const QModelIndex &index, int role) const override; | ||
77 | QHash<int, QByteArray> roleNames() const override; | 78 | QHash<int, QByteArray> roleNames() const override; | ||
78 | 79 | | |||
79 | public Q_SLOTS: | 80 | public Q_SLOTS: | ||
80 | void onItemUpdated(); | 81 | void onItemUpdated(); | ||
81 | void setDeviceStatisticsRefreshRateMs(const QString &devicePath, uint refreshRate); | 82 | void setDeviceStatisticsRefreshRateMs(const QString &devicePath, uint refreshRate); | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |