From cf5d24b94d96b722c6d76c2225293a56a50d3c2b Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 25 Sep 2011 04:53:46 +0200 Subject: watchlets working! --- sysinfowatchlet/sysinfowatchlet.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sysinfowatchlet/sysinfowatchlet.h (limited to 'sysinfowatchlet/sysinfowatchlet.h') 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 +#include +#include + +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 -- cgit v1.2.3