72 [
this](
const std::string &str) {
onVoiceChanged(QString::fromStdString(str)); }
76 void update(std::list<RouteStep> instructions);
81 const std::optional<osmscout::Bearing> initialBearing,
82 const osmscout::GeoCoord to);
85 const osmscout::GeoCoord coord,
86 const std::optional<osmscout::Bearing> bearing);
91 const osmscout::Distance targetDistance);
108 bool horizontalAccuracyValid,
109 double horizontalAccuracy);
119 SettingsRef settings,
120 DBThreadRef dbThread);
124 const std::map<std::string,DatabaseId> &databaseMapping,
131 void ProcessMessages(
const std::list<osmscout::NavigationMessageRef>& messages);
132 QString sampleFile(osmscout::VoiceInstructionMessage::VoiceSample sample)
const;
136 SettingsRef settings;
138 DBThreadRef dbThread;
140 std::optional<Bearing> lastBearing;
146#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
147 QMediaPlaylist *currentPlaylist{
nullptr};
149 QMediaPlayer *mediaPlayer{
nullptr};
150 std::vector<osmscout::VoiceInstructionMessage::VoiceSample> nextMessage;
154 using DataAgentInst=DataAgent<NavigationModule>;
155 using DataAgentRef=std::shared_ptr<DataAgentInst>;
157 osmscout::NavigationEngine engine{
158 std::make_shared<DataAgent<NavigationModule>>(*this),
159 std::make_shared<PositionAgent>(),
160 std::make_shared<BearingAgent>(),
161 std::make_shared<RouteInstructionAgent<RouteStep, RouteDescriptionBuilder>>(),
162 std::make_shared<VoiceInstructionAgent>(units),
163 std::make_shared<RouteStateAgent>(),
164 std::make_shared<ArrivalEstimateAgent>(),
165 std::make_shared<SpeedAgent>(),
166 std::make_shared<LaneAgent>()