17 #ifndef QGSAUTHGUIUTILS_H
18 #define QGSAUTHGUIUTILS_H
39 static QColor greenColor();
42 static QColor orangeColor();
45 static QColor redColor();
48 static QColor yellowColor();
51 static QString greenTextStyleSheet(
const QString &selector =
"*" );
54 static QString orangeTextStyleSheet(
const QString &selector =
"*" );
57 static QString redTextStyleSheet(
const QString &selector =
"*" );
61 static bool isDisabled(
QgsMessageBar *msgbar,
int timeout = 0 );
64 static void setMasterPassword(
QgsMessageBar *msgbar,
int timeout = 0 );
67 static void clearCachedMasterPassword(
QgsMessageBar *msgbar,
int timeout = 0 );
70 static void resetMasterPassword(
QgsMessageBar *msgbar,
int timeout = 0, QWidget *parent =
nullptr );
73 static void clearCachedAuthenticationConfigs(
QgsMessageBar *msgbar,
int timeout = 0 );
76 static void removeAuthenticationConfigs(
QgsMessageBar *msgbar,
int timeout = 0, QWidget *parent =
nullptr );
79 static void eraseAuthenticationDatabase(
QgsMessageBar *msgbar,
int timeout = 0, QWidget *parent =
nullptr );
82 static void fileFound(
bool found, QWidget *widget );
85 static QString getOpenFileName( QWidget *parent,
const QString &title,
const QString &extfilter );
88 static void passwordHelperDelete(
QgsMessageBar *msgbar,
int timeout = 0, QWidget *parent =
nullptr );
91 static void passwordHelperSync(
QgsMessageBar *msgbar,
int timeout = 0 );
94 static void passwordHelperEnable(
bool enabled,
QgsMessageBar *msgbar,
int timeout = 0 );
97 static void passwordHelperLoggingEnable(
bool enabled,
QgsMessageBar *msgbar,
int timeout = 0 );
103 #endif // QGSAUTHGUIUTILS_H