mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
63 lines
2.3 KiB
Plaintext
63 lines
2.3 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/browser/qgsdatabaseschemaitem.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
class QgsDatabaseSchemaItem : QgsDataCollectionItem
|
|
{
|
|
%Docstring(signature="appended")
|
|
A browser item that represents a database schema item.
|
|
|
|
.. versionadded:: 3.16
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsdatabaseschemaitem.h"
|
|
%End
|
|
public:
|
|
|
|
QgsDatabaseSchemaItem( QgsDataItem *parent /TransferThis/, const QString &name, const QString &path = QString(), const QString &providerKey = QString() );
|
|
%Docstring
|
|
Constructor for QgsDatabaseSchemaItem, with the specified ``parent``
|
|
item.
|
|
|
|
The ``name`` argument specifies the text to show in the model for the
|
|
item. A translated string should be used wherever appropriate.
|
|
|
|
The ``path`` argument gives the item path in the browser tree. The
|
|
``path`` string can take any form, but :py:class:`QgsSchemaItem` items
|
|
pointing to different logical locations should always use a different
|
|
item ``path``.
|
|
|
|
The optional ``providerKey`` string can be used to specify the key for
|
|
the :py:class:`QgsDataItemProvider` that created this item.
|
|
%End
|
|
|
|
~QgsDatabaseSchemaItem();
|
|
|
|
SIP_PYOBJECT __repr__();
|
|
%MethodCode
|
|
QString str = QStringLiteral( "<QgsDatabaseSchemaItem: \"%1\" %2>" ).arg( sipCpp->name(), sipCpp->path() );
|
|
sipRes = PyUnicode_FromString( str.toUtf8().constData() );
|
|
%End
|
|
|
|
virtual QgsAbstractDatabaseProviderConnection *databaseConnection() const;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/browser/qgsdatabaseschemaitem.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|