QgsAuthGuiUtils class
Utility functions for use by authentication GUI widgets or standalone apps.
Contents
- Reference
Public static functions
- static void clearCachedAuthenticationConfigs(QgsMessageBar* msgbar, int timeout = 0)
- Clear all cached authentication configs for session.
- static void clearCachedMasterPassword(QgsMessageBar* msgbar, int timeout = 0)
- Clear the currently cached master password (not its hash in database)
- static void eraseAuthenticationDatabase(QgsMessageBar* msgbar, int timeout = 0, QWidget* parent = nullptr)
- Completely clear out the authentication database (configs and master password)
- static void fileFound(bool found, QWidget* widget)
- Color a widget via a stylesheet if a file path is found or not.
- static auto getOpenFileName(QWidget* parent, const QString& title, const QString& extfilter) -> QString
- Open file dialog for auth associated widgets.
- static auto greenColor() -> QColor
- Green color representing valid, trusted, etc. certificate.
- static auto greenTextStyleSheet(const QString& selector = "*") -> QString
- Green text stylesheet representing valid, trusted, etc. certificate.
- static auto isDisabled(QgsMessageBar* msgbar, int timeout = 0) -> bool
- Verify the authentication system is active, else notify user.
- static auto orangeColor() -> QColor
- Orange color representing loaded component, but not stored in database.
- static auto orangeTextStyleSheet(const QString& selector = "*") -> QString
- Orange text stylesheet representing loaded component, but not stored in database.
- static void passwordHelperDelete(QgsMessageBar* msgbar, int timeout = 0, QWidget* parent = nullptr)
- Remove master password from wallet.
- static void passwordHelperEnable(bool enabled, QgsMessageBar* msgbar, int timeout = 0)
- 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, int timeout = 0)
- Store master password into the wallet.
- static auto redColor() -> QColor
- Red color representing invalid, untrusted, etc. certificate.
- static auto redTextStyleSheet(const QString& selector = "*") -> QString
- Red text stylesheet representing invalid, untrusted, etc. certificate.
- static void removeAuthenticationConfigs(QgsMessageBar* msgbar, int timeout = 0, QWidget* parent = nullptr)
- Remove all authentication configs.
- static void resetMasterPassword(QgsMessageBar* msgbar, int timeout = 0, 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, int timeout = 0)
- Sets the cached master password (and verifies it if its hash is in authentication database)
- static auto yellowColor() -> QColor
- Yellow color representing caution regarding action.