summaryrefslogtreecommitdiff
path: root/qmapwatchlet/qmapwatchletplugin.h
blob: 61553f7aaff18fc65d1e1f0c298e4338920d5797 (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 QMAPWATCHLETPLUGIN_H
#define QMAPWATCHLETPLUGIN_H

#include <QtLocation/QGeoServiceProvider>
#include <sowatch.h>

namespace sowatch
{

class QMapWatchletPlugin : public QObject, public WatchletPluginInterface
{
	Q_OBJECT
	Q_INTERFACES(sowatch::WatchletPluginInterface)

public:
	explicit QMapWatchletPlugin(QObject *parent = 0);
	~QMapWatchletPlugin();

	QStringList watchlets();
	WatchletInfo describeWatchlet(const QString &id, const QString &watchModel);
	Watchlet* getWatchlet(const QString &id, ConfigKey *config, Watch *watch);

	static QtMobility::QGeoServiceProvider * geoServiceProvider();

private:
	static QtMobility::QGeoServiceProvider *_provider;
};

}

#endif // QMAPWATCHLETPLUGIN_H