mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-03 19:33:49 +00:00
[traffic][android] Implement Android TraFF source
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -190,6 +190,22 @@ public:
|
||||
*/
|
||||
void SetHttpTraffSource(bool enabled, std::string url);
|
||||
|
||||
/**
|
||||
* @brief Removes all `TraffSource` instances which satisfy a predicate.
|
||||
*
|
||||
* This method iterates over all currently configured `TraffSource` instances and calls the
|
||||
* caller-suppplied predicate function `pred` on each of them. If `pred` returns true, the source
|
||||
* is removed, else it is kept.
|
||||
*
|
||||
* @todo For now, `pred` deliberately takes a non-const argument so we can do cleanup inside
|
||||
* `pred`. If we manage to move any such cleanup into the destructor of the `TraffSource` subclass
|
||||
* and get rid of any `Close()` methods in subclasses (which is preferable for other reasons as
|
||||
* well), the argument can be made const.
|
||||
*
|
||||
* @param pred The predicate function, see description.
|
||||
*/
|
||||
void RemoveTraffSourceIf(const std::function<bool(traffxml::TraffSource*)>& pred);
|
||||
|
||||
/**
|
||||
* @brief Starts the traffic manager.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user