QGIS/python/core/auto_generated/qgsproviderconnectionmodel.sip.in
2020-03-09 21:04:51 +10:00

60 lines
2.2 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsproviderconnectionmodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProviderConnectionModel : QAbstractItemModel
{
%Docstring
A model containing registered connection names for a specific data provider.
.. warning::
The provider must support the connection API methods in its QgsProviderMetadata implementation
in order for the model to work correctly.
.. versionadded:: 3.14
%End
%TypeHeaderCode
#include "qgsproviderconnectionmodel.h"
%End
public:
explicit QgsProviderConnectionModel( const QString &provider, QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsProviderConnectionModel, for the specified ``provider``.
.. warning::
The ``provider`` must support the connection API methods in its QgsProviderMetadata implementation
in order for the model to work correctly.
%End
virtual QModelIndex parent( const QModelIndex &child ) const;
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const;
virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
virtual QModelIndex index( int row, int column, const QModelIndex &parent ) const;
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsproviderconnectionmodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/