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;
164 #endif // QGSAUTHCONFIGSELECT_H