Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

locationplugin.h Example File
whereabouts/sampleplugin/locationplugin/locationplugin.h

    /****************************************************************************
    **
    ** This file is part of the Qt Extended Opensource Package.
    **
    ** Copyright (C) 2009 Trolltech ASA.
    **
    ** $QT_EXTENDED_DUAL_LICENSE$
    **
    ****************************************************************************/

    #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 Trolltech Trademarks
Qt Extended 4.4.3