QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
This is the interface for those who want to add custom data items to the browser tree. More...
#include <qgsdataitemprovider.h>
Public Member Functions | |
virtual | ~QgsDataItemProvider () |
virtual int | capabilities ()=0 |
Return combination of flags from QgsDataProvider::DataCapabilities. More... | |
virtual QgsDataItem * | createDataItem (const QString &path, QgsDataItem *parentItem)=0 |
Create a new instance of QgsDataItem (or null) for given path and parent item. More... | |
virtual QString | name ()=0 |
Human-readable name of the provider name. More... | |
This is the interface for those who want to add custom data items to the browser tree.
The method createDataItem() is ever called only if capabilities() return non-zero value. There are two occasions when createDataItem() is called:
Definition at line 35 of file qgsdataitemprovider.h.
|
inlinevirtual |
Definition at line 38 of file qgsdataitemprovider.h.
|
pure virtual |
Return combination of flags from QgsDataProvider::DataCapabilities.
Implemented in QgsDataItemProviderFromPlugin.
|
pure virtual |
Create a new instance of QgsDataItem (or null) for given path and parent item.
Caller takes responsibility of deleting created items.
Implemented in QgsDataItemProviderFromPlugin.
|
pure virtual |
Human-readable name of the provider name.
Implemented in QgsDataItemProviderFromPlugin.