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 importAuthenticationConfigs(
QgsMessageBar *msgbar );
73 static void exportSelectedAuthenticationConfigs( QStringList authenticationConfigIds,
QgsMessageBar *msgbar );
79 static void clearCachedMasterPassword(
QgsMessageBar *msgbar );
82 static void resetMasterPassword(
QgsMessageBar *msgbar, QWidget *parent =
nullptr );
85 static void clearCachedAuthenticationConfigs(
QgsMessageBar *msgbar );
88 static void removeAuthenticationConfigs(
QgsMessageBar *msgbar, QWidget *parent =
nullptr );
91 static void eraseAuthenticationDatabase(
QgsMessageBar *msgbar, QWidget *parent =
nullptr );
94 static void fileFound(
bool found, QWidget *widget );
97 static QString getOpenFileName( QWidget *parent,
const QString &title,
const QString &extfilter );
100 static void passwordHelperDelete(
QgsMessageBar *msgbar, QWidget *parent =
nullptr );
106 static void passwordHelperEnable(
bool enabled,
QgsMessageBar *msgbar );
109 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.