• 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
  • lib
  • marble
  • routing
VoiceNavigationModel.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 2012 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_VOICENAVIGATIONMODEL_H
12 #define MARBLE_VOICENAVIGATIONMODEL_H
13 
14 #include "marble_export.h"
15 #include "Route.h"
16 #include "Maneuver.h"
17 #include "PositionTracking.h"
18 
19 #include <QAbstractListModel>
20 #include <QFileInfo>
21 
22 namespace Marble
23 {
24 
25 class VoiceNavigationModelPrivate;
26 
27 class MARBLE_EXPORT VoiceNavigationModel : public QObject
28 {
29  Q_OBJECT
30 
31  Q_PROPERTY(QString speaker READ speaker WRITE setSpeaker NOTIFY speakerChanged)
32  Q_PROPERTY(bool isSpeakerEnabled READ isSpeakerEnabled WRITE setSpeakerEnabled NOTIFY isSpeakerEnabledChanged )
33  Q_PROPERTY(QString instruction READ instruction NOTIFY instructionChanged)
34  Q_PROPERTY(QString preview READ preview NOTIFY previewChanged)
35 
36 public:
38  explicit VoiceNavigationModel( QObject *parent = 0 );
39 
41  ~VoiceNavigationModel();
42 
43 // Initialization
44  QString speaker() const;
45 
46  void setSpeaker( const QString &speaker );
47 
48  bool isSpeakerEnabled() const;
49 
50  void setSpeakerEnabled( bool enabled );
51 
52  void reset();
53 
54 public Q_SLOTS:
55 // Continuous updates
56  void handleTrackingStatusChange( PositionProviderStatus status );
57 
58  void update( const Route &route, qreal distanceManuever, qreal distanceTarget, bool deviated );
59 
60 // Turn instructions
61  QString preview() const;
62 
63  QString instruction() const;
64 
65 Q_SIGNALS:
66  void speakerChanged();
67 
68  void isSpeakerEnabledChanged();
69 
70  void instructionChanged();
71 
72  void previewChanged();
73 
74 private:
75  VoiceNavigationModelPrivate* const d;
76  friend class VoiceNavigationModelPrivate;
77 };
78 
79 }
80 
81 #endif // MARBLE_VOICENAVIGATIONMODEL_H
QObject
Marble::VoiceNavigationModel
Definition: VoiceNavigationModel.h:27
Route.h
Maneuver.h
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::PositionProviderStatus
PositionProviderStatus
Definition: PositionProviderPluginInterface.h:25
marble_export.h
Marble::Route
Definition: Route.h:20
PositionTracking.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 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