• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • positionprovider
  • gpsd
GpsdConnection.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2009 Eckhart Wörner <ewoerner@kde.org>
9 //
10 
11 #ifndef GPSDCONNECTION_H
12 #define GPSDCONNECTION_H
13 
14 #include "PositionProviderPlugin.h"
15 
16 #include <QObject>
17 #include <QTimer>
18 
19 #include <libgpsmm.h>
20 
21 namespace Marble
22 {
23 
24 class GpsdConnection : public QObject
25 {
26  Q_OBJECT
27 
28  public:
29  explicit GpsdConnection( QObject* parent = 0 );
30 
31  ~GpsdConnection();
32 
33  void initialize();
34 
35  QString error() const;
36 
37  signals:
38  void gpsdInfo( gps_data_t data );
39 
40  void statusChanged( PositionProviderStatus status ) const;
41 
42 private:
43  void open();
44 
45  gpsmm m_gpsd;
46  QTimer m_timer;
47  PositionProviderStatus m_status;
48  QString m_error;
49  const char* m_oldLocale;
50 
51  private slots:
52  void update();
53 };
54 
55 }
56 
57 #endif
Marble::GpsdConnection::gpsdInfo
void gpsdInfo(gps_data_t data)
PositionProviderPlugin.h
Marble::GpsdConnection::initialize
void initialize()
Definition: GpsdConnection.cpp:44
QObject
Marble::GpsdConnection
Definition: GpsdConnection.h:24
Marble::GpsdConnection::statusChanged
void statusChanged(PositionProviderStatus status) const
Marble::PositionProviderStatus
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
Marble::GpsdConnection::error
QString error() const
Definition: GpsdConnection.cpp:139
Marble::GpsdConnection::GpsdConnection
GpsdConnection(QObject *parent=0)
Definition: GpsdConnection.cpp:27
Marble::GpsdConnection::~GpsdConnection
~GpsdConnection()
Definition: GpsdConnection.cpp:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal