Changeset View
Changeset View
Standalone View
Standalone View
libs/models/networkmodel.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 44 | enum ItemRole { | |||
---|---|---|---|---|---|
62 | SlaveRole, | 62 | SlaveRole, | ||
63 | SsidRole, | 63 | SsidRole, | ||
64 | SpecificPathRole, | 64 | SpecificPathRole, | ||
65 | TimeStampRole, | 65 | TimeStampRole, | ||
66 | TypeRole, | 66 | TypeRole, | ||
67 | UniRole, | 67 | UniRole, | ||
68 | UuidRole, | 68 | UuidRole, | ||
69 | VpnState, | 69 | VpnState, | ||
70 | VpnType | 70 | VpnType, | ||
71 | RxBytesRole, | ||||
72 | TxBytesRole | ||||
71 | }; | 73 | }; | ||
72 | 74 | | |||
73 | int rowCount(const QModelIndex &parent) const override; | 75 | int rowCount(const QModelIndex &parent) const override; | ||
74 | QVariant data(const QModelIndex &index, int role) const override; | 76 | QVariant data(const QModelIndex &index, int role) const override; | ||
75 | QHash<int, QByteArray> roleNames() const override; | 77 | QHash<int, QByteArray> roleNames() const override; | ||
76 | 78 | | |||
77 | public Q_SLOTS: | 79 | public Q_SLOTS: | ||
78 | void onItemUpdated(); | 80 | void onItemUpdated(); | ||
81 | void setDeviceStatisticsRefreshRateMs(const QString &devicePath, uint refreshRate); | ||||
79 | 82 | | |||
80 | private Q_SLOTS: | 83 | private Q_SLOTS: | ||
81 | void accessPointSignalStrengthChanged(int signal); | 84 | void accessPointSignalStrengthChanged(int signal); | ||
82 | void activeConnectionAdded(const QString &activeConnection); | 85 | void activeConnectionAdded(const QString &activeConnection); | ||
83 | void activeConnectionRemoved(const QString &activeConnection); | 86 | void activeConnectionRemoved(const QString &activeConnection); | ||
84 | void activeConnectionStateChanged(NetworkManager::ActiveConnection::State state); | 87 | void activeConnectionStateChanged(NetworkManager::ActiveConnection::State state); | ||
85 | void activeVpnConnectionStateChanged(NetworkManager::VpnConnection::State state,NetworkManager::VpnConnection::StateChangeReason reason); | 88 | void activeVpnConnectionStateChanged(NetworkManager::VpnConnection::State state,NetworkManager::VpnConnection::StateChangeReason reason); | ||
86 | void availableConnectionAppeared(const QString &connection); | 89 | void availableConnectionAppeared(const QString &connection); | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |