2015-09-21 06:17:48 -06:00
|
|
|
class QgsAuthConfigSelect : QWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsauthconfigselect.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit QgsAuthConfigSelect( QWidget *parent /TransferThis/ = 0, const QString &dataprovider = QString() );
|
|
|
|
~QgsAuthConfigSelect();
|
|
|
|
|
|
|
|
void setConfigId( const QString& authcfg );
|
2015-09-26 01:34:43 -06:00
|
|
|
|
2015-09-21 06:17:48 -06:00
|
|
|
const QString configId() const;
|
2015-09-26 01:34:43 -06:00
|
|
|
|
|
|
|
void setDataProviderKey( const QString &key );
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void selectedConfigIdChanged( const QString& authcfg );
|
|
|
|
|
|
|
|
void selectedConfigIdRemoved( const QString& authcfg );
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void showMessage( const QString &msg );
|
|
|
|
|
|
|
|
void clearMessage();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsAuthConfigUriEdit : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsauthconfigselect.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit QgsAuthConfigUriEdit( QWidget *parent /TransferThis/ = 0,
|
|
|
|
const QString &datauri = QString(),
|
|
|
|
const QString &dataprovider = QString() );
|
|
|
|
~QgsAuthConfigUriEdit();
|
|
|
|
|
|
|
|
void setDataSourceUri( const QString &datauri );
|
|
|
|
|
|
|
|
QString dataSourceUri();
|
|
|
|
|
|
|
|
static bool hasConfigID( const QString &txt );
|
2015-09-21 06:17:48 -06:00
|
|
|
};
|