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 );
58 void selectedConfigIdChanged(
const QString &authcfg );
61 void selectedConfigIdRemoved(
const QString &authcfg );
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;
101 #include "ui_qgsauthconfiguriedit.h" 122 const QString &datauri = QString(),
123 const QString &dataprovider = QString() );
126 void setDataSourceUri(
const QString &datauri );
129 QString dataSourceUri();
132 static bool hasConfigId(
const QString &txt );
139 void authCfgUpdated(
const QString &authcfg );
141 void authCfgRemoved(
const QString &authcfg );
146 QString authCfgFromUri();
148 void selectAuthCfgInUri();
150 void updateUriWithAuthCfg();
152 void removeAuthCfgFromUri();
156 QString mDataUriOrig;
158 bool mDisabled =
false;
159 QVBoxLayout *mAuthNotifyLayout =
nullptr;
160 QLabel *mAuthNotify =
nullptr;
163 #endif // QGSAUTHCONFIGSELECT_H
Dialog wrapper of select widget to edit an authcfg in a data source URI.
QHash< QString, QgsAuthMethodConfig > QgsAuthMethodConfigsMap
Selector widget for authentication configs.
const QString configId() const
Gets the authentication config id for the resource.