QGeoServiceProviderFactory Class
QGeoServiceProviderFactory クラスは、地理情報に関連するサービスのプラグイン・インターフェイスとして使用されるファクトリ・クラスです。詳細...
Header: | #include <QGeoServiceProviderFactory> |
qmake: | QT += location |
Status: | Deprecated |
このクラスは非推奨です。新しいコードで使用しないことを強くお勧めします。
パブリック関数
virtual | ~QGeoServiceProviderFactory() |
virtual QGeoCodingManagerEngine * | createGeocodingManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const |
virtual QPlaceManagerEngine * | createPlaceManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const |
virtual QGeoRoutingManagerEngine * | createRoutingManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const |
virtual void | setQmlEngine(QQmlEngine *engine) |
詳細説明
注意: バックエンドのクラスについては、ソースやバイナリの互換性は保証されていません。APIは開発されたQtのバージョンでのみ動作が保証されています。API の変更はマイナーリリースでのみ行われます。(6.6や6.7など)。
実装者は、プラグインごとに providerName() と providerVersion() のユニークな組み合わせを提供しなければなりません。
その他の関数は、プラグインが関連する一連の機能をサポートしている場合にオーバーライドする必要があります。
メンバ関数のドキュメント
[virtual noexcept]
QGeoServiceProviderFactory::~QGeoServiceProviderFactory()
このQGeoServiceProviderFactory インスタンスを破棄する。
[virtual]
QGeoCodingManagerEngine *QGeoServiceProviderFactory::createGeocodingManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const
parameters で初期化された、位置情報ジオコーディング機能を実装した新しいQGeoCodingManagerEngine インスタンスを返す。
error がnullptr
でない場合、成功時にはQGeoServiceProvider::NoError に、失敗時には適切なQGeoServiceProvider::Error に設定されるべきである。
errorString がnullptr
でない場合、発生したエラーを記述する文字列が設定されるべきである。
デフォルトの実装はnullptr
を返すが、これはQGeoServiceProvider にQGeoServiceProvider::NotSupportedError を引き起こす。
[virtual]
QPlaceManagerEngine *QGeoServiceProviderFactory::createPlaceManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const
parameters で初期化された、場所検索機能を実装した新しいQPlaceManagerEngine インスタンスを返す。
error がnullptr
でない場合、成功時にはQGeoServiceProvider::NoError に、失敗時には適切なQGeoServiceProvider::Error に設定されるべきである。
errorString がnullptr
でない場合、発生したエラーを記述する文字列がセットされるべきである。
デフォルトの実装はnullptr
を返し、これはQGeoServiceProvider にQGeoServiceProvider::NotSupportedError を引き起こす。
[virtual]
QGeoRoutingManagerEngine *QGeoServiceProviderFactory::createRoutingManagerEngine(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) const
parameters で初期化された、ルーティング機能を実装した新しいQGeoRoutingManagerEngine インスタンスを返す。
error がnullptr
でない場合、成功時にはQGeoServiceProvider::NoError に、失敗時には適切なQGeoServiceProvider::Error に設定されなければならない。
errorString がnullptr
でない場合、発生したエラーを記述する文字列が設定されるべきである。
デフォルトの実装はnullptr
を返すが、これはQGeoServiceProvider にQGeoServiceProvider::NotSupportedError を引き起こす。
[virtual]
void QGeoServiceProviderFactory::setQmlEngine(QQmlEngine *engine)
qmlengine の準備ができたらプラグインに通知します。この時、プラグインはイメージプロバイダを登録するためにこれを使うことができます。
デフォルトの実装は何もしません。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.