Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
0e0021b4
Commit
0e0021b4
authored
Oct 17, 2021
by
Volker Krause
Browse files
Restrict journey modes to public transport for monitoring trains
parent
94777674
Changes
1
Show whitespace changes
Inline
Side-by-side
src/app/livedatamanager.cpp
View file @
0e0021b4
...
@@ -188,6 +188,7 @@ void LiveDataManager::checkReservation(const QVariant &res, const QString& resId
...
@@ -188,6 +188,7 @@ void LiveDataManager::checkReservation(const QVariant &res, const QString& resId
req
.
setDateTimeMode
(
JourneyRequest
::
Departure
);
req
.
setDateTimeMode
(
JourneyRequest
::
Departure
);
req
.
setIncludeIntermediateStops
(
true
);
req
.
setIncludeIntermediateStops
(
true
);
req
.
setIncludePaths
(
true
);
req
.
setIncludePaths
(
true
);
req
.
setModes
(
JourneySection
::
PublicTransport
);
PublicTransport
::
selectBackends
(
req
,
m_ptMgr
,
res
);
PublicTransport
::
selectBackends
(
req
,
m_ptMgr
,
res
);
auto
reply
=
m_ptMgr
->
queryJourney
(
req
);
auto
reply
=
m_ptMgr
->
queryJourney
(
req
);
connect
(
reply
,
&
Reply
::
finished
,
this
,
[
this
,
resId
,
reply
]()
{
journeyQueryFinished
(
reply
,
resId
);
});
connect
(
reply
,
&
Reply
::
finished
,
this
,
[
this
,
resId
,
reply
]()
{
journeyQueryFinished
(
reply
,
resId
);
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment