QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
vectortile
qgsvectortiledataitems.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvectortiledataitems.h
3
---------------------
4
begin : 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
#ifndef QGSVECTORTILEDATAITEMS_H
16
#define QGSVECTORTILEDATAITEMS_H
17
18
#include "
qgsconnectionsitem.h
"
19
#include "
qgsdataitemprovider.h
"
20
#include "
qgslayeritem.h
"
21
22
#define SIP_NO_FILE
23
25
27
class
CORE_EXPORT QgsVectorTileRootItem :
public
QgsConnectionsRootItem
28
{
29
Q_OBJECT
30
public
:
31
QgsVectorTileRootItem(
QgsDataItem
*parent, QString name, QString path );
32
33
QVector<QgsDataItem *>
createChildren
()
override
;
34
35
QVariant
sortKey
()
const override
{
return
8; }
36
};
37
39
class
CORE_EXPORT QgsVectorTileLayerItem :
public
QgsLayerItem
40
{
41
Q_OBJECT
42
public
:
43
QgsVectorTileLayerItem( QgsDataItem *parent, QString name, QString path,
const
QString &encodedUri );
44
};
45
46
48
class
QgsVectorTileDataItemProvider :
public
QgsDataItemProvider
49
{
50
public
:
51
QString
name
()
override
;
52
QString
dataProviderKey
()
const override
;
53
Qgis::DataItemProviderCapabilities
capabilities
()
const override
;
54
QgsDataItem *
createDataItem
(
const
QString &path, QgsDataItem *parentItem )
override
;
55
};
56
58
59
#endif
// QGSVECTORTILEDATAITEMS_H
Qgis::DataItemProviderCapabilities
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
Definition
qgis.h:1093
QgsConnectionsRootItem
A browser item that represents a root group of connections from a single data provider.
Definition
qgsconnectionsitem.h:34
QgsDataItemProvider
Interface for providers that add custom data items to the browser tree.
Definition
qgsdataitemprovider.h:46
QgsDataItemProvider::dataProviderKey
virtual QString dataProviderKey() const
Returns the data provider key (if the data item provider is associated with a data provider),...
Definition
qgsdataitemprovider.h:59
QgsDataItemProvider::name
virtual QString name()=0
Human-readable name of the provider name.
QgsDataItemProvider::createDataItem
virtual QgsDataItem * createDataItem(const QString &path, QgsDataItem *parentItem)=0
Create a new instance of QgsDataItem (or nullptr) for given path and parent item.
QgsDataItemProvider::capabilities
virtual Qgis::DataItemProviderCapabilities capabilities() const =0
Returns combination of flags from QgsDataProvider::DataCapabilities.
QgsDataItem
Base class for all items in the model.
Definition
qgsdataitem.h:50
QgsDataItem::sortKey
virtual QVariant sortKey() const
Returns the sorting key for the item.
Definition
qgsdataitem.cpp:99
QgsDataItem::createChildren
virtual QVector< QgsDataItem * > createChildren()
Create children.
Definition
qgsdataitem.cpp:187
QgsLayerItem
A browser item that represents a layer that can be opened with one of the providers.
Definition
qgslayeritem.h:35
qgsconnectionsitem.h
qgsdataitemprovider.h
qgslayeritem.h
Generated on
for QGIS API Documentation by
1.17.0