16#ifndef QGSNEWDATABASETABLENAMEWIDGET_H
17#define QGSNEWDATABASETABLENAMEWIDGET_H
20#include "ui_qgsnewdatabasetablenamewidget.h"
65 void setAcceptButtonVisible(
bool visible );
70 QString schema()
const;
81 QString table()
const;
86 QString dataProviderKey()
const;
96 QString validationError()
const;
99 void showEvent( QShowEvent *e )
override;
147 QStringList tableNames();
148 void refreshModel(
const QModelIndex &index );
152 QString mDataProviderKey;
155 QString mConnectionName;
156 bool mIsFilePath =
false;
159 QSet<QString> mShownProviders;
160 bool mIsValid =
false;
161 QString mValidationError;
163 QMap<QString, QStringList> mTableNamesCache;
165 static QStringList FILESYSTEM_BASED_DATAITEM_PROVIDERS;
168 friend class TestQgsNewDatabaseTableNameWidget;
204 QString schema()
const;
215 QString table()
const;
220 QString dataProviderKey()
const;
225 bool isValid()
const;
230 QString validationError()
const;
A model for showing available data sources and other items in a structured tree.
A QSortFilterProxyModel subclass for filtering and sorting browser model items.