QGIS API Documentation 3.29.0-Master (694ebda27c)
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
30class QgsVectorTileProviderMetadata : public QgsProviderMetadata
31{
32 Q_OBJECT
33 public:
34 QgsVectorTileProviderMetadata();
35 QIcon icon() const override;
36 QList< QgsDataItemProvider * > dataItemProviders() const override;
37
38 // handling of stored connections
39
40 QMap<QString, QgsAbstractProviderConnection *> connections( bool cached ) override;
41 QgsAbstractProviderConnection *createConnection( const QString &name ) override;
42 void deleteConnection( const QString &name ) override;
43 void saveConnection( const QgsAbstractProviderConnection *connection, const QString &name ) override;
44
45 ProviderCapabilities providerCapabilities() const override;
46
47 QVariantMap decodeUri( const QString &uri ) const override;
48 QString encodeUri( const QVariantMap &parts ) const override;
49 QList< QgsMapLayerType > supportedLayerTypes() const override;
50};
51
53
54#endif // QGSVECTORTILEPROVIDERMETADATA_H
The QgsAbstractProviderConnection provides an interface for data provider connections.
Holds data provider key, description, and associated shared library file or function pointer informat...
virtual QgsProviderMetadata::ProviderCapabilities providerCapabilities() const
Returns the provider's capabilities.
virtual QIcon icon() const
Returns an icon representing the provider.
virtual QString encodeUri(const QVariantMap &parts) const
Reassembles a provider data source URI from its component paths (e.g.
virtual void saveConnection(const QgsAbstractProviderConnection *connection, const QString &name) SIP_THROW(QgsProviderConnectionException)
Stores the connection in the settings.
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...
virtual void deleteConnection(const QString &name) SIP_THROW(QgsProviderConnectionException)
Removes the connection with the given name from the settings.
virtual QList< QgsMapLayerType > supportedLayerTypes() const
Returns a list of the map layer types supported by the provider.
virtual QList< QgsDataItemProvider * > dataItemProviders() const
Returns data item providers.
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.
virtual QVariantMap decodeUri(const QString &uri) const
Breaks a provider data source URI into its component paths (e.g.