QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
qgstiledsceneprovidermetadata.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledsceneprovidermetadata.h
3 --------------------------------------
4 Date : June 2023
5 Copyright : (C) 2023 by Nyall Dawson
6 Email : nyall dot dawson 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 QGSTILEDSCENEPROVIDERMETADATA_H
17#define QGSTILEDSCENEPROVIDERMETADATA_H
18
19
20#include "qgsprovidermetadata.h"
21
23#define SIP_NO_FILE
24
33class QgsTiledSceneProviderMetadata : public QgsProviderMetadata
34{
35 Q_OBJECT
36 public:
37 QgsTiledSceneProviderMetadata();
38 QIcon icon() const override;
39 QList< QgsDataItemProvider * > dataItemProviders() const override;
40
41 // handling of stored connections
42
43 QMap<QString, QgsAbstractProviderConnection *> connections( bool cached ) override;
44 QgsAbstractProviderConnection *createConnection( const QString &name ) override;
45 void deleteConnection( const QString &name ) override;
46 void saveConnection( const QgsAbstractProviderConnection *connection, const QString &name ) override;
47
48 ProviderCapabilities providerCapabilities() const override;
49};
50
52
53#endif // QGSTILEDSCENEPROVIDERMETADATA_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 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< QgsDataItemProvider * > dataItemProviders() const
Returns data item providers.