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 =
"*" );
67 static void clearCachedMasterPassword(
QgsMessageBar *msgbar );
70 static void resetMasterPassword(
QgsMessageBar *msgbar, QWidget *parent =
nullptr );
73 static void clearCachedAuthenticationConfigs(
QgsMessageBar *msgbar );
76 static void removeAuthenticationConfigs(
QgsMessageBar *msgbar, QWidget *parent =
nullptr );
79 static void eraseAuthenticationDatabase(
QgsMessageBar *msgbar, 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, QWidget *parent =
nullptr );
94 static void passwordHelperEnable(
bool enabled,
QgsMessageBar *msgbar );
97 static void passwordHelperLoggingEnable(
bool enabled,
QgsMessageBar *msgbar,
int timeout = 0 );
Utility functions for use by authentication GUI widgets or standalone apps.
A bar for displaying non-blocking messages to the user.