locationplugin.h Example File
whereabouts/sampleplugin/locationplugin/locationplugin.h
#ifndef LOCATIONPLUGIN_H
#define LOCATIONPLUGIN_H
#include <QWhereaboutsPlugin>
#include <QWhereabouts>
class QTimer;
class LocationProvider : public QWhereabouts
{
Q_OBJECT
public:
LocationProvider(QObject *parent = 0);
void requestUpdate();
void startUpdates();
void stopUpdates();
private:
QTimer *m_timer;
};
class QTOPIA_PLUGIN_EXPORT LocationPlugin : public QWhereaboutsPlugin
{
Q_OBJECT
public:
LocationPlugin(QObject *parent = 0);
QWhereabouts *create(const QString &source);
};
#endif
Copyright © 2009 Nokia |
Trademarks |
Qt Extended 4.4.3 |