summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/sysinfowatchlet.h
blob: fe4f96ff6899e634c087453bb5e4120d25a70251 (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(Watch* watch);

private slots:
	void handleActivated();
	void handleDeactivated();
	void updateInformation();

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

}

#endif // SOWATCH_TESTDECLARATIVEWATCHLET_H