summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/sysinfowatchlet.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-25 04:53:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-25 04:53:46 +0200
commitcf5d24b94d96b722c6d76c2225293a56a50d3c2b (patch)
treefece0c539fe4c40e1faae109f53c46ddc5b0d222 /sysinfowatchlet/sysinfowatchlet.h
parent2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (diff)
downloadsowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.tar.gz
sowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.zip
watchlets working!
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