17#ifndef QGSAUTHCONFIGSELECT_H
18#define QGSAUTHCONFIGSELECT_H
24#include "ui_qgsauthconfigselect.h"
48 void setConfigId(
const QString &authcfg );
51 const QString
configId()
const {
return mAuthCfg; }
54 void setDataProviderKey(
const QString &key );
65 void showMessage(
const QString &msg );
73 void validateConfig();
74 void populateConfigSelector();
76 void cmbConfigSelect_currentIndexChanged(
int index );
78 void btnConfigAdd_clicked();
80 void btnConfigEdit_clicked();
82 void btnConfigRemove_clicked();
84 void btnConfigMsgClear_clicked();
87 void loadAvailableConfigs();
90 QString mDataProvider;
93 bool mDisabled =
false;
94 QVBoxLayout *mAuthNotifyLayout =
nullptr;
95 QLabel *mAuthNotify =
nullptr;
96 bool mTemporarilyBlockLoad =
false;
102#include "ui_qgsauthconfiguriedit.h"
123 const QString &datauri = QString(),
124 const QString &dataprovider = QString() );
127 void setDataSourceUri(
const QString &datauri );
130 QString dataSourceUri();
133 static bool hasConfigId(
const QString &txt );
140 void authCfgUpdated(
const QString &authcfg );
142 void authCfgRemoved(
const QString &authcfg );
147 QString authCfgFromUri();
149 void selectAuthCfgInUri();
151 void updateUriWithAuthCfg();
153 void removeAuthCfgFromUri();
157 QString mDataUriOrig;
159 bool mDisabled =
false;
160 QVBoxLayout *mAuthNotifyLayout =
nullptr;
161 QLabel *mAuthNotify =
nullptr;
Selector widget for authentication configs.
void selectedConfigIdRemoved(const QString &authcfg)
Emitted when authentication config is removed.
void selectedConfigIdChanged(const QString &authcfg)
Emitted when authentication config is changed or missing.
const QString configId() const
Gets the authentication config id for the resource.
Dialog wrapper of select widget to edit an authcfg in a data source URI.
QHash< QString, QgsAuthMethodConfig > QgsAuthMethodConfigsMap