17 #ifndef QGSFIELDSITEM_H
18 #define QGSFIELDSITEM_H
21 #include "qgis_core.h"
51 const QString &connectionUri,
52 const QString &providerKey,
53 const QString &schema,
54 const QString &tableName );
59 SIP_PYOBJECT __repr__();
61 QString
str = QStringLiteral(
"<QgsFieldsItem: %1>" ).arg( sipCpp->path() );
62 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
68 QIcon
icon()
override;
73 QString schema()
const;
78 QString tableName()
const;
83 QString connectionUri()
const;
100 QString mConnectionUri;
101 std::unique_ptr<QgsAbstractDatabaseProviderConnection::TableProperty> mTableProperty;
128 SIP_PYOBJECT __repr__();
130 QString
str = QStringLiteral(
"<QgsFieldItem: %1>" ).arg( sipCpp->name() );
131 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
135 QIcon
icon()
override;
Base class for all items in the model.
virtual QVector< QgsDataItem * > createChildren()
Create children.
A layer field item, information about the connection URI, the schema and the table as well as the lay...
Encapsulate a field in an attribute table or data source.
A collection of field items with some internal logic to retrieve the fields and a the vector layer in...
Represents a vector layer which manages a vector based data sets.
The TableProperty class represents a database table or view.