QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Utility functions for use by authentication GUI widgets or standalone apps. More...
#include <qgsauthguiutils.h>
Static Public Member Functions | |
static void | clearCachedAuthenticationConfigs (QgsMessageBar *msgbar) |
Clear all cached authentication configs for session. | |
static void | clearCachedMasterPassword (QgsMessageBar *msgbar) |
Clear the currently cached master password (not its hash in database) | |
static void | eraseAuthenticationDatabase (QgsMessageBar *msgbar, QWidget *parent=nullptr) |
Completely clear out the authentication database (configs and master password) | |
static void | exportSelectedAuthenticationConfigs (QStringList authenticationConfigIds, QgsMessageBar *msgbar) |
Exports selected authentication configurations to a XML file. | |
static void | fileFound (bool found, QWidget *widget) |
Color a widget via a stylesheet if a file path is found or not. | |
static QString | getOpenFileName (QWidget *parent, const QString &title, const QString &extfilter) |
Open file dialog for auth associated widgets. | |
static QColor | greenColor () |
Green color representing valid, trusted, etc. certificate. | |
static QString | greenTextStyleSheet (const QString &selector="*") |
Green text stylesheet representing valid, trusted, etc. certificate. | |
static void | importAuthenticationConfigs (QgsMessageBar *msgbar) |
Import authentication configurations from a XML file. | |
static bool | isDisabled (QgsMessageBar *msgbar) |
Verify the authentication system is active, else notify user. | |
static QColor | orangeColor () |
Orange color representing loaded component, but not stored in database. | |
static QString | orangeTextStyleSheet (const QString &selector="*") |
Orange text stylesheet representing loaded component, but not stored in database. | |
static void | passwordHelperDelete (QgsMessageBar *msgbar, QWidget *parent=nullptr) |
Remove master password from wallet. | |
static void | passwordHelperEnable (bool enabled, QgsMessageBar *msgbar) |
Sets password helper enabled (enable/disable) | |
static void | passwordHelperLoggingEnable (bool enabled, QgsMessageBar *msgbar, int timeout=0) |
Sets password helper logging enabled (enable/disable) | |
static void | passwordHelperSync (QgsMessageBar *msgbar) |
Store master password into the wallet. | |
static QColor | redColor () |
Red color representing invalid, untrusted, etc. certificate. | |
static QString | redTextStyleSheet (const QString &selector="*") |
Red text stylesheet representing invalid, untrusted, etc. certificate. | |
static void | removeAuthenticationConfigs (QgsMessageBar *msgbar, QWidget *parent=nullptr) |
Remove all authentication configs. | |
static void | resetMasterPassword (QgsMessageBar *msgbar, QWidget *parent=nullptr) |
Reset the cached master password, updating its hash in authentication database and resetting all existing configs to use it. | |
static void | setMasterPassword (QgsMessageBar *msgbar) |
Sets the cached master password (and verifies it if its hash is in authentication database) | |
static QColor | yellowColor () |
Yellow color representing caution regarding action. | |
Utility functions for use by authentication GUI widgets or standalone apps.
Definition at line 34 of file qgsauthguiutils.h.
|
static |
Clear all cached authentication configs for session.
Definition at line 241 of file qgsauthguiutils.cpp.
|
static |
Clear the currently cached master password (not its hash in database)
Definition at line 173 of file qgsauthguiutils.cpp.
|
static |
Completely clear out the authentication database (configs and master password)
Definition at line 280 of file qgsauthguiutils.cpp.
|
static |
Exports selected authentication configurations to a XML file.
Definition at line 80 of file qgsauthguiutils.cpp.
|
static |
Color a widget via a stylesheet if a file path is found or not.
Definition at line 323 of file qgsauthguiutils.cpp.
|
static |
Open file dialog for auth associated widgets.
Definition at line 337 of file qgsauthguiutils.cpp.
|
static |
Green color representing valid, trusted, etc. certificate.
Definition at line 32 of file qgsauthguiutils.cpp.
|
static |
Green text stylesheet representing valid, trusted, etc. certificate.
Definition at line 52 of file qgsauthguiutils.cpp.
|
static |
Import authentication configurations from a XML file.
Definition at line 111 of file qgsauthguiutils.cpp.
|
static |
Verify the authentication system is active, else notify user.
Definition at line 67 of file qgsauthguiutils.cpp.
|
static |
Orange color representing loaded component, but not stored in database.
Definition at line 37 of file qgsauthguiutils.cpp.
|
static |
Orange text stylesheet representing loaded component, but not stored in database.
Definition at line 57 of file qgsauthguiutils.cpp.
|
static |
Remove master password from wallet.
Definition at line 349 of file qgsauthguiutils.cpp.
|
static |
Sets password helper enabled (enable/disable)
Definition at line 404 of file qgsauthguiutils.cpp.
|
static |
Sets password helper logging enabled (enable/disable)
Definition at line 415 of file qgsauthguiutils.cpp.
|
static |
Store master password into the wallet.
Definition at line 378 of file qgsauthguiutils.cpp.
|
static |
Red color representing invalid, untrusted, etc. certificate.
Definition at line 42 of file qgsauthguiutils.cpp.
|
static |
Red text stylesheet representing invalid, untrusted, etc. certificate.
Definition at line 62 of file qgsauthguiutils.cpp.
|
static |
Remove all authentication configs.
Definition at line 252 of file qgsauthguiutils.cpp.
|
static |
Reset the cached master password, updating its hash in authentication database and resetting all existing configs to use it.
Definition at line 196 of file qgsauthguiutils.cpp.
|
static |
Sets the cached master password (and verifies it if its hash is in authentication database)
Definition at line 157 of file qgsauthguiutils.cpp.
|
static |
Yellow color representing caution regarding action.
Definition at line 47 of file qgsauthguiutils.cpp.