summaryrefslogtreecommitdiff
path: root/qmapwatchlet/qmapwatchletplugin.h
blob: a6f494a05800e0c74f0860ef9e8820fa89ed7878 (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);
	Watchlet* getWatchlet(const QString &id, ConfigKey *config, Watch *watch);

	static QtMobility::QGeoServiceProvider * geoServiceProvider();

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

}

#endif // QMAPWATCHLETPLUGIN_H