summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/sysinfowatchlet.h
blob: 9ef3d7f4d30de8504ef3a81ae5eb9480dbf2b0bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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();
	void handleDeactivated();
	void updateInformation();

private:
	QSystemDeviceInfo *_devInfo;
	QNetworkConfigurationManager *_netMgr;
};

}

#endif // SOWATCH_TESTDECLARATIVEWATCHLET_H