QGIS API Documentation 3.43.0-Master (9e873c7bc91)
|
A generic dialog for customising vector layer import options for database connections. More...
#include <qgsdbimportvectorlayerdialog.h>
Public Member Functions | |
QgsDbImportVectorLayerDialog (QgsAbstractDatabaseProviderConnection *connection, QWidget *parent=nullptr) | |
Constructor for QgsDbImportVectorLayerDialog. | |
~QgsDbImportVectorLayerDialog () override | |
std::unique_ptr< QgsVectorLayerExporterTask > | createExporterTask (const QVariantMap &extraProviderOptions=QVariantMap()) |
Creates a new exporter task to match the settings defined in the dialog. | |
QgsExpressionContext | createExpressionContext () const override |
This method needs to be reimplemented in all classes which implement this interface and return an expression context. | |
QString | schema () const |
Returns the destination schema. | |
void | setDestinationSchema (const QString &schema) |
Sets the destination schema for the new table. | |
void | setMapCanvas (QgsMapCanvas *canvas) |
Sets a map canvas to associate with the dialog. | |
void | setSourceUri (const QgsMimeDataUtils::Uri &uri) |
Sets the source table uri. | |
QString | tableComment () const |
Returns the optional comment to use for the new table. | |
QString | tableName () const |
Returns the destination table name. | |
![]() | |
virtual | ~QgsExpressionContextGenerator ()=default |
A generic dialog for customising vector layer import options for database connections.
Definition at line 40 of file qgsdbimportvectorlayerdialog.h.
QgsDbImportVectorLayerDialog::QgsDbImportVectorLayerDialog | ( | QgsAbstractDatabaseProviderConnection * | connection, |
QWidget * | parent = nullptr |
||
) |
Constructor for QgsDbImportVectorLayerDialog.
Ownership of connection is transferred to the dialog.
Definition at line 27 of file qgsdbimportvectorlayerdialog.cpp.
|
overridedefault |
std::unique_ptr< QgsVectorLayerExporterTask > QgsDbImportVectorLayerDialog::createExporterTask | ( | const QVariantMap & | extraProviderOptions = QVariantMap() | ) |
Creates a new exporter task to match the settings defined in the dialog.
Definition at line 272 of file qgsdbimportvectorlayerdialog.cpp.
|
overridevirtual |
This method needs to be reimplemented in all classes which implement this interface and return an expression context.
Implements QgsExpressionContextGenerator.
Definition at line 341 of file qgsdbimportvectorlayerdialog.cpp.
QString QgsDbImportVectorLayerDialog::schema | ( | ) | const |
Returns the destination schema.
Definition at line 241 of file qgsdbimportvectorlayerdialog.cpp.
void QgsDbImportVectorLayerDialog::setDestinationSchema | ( | const QString & | schema | ) |
Sets the destination schema for the new table.
Definition at line 108 of file qgsdbimportvectorlayerdialog.cpp.
void QgsDbImportVectorLayerDialog::setMapCanvas | ( | QgsMapCanvas * | canvas | ) |
Sets a map canvas to associate with the dialog.
Definition at line 256 of file qgsdbimportvectorlayerdialog.cpp.
void QgsDbImportVectorLayerDialog::setSourceUri | ( | const QgsMimeDataUtils::Uri & | uri | ) |
Sets the source table uri.
Definition at line 114 of file qgsdbimportvectorlayerdialog.cpp.
QString QgsDbImportVectorLayerDialog::tableComment | ( | ) | const |
Returns the optional comment to use for the new table.
Definition at line 251 of file qgsdbimportvectorlayerdialog.cpp.
QString QgsDbImportVectorLayerDialog::tableName | ( | ) | const |
Returns the destination table name.
Definition at line 246 of file qgsdbimportvectorlayerdialog.cpp.