QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
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 QString absoluteToRelativeUri( const QString &uri, const QgsReadWriteContext &context ) const override;
50 QString relativeToAbsoluteUri( const QString &uri, const QgsReadWriteContext &context ) const override;
51 QList< Qgis::LayerType > supportedLayerTypes() const override;
52};
53
55
56#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 void deleteConnection(const QString &name)
Removes the connection with the given name from the settings.
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 QString absoluteToRelativeUri(const QString &uri, const QgsReadWriteContext &context) const
Converts absolute path(s) to relative path(s) in the given provider-specific URI.
virtual QgsAbstractProviderConnection * createConnection(const QString &uri, const QVariantMap &configuration)
Creates a new connection from uri and configuration, the newly created connection is not automaticall...
virtual void saveConnection(const QgsAbstractProviderConnection *connection, const QString &name)
Stores the connection in the settings.
virtual QMap< QString, QgsAbstractProviderConnection * > connections(bool cached=true)
Returns a dictionary of stored provider connections, the dictionary key is the connection identifier.
virtual QList< Qgis::LayerType > supportedLayerTypes() const
Returns a list of the map layer types supported by the provider.
virtual QString relativeToAbsoluteUri(const QString &uri, const QgsReadWriteContext &context) const
Converts relative path(s) to absolute path(s) in the given provider-specific URI.
virtual QList< QgsDataItemProvider * > dataItemProviders() const
Returns data item providers.
virtual QVariantMap decodeUri(const QString &uri) const
Breaks a provider data source URI into its component paths (e.g.
The class is used as a container of context for various read/write operations on other objects.