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 Commercial Package.
    **
    ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    **
    ** $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 Nokia Trademarks
Qt Extended 4.4.3