Add ClientOptions to be able to pass around client name and version (#365)
* ClientOptions and Qt user agent * Update CHANGELOG.md Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch> Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
This commit is contained in:
@@ -29,12 +29,13 @@ using namespace style;
|
||||
Map::Map(RendererFrontend& frontend,
|
||||
MapObserver& observer,
|
||||
const MapOptions& mapOptions,
|
||||
const ResourceOptions& resourceOptions)
|
||||
const ResourceOptions& resourceOptions,
|
||||
const ClientOptions& clientOptions)
|
||||
: impl(std::make_unique<Impl>(
|
||||
frontend,
|
||||
observer,
|
||||
FileSourceManager::get()
|
||||
? std::shared_ptr<FileSource>(FileSourceManager::get()->getFileSource(ResourceLoader, resourceOptions))
|
||||
? std::shared_ptr<FileSource>(FileSourceManager::get()->getFileSource(ResourceLoader, resourceOptions, clientOptions))
|
||||
: nullptr,
|
||||
mapOptions)) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user