QGIS API Documentation 3.99.0-Master (d270888f95f)
Loading...
Searching...
No Matches
qgsdatabaseschemaitem.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsdatabaseschemaitem.h
3 -------------------
4 begin : 2011-04-01
5 copyright : (C) 2011 Radim Blazek
6 email : radim dot blazek at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17#ifndef QGSDATABASESCHEMAITEM_H
18#define QGSDATABASESCHEMAITEM_H
19
20#include "qgis_core.h"
21#include "qgis_sip.h"
23
24#include <QString>
25
26using namespace Qt::StringLiterals;
27
34{
35 Q_OBJECT
36 public:
37
49 QgsDatabaseSchemaItem( QgsDataItem *parent SIP_TRANSFERTHIS, const QString &name, const QString &path = QString(), const QString &providerKey = QString() );
50
51 ~QgsDatabaseSchemaItem() override;
52
53#ifdef SIP_RUN
54 SIP_PYOBJECT __repr__();
55 % MethodCode
56 QString str = u"<QgsDatabaseSchemaItem: \"%1\" %2>"_s.arg( sipCpp->name(), sipCpp->path() );
57 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
58 % End
59#endif
60
62
63};
64
65#endif // QGSDATABASESCHEMAITEM_H
66
67
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.
QgsAbstractDatabaseProviderConnection * databaseConnection() const override
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).
QString path() const
QgsDataItem * parent() const
Gets item parent.
QString providerKey() const
Returns the provider key that created this item (e.g.
QgsDatabaseSchemaItem(QgsDataItem *parent, const QString &name, const QString &path=QString(), const QString &providerKey=QString())
Constructor for QgsDatabaseSchemaItem, with the specified parent item.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53