2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Jussi Laitinen - jussi.laitinen@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22 #ifndef GPSPOSITIONPRIVATESTUB_H
23 #define GPSPOSITIONPRIVATESTUB_H
27 #include "gpsposition.h"
34 * @brief GPSPositionPrivate class does nothing.
36 * Class is used when compiling in desktop.
38 class GPSPositionPrivate : public QObject
46 * @param parent QObject
48 GPSPositionPrivate(QObject *parent);
50 /******************************************************************************
51 * MEMBER FUNCTIONS AND SLOTS
52 ******************************************************************************/
55 * @brief Returns is GPS initialized.
58 * @return true if initialized, false otherwise
60 bool isInitialized() const;
63 * @brief Checks if GPS is running.
66 * @return true if GPS running, false otherwise
68 bool isRunning() const;
71 * @brief Return last known position.
73 GeoCoordinate lastPosition() const;
76 * @brief Informs gps to emit last known position.
78 void requestLastPosition();
81 * @brief Requests update from GPS.
83 * Enables GPS if it is disabled
88 * @brief Enables power save mode.
90 * Starts GPS for position update and then stops it.
92 void setPowerSave(bool enabled);
95 * @brief Set GPS update interval.
98 * @return interval interval in milliseconds
100 void setUpdateInterval(int interval);
103 * @brief Set GPS mode.
106 * @param mode GPS mode
107 * @param filePath file path to NMEA file if simulation mode is used
109 void setMode(GPSPosition::Mode mode, const QString &filePath = 0);
114 * Emits GPS initalization error.
125 /*******************************************************************************
127 ******************************************************************************/
129 GPSPosition *m_parent; ///< Parent object
132 #endif // GPSPOSITIONMOCKUP_H