Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGeoServiceProviderPrivate Class Reference

#include <qgeoserviceprovider_p.h>

+ Collaboration diagram for QGeoServiceProviderPrivate:

Public Member Functions

 QGeoServiceProviderPrivate ()
 
 ~QGeoServiceProviderPrivate ()
 
void loadMeta ()
 
void loadPlugin (const QVariantMap &parameters)
 
void unload ()
 
void filterParameterMap ()
 
template<class Manager , class Engine >
Manager * manager (QGeoServiceProvider::Error *error, QString *errorString)
 
template<class Flags >
Flags features (const char *enumName) const
 

Static Public Member Functions

static QMultiHash< QString, QCborMapplugins (bool reload=false)
 
static void loadPluginMetadata (QMultiHash< QString, QCborMap > &list)
 

Public Attributes

QGeoServiceProviderFactoryfactory = nullptr
 
QCborMap metaData
 
QVariantMap parameterMap
 
QVariantMap cleanedParameterMap
 
bool experimental = false
 
std::unique_ptr< QGeoCodingManagergeocodingManager
 
std::unique_ptr< QGeoRoutingManagerroutingManager
 
std::unique_ptr< QGeoMappingManagermappingManager
 
std::unique_ptr< QPlaceManagerplaceManager
 
QQmlEngineqmlEngine = nullptr
 
QGeoServiceProvider::Error geocodeError = QGeoServiceProvider::NoError
 
QGeoServiceProvider::Error routingError = QGeoServiceProvider::NoError
 
QGeoServiceProvider::Error mappingError = QGeoServiceProvider::NoError
 
QGeoServiceProvider::Error placeError = QGeoServiceProvider::NoError
 
QGeoServiceProvider::Error navigationError = QGeoServiceProvider::NoError
 
QString geocodeErrorString
 
QString routingErrorString
 
QString mappingErrorString
 
QString placeErrorString
 
QString navigationErrorString
 
QGeoServiceProvider::Error error = QGeoServiceProvider::NoError
 
QString errorString
 
QString providerName
 
QLocale locale
 
bool localeSet = false
 

Detailed Description

Definition at line 34 of file qgeoserviceprovider_p.h.

Constructor & Destructor Documentation

◆ QGeoServiceProviderPrivate()

QGeoServiceProviderPrivate::QGeoServiceProviderPrivate ( )

Definition at line 690 of file qgeoserviceprovider.cpp.

References QCborMap::insert(), metaData, and QStringLiteral.

+ Here is the call graph for this function:

◆ ~QGeoServiceProviderPrivate()

QGeoServiceProviderPrivate::~QGeoServiceProviderPrivate ( )

Definition at line 695 of file qgeoserviceprovider.cpp.

Member Function Documentation

◆ features()

template<class Flags >
Flags QGeoServiceProviderPrivate::features ( const char * enumName) const

Definition at line 229 of file qgeoserviceprovider.cpp.

References QCborMap::contains(), features(), metaData, mo, QStringLiteral, ret, QCborValue::toArray(), and QCborMap::value().

Referenced by features(), QGeoServiceProvider::geocodingFeatures(), QGeoServiceProvider::mappingFeatures(), QGeoServiceProvider::navigationFeatures(), QGeoServiceProvider::placesFeatures(), and QGeoServiceProvider::routingFeatures().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ filterParameterMap()

void QGeoServiceProviderPrivate::filterParameterMap ( )

Definition at line 714 of file qgeoserviceprovider.cpp.

References QMap< Key, T >::begin(), cleanedParameterMap, QMap< Key, T >::end(), QMap< Key, T >::erase(), i, it, parameterMap, plugins(), and providerName.

Referenced by manager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadMeta()

void QGeoServiceProviderPrivate::loadMeta ( )

Definition at line 734 of file qgeoserviceprovider.cpp.

References QString::arg(), QCborMap::contains(), error, errorString, experimental, factory, i, QCborMap::insert(), metaData, QGeoServiceProvider::NoError, QGeoServiceProvider::NotSupportedError, plugins(), providerName, QStringLiteral, toBool(), toDouble(), and QCborMap::value().

Referenced by QGeoServiceProvider::QGeoServiceProvider(), QGeoServiceProvider::setAllowExperimental(), and QGeoServiceProvider::setParameters().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadPlugin()

void QGeoServiceProviderPrivate::loadPlugin ( const QVariantMap & parameters)

Definition at line 770 of file qgeoserviceprovider.cpp.

References error, errorString, factory, QGeoServiceProvider::LoaderError, metaData, QGeoServiceProvider::NoError, QGeoServiceProvider::NotSupportedError, Q_UNUSED, qmlEngine, QStringLiteral, QGeoServiceProviderFactory::setQmlEngine(), toDouble(), and QCborMap::value().

Referenced by manager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadPluginMetadata()

void QGeoServiceProviderPrivate::loadPluginMetadata ( QMultiHash< QString, QCborMap > & list)
static

Definition at line 811 of file qgeoserviceprovider.cpp.

References i, QList< T >::insert(), list, QFactoryLoader::metaData(), MetaData, QStringLiteral, and toString().

Referenced by plugins().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ manager()

template<class Manager , class Engine >
Manager * QGeoServiceProviderPrivate::manager ( QGeoServiceProvider::Error * error,
QString * errorString )

Definition at line 322 of file qgeoserviceprovider.cpp.

References QLatin1StringView::arg(), className, QString::clear(), engine, error, errorString, factory, filterParameterMap(), loadPlugin(), locale, localeSet, manager, metaData, QGeoServiceProvider::NoError, QGeoServiceProvider::NotSupportedError, parameterMap, QStringLiteral, toDouble(), toString(), and QCborMap::value().

Referenced by QGeoServiceProvider::geocodingManager(), QGeoServiceProvider::mappingManager(), QGeoServiceProvider::placeManager(), and QGeoServiceProvider::routingManager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ plugins()

QMultiHash< QString, QCborMap > QGeoServiceProviderPrivate::plugins ( bool reload = false)
static

Definition at line 796 of file qgeoserviceprovider.cpp.

References loadPluginMetadata(), and plugins().

Referenced by filterParameterMap(), loadMeta(), and plugins().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unload()

void QGeoServiceProviderPrivate::unload ( )

Definition at line 699 of file qgeoserviceprovider.cpp.

References error, errorString, factory, geocodingManager, QCborMap::insert(), mappingManager, metaData, QGeoServiceProvider::NoError, placeManager, QStringLiteral, and routingManager.

Referenced by QGeoServiceProvider::setAllowExperimental(), and QGeoServiceProvider::setParameters().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ cleanedParameterMap

◆ error

◆ errorString

◆ experimental

bool QGeoServiceProviderPrivate::experimental = false

◆ factory

◆ geocodeError

◆ geocodeErrorString

◆ geocodingManager

std::unique_ptr<QGeoCodingManager> QGeoServiceProviderPrivate::geocodingManager

◆ locale

QLocale QGeoServiceProviderPrivate::locale

Definition at line 83 of file qgeoserviceprovider_p.h.

Referenced by manager(), and QGeoServiceProvider::setLocale().

◆ localeSet

bool QGeoServiceProviderPrivate::localeSet = false

Definition at line 84 of file qgeoserviceprovider_p.h.

Referenced by manager(), and QGeoServiceProvider::setLocale().

◆ mappingError

◆ mappingErrorString

QString QGeoServiceProviderPrivate::mappingErrorString

◆ mappingManager

std::unique_ptr<QGeoMappingManager> QGeoServiceProviderPrivate::mappingManager

◆ metaData

QCborMap QGeoServiceProviderPrivate::metaData

◆ navigationError

QGeoServiceProvider::Error QGeoServiceProviderPrivate::navigationError = QGeoServiceProvider::NoError

Definition at line 70 of file qgeoserviceprovider_p.h.

Referenced by QGeoServiceProvider::navigationError().

◆ navigationErrorString

QString QGeoServiceProviderPrivate::navigationErrorString

Definition at line 76 of file qgeoserviceprovider_p.h.

Referenced by QGeoServiceProvider::navigationErrorString().

◆ parameterMap

QVariantMap QGeoServiceProviderPrivate::parameterMap

◆ placeError

◆ placeErrorString

QString QGeoServiceProviderPrivate::placeErrorString

◆ placeManager

std::unique_ptr<QPlaceManager> QGeoServiceProviderPrivate::placeManager

◆ providerName

QString QGeoServiceProviderPrivate::providerName

◆ qmlEngine

QQmlEngine* QGeoServiceProviderPrivate::qmlEngine = nullptr

Definition at line 64 of file qgeoserviceprovider_p.h.

Referenced by loadPlugin(), and QGeoServiceProvider::setQmlEngine().

◆ routingError

◆ routingErrorString

QString QGeoServiceProviderPrivate::routingErrorString

◆ routingManager

std::unique_ptr<QGeoRoutingManager> QGeoServiceProviderPrivate::routingManager

The documentation for this class was generated from the following files: