summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/sysinfowatchlet.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfowatchlet/sysinfowatchlet.h')
-rw-r--r--sysinfowatchlet/sysinfowatchlet.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysinfowatchlet/sysinfowatchlet.h b/sysinfowatchlet/sysinfowatchlet.h
new file mode 100644
index 0000000..25d8f57
--- /dev/null
+++ b/sysinfowatchlet/sysinfowatchlet.h
@@ -0,0 +1,29 @@
+#ifndef SOWATCH_TESTDECLARATIVEWATCHLET_H
+#define SOWATCH_TESTDECLARATIVEWATCHLET_H
+
+#include <QtSystemInfo/QSystemDeviceInfo>
+#include <QtNetwork/QNetworkConfigurationManager>
+#include <sowatch.h>
+
+using QTM_PREPEND_NAMESPACE(QSystemDeviceInfo);
+
+namespace sowatch
+{
+
+class SysInfoWatchlet : public DeclarativeWatchlet
+{
+ Q_OBJECT
+public:
+ explicit SysInfoWatchlet(WatchServer* server);
+
+private slots:
+ void handleActivated();
+
+private:
+ QSystemDeviceInfo *_devInfo;
+ QNetworkConfigurationManager *_netMgr;
+};
+
+}
+
+#endif // SOWATCH_TESTDECLARATIVEWATCHLET_H