14#include <QNetworkProxy>
15#include <QCoreApplication>
26 if (
param.length() > 512)
29 for (
const auto &
c :
param) {
30 if (!
c.isLetterOrNumber() &&
c.toLatin1() !=
'%' &&
c.toLatin1() !=
'-' &&
31 c.toLatin1() !=
'+' &&
c.toLatin1() !=
'_') {
58 qWarning() <<
QStringLiteral(
"Please prefix 'app_id' and 'token' with prefix 'here' (e.g.: 'here.app_id')");
64 template<
class TInstance>
76 return new TInstance(networkManager, parameters,
error, errorString);
80QGeoServiceProviderFactoryNokia::QGeoServiceProviderFactoryNokia()
89 return CreateInstanceOf<QGeoCodingManagerEngineNokia>(parameters,
error, errorString);
97 return CreateInstanceOf<QGeoTiledMappingManagerEngineNokia>(parameters,
error, errorString);
105 return CreateInstanceOf<QGeoRoutingManagerEngineNokia>(parameters,
error, errorString);
113 return CreateInstanceOf<QPlaceManagerEngineNokiaV2>(parameters,
error, errorString);
static QString translate(const char *context, const char *key, const char *disambiguation=nullptr, int n=-1)
\threadsafe
QGeoMappingManagerEngine * createMappingManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const override
Returns a new QGeoMappingManagerEngine instance, initialized with parameters, which implements mappin...
Q_PLUGIN_METADATA(IID "org.qt-project.qt.geoservice.serviceproviderfactory/6.0" FILE "nokia_plugin.json") public QGeoCodingManagerEngine * createGeocodingManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const override
Returns a new QGeoCodingManagerEngine instance, initialized with parameters, which implements the loc...
QPlaceManagerEngine * createPlaceManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const override
Returns a new QPlaceManagerEngine instance, initialized with parameters, which implements the place s...
QGeoRoutingManagerEngine * createRoutingManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const override
Returns a new QGeoRoutingManagerEngine instance, initialized with parameters, which implements routin...
Error
Describes an error related to the loading and setup of a service provider plugin.
@ MissingRequiredParameterError
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
Combined button and popup list for selecting options.
QGeoNetworkAccessManager * tryGetNetworkAccessManager(const QVariantMap ¶meters)
bool isValidParameter(const QString ¶m)
TInstance * CreateInstanceOf(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
void checkUsageTerms(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString)
DBusConnection const char DBusError * error
QT_BEGIN_NAMESPACE const char NOKIA_PLUGIN_CONTEXT_NAME[]
const char MISSED_CREDENTIALS[]
GLenum const GLint * param
#define QStringLiteral(str)