QGIS API Documentation  3.14.0-Pi (9f7028fd23)
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  QList< QgsDataItemProvider * > dataItemProviders() const override;
35 
36  // handling of stored connections
37 
38  QMap<QString, QgsAbstractProviderConnection *> connections( bool cached ) override;
39  QgsAbstractProviderConnection *createConnection( const QString &name ) override;
40  void deleteConnection( const QString &name ) override;
41  void saveConnection( const QgsAbstractProviderConnection *connection, const QString &name ) override;
42 
43 };
44 
46 
47 #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:254
QgsProviderMetadata::dataItemProviders
virtual QList< QgsDataItemProvider * > dataItemProviders() const
Returns data item providers.
Definition: qgsprovidermetadata.cpp:161
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:241
QgsProviderMetadata::deleteConnection
virtual void deleteConnection(const QString &name) SIP_THROW(QgsProviderConnectionException)
Removes the connection with the given name from the settings.
Definition: qgsprovidermetadata.cpp:248
qgsprovidermetadata.h
QgsProviderMetadata
Definition: qgsprovidermetadata.h:126
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:209