summaryrefslogtreecommitdiff
path: root/qmapwatchlet/qmapwatchletplugin.h
blob: 3d10213310189b9a32b726ee27a5a6268a276342 (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, WatchServer *server);

	static QtMobility::QGeoServiceProvider * geoServiceProvider();

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

}

#endif // QMAPWATCHLETPLUGIN_H