17#ifndef QGSDATACOLLECTIONITEM_H
18#define QGSDATACOLLECTIONITEM_H
51 SIP_PYOBJECT __repr__();
53 QString str = QStringLiteral(
"<QgsDataCollectionItem: \"%1\" %2>" ).arg( sipCpp->name(), sipCpp->path() );
54 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
68 static QIcon iconDir(
const QColor &fillColor = QColor(),
const QColor &strokeColor = QColor() );
74 static QIcon iconDataCollection();
88 static QIcon openDirIcon(
const QColor &fillColor = QColor(),
const QColor &strokeColor = QColor() );
98 static QIcon homeDirIcon(
const QColor &fillColor = QColor(),
const QColor &strokeColor = QColor() );
Provides common functionality for database based connections.
QgsDataCollectionItem(QgsDataItem *parent, const QString &name, const QString &path=QString(), const QString &providerKey=QString())
Constructor for QgsDataCollectionItem, with the specified parent item.
void addChild(QgsDataItem *item)
QVector< QgsDataItem * > mChildren
virtual QgsAbstractDatabaseProviderConnection * databaseConnection() const
For data items that represent a DB connection or one of its children, this method returns a connectio...
QgsDataItem(Qgis::BrowserItemType type, QgsDataItem *parent, const QString &name, const QString &path, const QString &providerKey=QString())
Constructor for QgsDataItem, with the specified parent item.
QString name() const
Returns the name of the item (the displayed text for the item).
QgsDataItem * parent() const
Gets item parent.
QString providerKey() const
Returns the provider key that created this item (e.g.