Marble
6 #ifndef MARBLE_VOICENAVIGATIONMODEL_H
7 #define MARBLE_VOICENAVIGATIONMODEL_H
9 #include "marble_export.h"
18 class VoiceNavigationModelPrivate;
20 class MARBLE_EXPORT VoiceNavigationModel :
public QObject
24 Q_PROPERTY(
QString speaker READ speaker WRITE setSpeaker NOTIFY speakerChanged)
25 Q_PROPERTY(
bool isSpeakerEnabled READ isSpeakerEnabled WRITE setSpeakerEnabled NOTIFY isSpeakerEnabledChanged )
26 Q_PROPERTY(
QString instruction READ instruction NOTIFY instructionChanged)
27 Q_PROPERTY(
QString preview READ preview NOTIFY previewChanged)
31 explicit VoiceNavigationModel(
QObject *parent =
nullptr );
34 ~VoiceNavigationModel()
override;
39 void setSpeaker(
const QString &speaker );
41 bool isSpeakerEnabled()
const;
43 void setSpeakerEnabled(
bool enabled );
48 void update(
const Route &route, qreal distanceManuever, qreal distanceTarget,
bool deviated );
56 void speakerChanged();
58 void isSpeakerEnabledChanged();
60 void instructionChanged();
62 void previewChanged();
65 VoiceNavigationModelPrivate*
const d;
66 friend class VoiceNavigationModelPrivate;
71 #endif // MARBLE_VOICENAVIGATIONMODEL_H
Binds a QML item to a specific geodetic location in screen coordinates.
void update(Part *part, const QByteArray &data, qint64 dataSize)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Oct 2 2023 03:52:10 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.