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,
26 #include "gpsposition.h"
27 #include "gpspositionprivatestub.h"
29 const GeoCoordinate COORDINATE(65.0105, 25.5091);
31 GPSPositionPrivate::GPSPositionPrivate(QObject *parent)
35 qDebug() << __PRETTY_FUNCTION__;
37 m_parent = static_cast<GPSPosition*>(parent);
38 m_timer = new QTimer(this);
39 connect(m_timer, SIGNAL(timeout()), this, SLOT(timeout()));
40 m_timer->setInterval(5000);
43 bool GPSPositionPrivate::isInitialized() const
45 qDebug() << __PRETTY_FUNCTION__;
50 bool GPSPositionPrivate::isRunning() const
52 qDebug() << __PRETTY_FUNCTION__;
57 void GPSPositionPrivate::setUpdateInterval(int interval)
59 qDebug() << __PRETTY_FUNCTION__;
62 m_timer->setInterval(interval);
65 void GPSPositionPrivate::setMode(GPSPosition::Mode mode, const QString &filePath)
67 qDebug() << __PRETTY_FUNCTION__;
73 void GPSPositionPrivate::setPowerSave(bool enabled)
75 qDebug() << __PRETTY_FUNCTION__;
83 void GPSPositionPrivate::start()
85 qDebug() << __PRETTY_FUNCTION__;
91 void GPSPositionPrivate::stop()
93 qDebug() << __PRETTY_FUNCTION__;
99 void GPSPositionPrivate::timeout()
101 emit m_parent->position(COORDINATE, 100.0);
104 GeoCoordinate GPSPositionPrivate::lastPosition() const
106 qDebug() << __PRETTY_FUNCTION__;
111 void GPSPositionPrivate::requestLastPosition()
113 qDebug() << __PRETTY_FUNCTION__;
115 emit m_parent->position(COORDINATE, 100.0);
118 void GPSPositionPrivate::requestUpdate()
120 qDebug() << __PRETTY_FUNCTION__;