Changeset View
Changeset View
Standalone View
Standalone View
dataengines/systemmonitor/systemmonitor.h
Show All 18 Lines | |||||
19 | #ifndef SYSTEMMONITORENGINE_H | 19 | #ifndef SYSTEMMONITORENGINE_H | ||
20 | #define SYSTEMMONITORENGINE_H | 20 | #define SYSTEMMONITORENGINE_H | ||
21 | 21 | | |||
22 | #include <Plasma/DataEngine> | 22 | #include <Plasma/DataEngine> | ||
23 | 23 | | |||
24 | #include <ksgrd/SensorClient.h> | 24 | #include <ksgrd/SensorClient.h> | ||
25 | 25 | | |||
26 | #include <QStringList> | 26 | #include <QStringList> | ||
27 | #include <QVector> | ||||
27 | 28 | | |||
28 | class QTimer; | 29 | class QTimer; | ||
29 | 30 | | |||
30 | /** | 31 | /** | ||
31 | * This class evaluates the basic expressions given in the interface. | 32 | * This class evaluates the basic expressions given in the interface. | ||
32 | */ | 33 | */ | ||
33 | class SystemMonitorEngine : public Plasma::DataEngine, public KSGRD::SensorClient | 34 | class SystemMonitorEngine : public Plasma::DataEngine, public KSGRD::SensorClient | ||
34 | { | 35 | { | ||
Show All 12 Lines | 44 | protected: | |||
47 | void sensorLost( int ) override; | 48 | void sensorLost( int ) override; | ||
48 | bool updateSourceEvent(const QString &sensorName) override; | 49 | bool updateSourceEvent(const QString &sensorName) override; | ||
49 | 50 | | |||
50 | protected Q_SLOTS: | 51 | protected Q_SLOTS: | ||
51 | void updateSensors(); | 52 | void updateSensors(); | ||
52 | void updateMonitorsList(); | 53 | void updateMonitorsList(); | ||
53 | 54 | | |||
54 | private: | 55 | private: | ||
55 | QStringList m_sensors; | 56 | QVector<QString> m_sensors; | ||
56 | QTimer* m_timer; | 57 | QTimer* m_timer; | ||
57 | int m_waitingFor; | 58 | int m_waitingFor; | ||
58 | }; | 59 | }; | ||
59 | 60 | | |||
60 | #endif | 61 | #endif | ||
61 | 62 | |