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,
24 #include "gpsposition.h"
26 #if defined(Q_WS_MAEMO_5) && !defined(Q_WS_SIMULATOR)
27 #include "gpspositionprivateliblocation.h"
28 #elif defined(Q_WS_SIMULATOR)
29 #include "gpspositionprivate.h"
31 #include "gpspositionprivatestub.h"
34 GPSPosition::GPSPosition(QObject *parent)
36 m_gpsPositionPrivate(0)
38 qDebug() << __PRETTY_FUNCTION__;
40 m_gpsPositionPrivate = new GPSPositionPrivate(this);
43 bool GPSPosition::isInitialized()
45 qDebug() << __PRETTY_FUNCTION__;
47 return m_gpsPositionPrivate->isInitialized();
50 bool GPSPosition::isRunning()
52 qDebug() << __PRETTY_FUNCTION__;
54 return m_gpsPositionPrivate->isRunning();
57 QPointF GPSPosition::lastPosition()
59 qDebug() << __PRETTY_FUNCTION__;
61 return m_gpsPositionPrivate->lastPosition();
64 void GPSPosition::requestLastPosition()
66 qDebug() << __PRETTY_FUNCTION__;
68 m_gpsPositionPrivate->requestLastPosition();
71 void GPSPosition::setMode(Mode mode, const QString &filePath)
73 qDebug() << __PRETTY_FUNCTION__;
75 m_gpsPositionPrivate->setMode(mode, filePath);
78 void GPSPosition::setUpdateInterval(int interval)
80 qDebug() << __PRETTY_FUNCTION__;
82 m_gpsPositionPrivate->setUpdateInterval(interval);
85 void GPSPosition::start()
87 qDebug() << __PRETTY_FUNCTION__;
89 m_gpsPositionPrivate->start();
92 void GPSPosition::stop()
94 qDebug() << __PRETTY_FUNCTION__;
96 m_gpsPositionPrivate->stop();