QGIS API Documentation
3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
No Matches
src
core
browser
qgsconnectionsitem.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsconnectionsitem.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 QGSCONNECTIONSITEM_H
18
#define QGSCONNECTIONSITEM_H
19
20
#include "
qgis_sip.h
"
21
#include "qgis_core.h"
22
#include "
qgsdatacollectionitem.h
"
23
29
class
CORE_EXPORT
QgsConnectionsRootItem
:
public
QgsDataCollectionItem
30
{
31
Q_OBJECT
32
public
:
33
45
QgsConnectionsRootItem
(
QgsDataItem
*parent
SIP_TRANSFERTHIS
,
const
QString &name,
const
QString &path = QString(),
const
QString &providerKey = QString() );
46
47
~QgsConnectionsRootItem
()
override
=
default
;
48
49
#ifdef SIP_RUN
50
SIP_PYOBJECT __repr__();
51
% MethodCode
52
QString
str
= QStringLiteral(
"<QgsConnectionsRootItem: \"%1\" %2>"
).arg( sipCpp->name(), sipCpp->path() );
53
sipRes = PyUnicode_FromString(
str
.toUtf8().constData() );
54
% End
55
#endif
56
};
57
58
#endif
// QGSCONNECTIONSITEM_H
59
60
QgsConnectionsRootItem
A Collection that represents a root group of connections from a single data provider.
Definition
qgsconnectionsitem.h:30
QgsConnectionsRootItem::~QgsConnectionsRootItem
~QgsConnectionsRootItem() override=default
QgsDataCollectionItem
A Collection: logical collection of layers or subcollections, e.g.
Definition
qgsdatacollectionitem.h:29
QgsDataItem
Base class for all items in the model.
Definition
qgsdataitem.h:46
str
#define str(x)
Definition
qgis.cpp:38
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
qgsdatacollectionitem.h
Generated on Mon Feb 26 2024 10:02:44 for QGIS API Documentation by
1.9.8