2
* Copyright (C) 2009 Petri Damstén <damu@iki.fi>
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of
7
* the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24
#include <QWaitCondition>
26
#include "geolocationprovider.h"
28
class Gpsd : public QThread
32
Gpsd(gps_data_t* gpsdata);
38
void dataReady(const Plasma::DataEngine::Data& data);
44
gps_data_t* m_gpsdata;
46
QWaitCondition m_condition;
50
class Gps : public GeolocationProvider
54
explicit Gps(QObject *parent = 0, const QVariantList &args = QVariantList());
61
#if GPSD_API_MAJOR_VERSION >= 5
62
gps_data_t* m_gpsdata;