QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsvectortileprovidermetadata.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsvectortileprovidermetadata.h
3  --------------------------------------
4  Date : March 2020
5  Copyright : (C) 2020 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSVECTORTILEPROVIDERMETADATA_H
17 #define QGSVECTORTILEPROVIDERMETADATA_H
18 
19 
20 #include "qgsprovidermetadata.h"
21 
23 #define SIP_NO_FILE
24 
30 class QgsVectorTileProviderMetadata : public QgsProviderMetadata
31 {
32  public:
33  QgsVectorTileProviderMetadata();
34  QIcon icon() const override;
35  QList< QgsDataItemProvider * > dataItemProviders() const override;
36 
37  // handling of stored connections
38 
39  QMap<QString, QgsAbstractProviderConnection *> connections( bool cached ) override;
40  QgsAbstractProviderConnection *createConnection( const QString &name ) override;
41  void deleteConnection( const QString &name ) override;
42  void saveConnection( const QgsAbstractProviderConnection *connection, const QString &name ) override;
43 
44  ProviderCapabilities providerCapabilities() const override;
45 
46  QVariantMap decodeUri( const QString &uri ) const override;
47  QString encodeUri( const QVariantMap &parts ) const override;
48  QList< QgsMapLayerType > supportedLayerTypes() const override;
49 };
50 
52 
53 #endif // QGSVECTORTILEPROVIDERMETADATA_H
QgsProviderMetadata::saveConnection
virtual void saveConnection(const QgsAbstractProviderConnection *connection, const QString &name) SIP_THROW(QgsProviderConnectionException)
Stores the connection in the settings.
Definition: qgsprovidermetadata.cpp:329
QgsProviderMetadata::dataItemProviders
virtual QList< QgsDataItemProvider * > dataItemProviders() const
Returns data item providers.
Definition: qgsprovidermetadata.cpp:225
QgsProviderMetadata::createConnection
virtual QgsAbstractProviderConnection * createConnection(const QString &uri, const QVariantMap &configuration) SIP_THROW(QgsProviderConnectionException)
Creates a new connection from uri and configuration, the newly created connection is not automaticall...
Definition: qgsprovidermetadata.cpp:316
QgsProviderMetadata::icon
virtual QIcon icon() const
Returns an icon representing the provider.
Definition: qgsprovidermetadata.cpp:55
QgsProviderMetadata::supportedLayerTypes
virtual QList< QgsMapLayerType > supportedLayerTypes() const
Returns a list of the map layer types supported by the provider.
Definition: qgsprovidermetadata.cpp:70
QgsProviderMetadata::encodeUri
virtual QString encodeUri(const QVariantMap &parts) const
Reassembles a provider data source URI from its component paths (e.g.
Definition: qgsprovidermetadata.cpp:180
QgsProviderMetadata::deleteConnection
virtual void deleteConnection(const QString &name) SIP_THROW(QgsProviderConnectionException)
Removes the connection with the given name from the settings.
Definition: qgsprovidermetadata.cpp:323
qgsprovidermetadata.h
QgsProviderMetadata
Holds data provider key, description, and associated shared library file or function pointer informat...
Definition: qgsprovidermetadata.h:177
QgsProviderMetadata::providerCapabilities
virtual QgsProviderMetadata::ProviderCapabilities providerCapabilities() const
Returns the provider's capabilities.
Definition: qgsprovidermetadata.cpp:65
QgsProviderMetadata::decodeUri
virtual QVariantMap decodeUri(const QString &uri) const
Breaks a provider data source URI into its component paths (e.g.
Definition: qgsprovidermetadata.cpp:175
QgsAbstractProviderConnection
The QgsAbstractProviderConnection provides an interface for data provider connections.
Definition: qgsabstractproviderconnection.h:44
QgsProviderMetadata::connections
virtual QMap< QString, QgsAbstractProviderConnection * > connections(bool cached=true) SIP_THROW(QgsProviderConnectionException)
Returns a dictionary of stored provider connections, the dictionary key is the connection identifier.
Definition: qgsprovidermetadata.cpp:284