QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
QtPassSettings Class Reference

Singleton that stores QtPass settings, handles persistence and defaults. More...

#include <qtpasssettings.h>

Inheritance diagram for QtPassSettings:
Collaboration diagram for QtPassSettings:

Static Public Member Functions

static auto getInstance () -> QtPassSettings *
 Get the singleton instance.
static auto getVersion (const QString &defaultValue=QVariant().toString()) -> QString
 Get saved application version.
static void setVersion (const QString &version)
 Save application version.
static auto getGeometry (const QByteArray &defaultValue=QVariant().toByteArray()) -> QByteArray
 Get saved window geometry.
static void setGeometry (const QByteArray &geometry)
 Save window geometry.
static auto getSavestate (const QByteArray &defaultValue=QVariant().toByteArray()) -> QByteArray
 Get saved window state.
static void setSavestate (const QByteArray &saveState)
 Save window state.
static auto getPos (const QPoint &defaultValue=QVariant().toPoint()) -> QPoint
 Get saved window position.
static void setPos (const QPoint &pos)
 Save window position.
static auto getSize (const QSize &defaultValue=QVariant().toSize()) -> QSize
 Get saved window size.
static void setSize (const QSize &size)
 Save window size.
static auto isMaximized (const bool &defaultValue=QVariant().toBool()) -> bool
 Get maximized state.
static void setMaximized (const bool &maximized)
 Save maximized state.
static auto getDialogGeometry (const QString &key, const QByteArray &defaultValue=QVariant().toByteArray()) -> QByteArray
 Get saved dialog geometry.
static void setDialogGeometry (const QString &key, const QByteArray &geometry)
 Save dialog geometry.
static auto getDialogPos (const QString &key, const QPoint &defaultValue=QVariant().toPoint()) -> QPoint
 Get saved dialog position.
static void setDialogPos (const QString &key, const QPoint &pos)
 Save dialog position.
static auto getDialogSize (const QString &key, const QSize &defaultValue=QVariant().toSize()) -> QSize
 Get saved dialog size.
static void setDialogSize (const QString &key, const QSize &size)
 Save dialog size.
static auto isDialogMaximized (const QString &key, const bool &defaultValue=QVariant().toBool()) -> bool
 Get dialog maximized state.
static void setDialogMaximized (const QString &key, const bool &maximized)
 Save dialog maximized state.
static auto isUsePass (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to use pass (true) or GPG (false).
static void setUsePass (const bool &usePass)
 Save use pass setting.
static auto getClipBoardTypeRaw (const Enums::clipBoardType &defaultValue=Enums::CLIPBOARD_NEVER) -> int
 Get clipboard type preference.
static auto getClipBoardType (const Enums::clipBoardType &defaultValue=Enums::CLIPBOARD_NEVER) -> Enums::clipBoardType
 Get clipboard type as enum.
static void setClipBoardType (const int &clipBoardType)
 Save clipboard type.
static auto isUseSelection (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to use selection (X11) for clipboard.
static void setUseSelection (const bool &useSelection)
 Save use selection setting.
static auto isUseAutoclear (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to use autoclear for clipboard.
static void setUseAutoclear (const bool &useAutoclear)
 Save use autoclear setting.
static auto getAutoclearSeconds (const int &defaultValue=QVariant().toInt()) -> int
 Get autoclear delay in seconds.
static void setAutoclearSeconds (const int &autoClearSeconds)
 Save autoclear seconds.
static auto isUseAutoclearPanel (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to use panel autoclear.
static void setUseAutoclearPanel (const bool &useAutoclearPanel)
 Save use autoclear panel setting.
static auto getAutoclearPanelSeconds (const int &defaultValue=QVariant().toInt()) -> int
 Get panel autoclear delay in seconds.
static void setAutoclearPanelSeconds (const int &autoClearPanelSeconds)
 Save panel autoclear seconds.
static auto isHidePassword (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to hide password in UI.
static void setHidePassword (const bool &hidePassword)
 Save hide password setting.
static auto isHideContent (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to hide content (password + username).
static void setHideContent (const bool &hideContent)
 Save hide content setting.
static auto isUseMonospace (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to use monospace font.
static void setUseMonospace (const bool &useMonospace)
 Save use monospace setting.
static auto isDisplayAsIs (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to display password as-is (no modification).
static void setDisplayAsIs (const bool &displayAsIs)
 Save display as-is setting.
static auto isNoLineWrapping (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to disable line wrapping.
static void setNoLineWrapping (const bool &noLineWrapping)
 Save no line wrapping setting.
static auto isAddGPGId (const bool &defaultValue=QVariant().toBool()) -> bool
 Get whether to auto-add GPG ID when receiving files.
static void setAddGPGId (const bool &addGPGId)
 Save add GPG ID setting.
static auto getPassStore (const QString &defaultValue=QVariant().toString()) -> QString
 Get password store directory path.
static void setPassStore (const QString &passStore)
 Save password store path.
static auto getPassSigningKey (const QString &defaultValue=QVariant().toString()) -> QString
 Get GPG signing key for pass.
static void setPassSigningKey (const QString &passSigningKey)
 Save GPG signing key.
static void initExecutables ()
 Initialize executable paths by auto-detecting them.
static auto getPassExecutable (const QString &defaultValue=QVariant().toString()) -> QString
 Get pass executable path.
static void setPassExecutable (const QString &passExecutable)
 Save pass executable path.
static auto getGitExecutable (const QString &defaultValue=QVariant().toString()) -> QString
 Get git executable path.
static void setGitExecutable (const QString &gitExecutable)
 Save git executable path.
static auto getGpgExecutable (const QString &defaultValue=QVariant().toString()) -> QString
 Get GPG executable path.
static void setGpgExecutable (const QString &gpgExecutable)
 Save GPG executable path.
static auto getPwgenExecutable (const QString &defaultValue=QVariant().toString()) -> QString
 Get pwgen executable path.
static void setPwgenExecutable (const QString &pwgenExecutable)
 Save pwgen executable path.
static auto getGpgHome (const QString &defaultValue=QVariant().toString()) -> QString
 Get GPG home directory.
static auto isUseWebDav (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether WebDAV integration is enabled.
static void setUseWebDav (const bool &useWebDav)
 Save WebDAV integration flag.
static auto getWebDavUrl (const QString &defaultValue=QVariant().toString()) -> QString
 Get WebDAV URL.
static void setWebDavUrl (const QString &webDavUrl)
 Save WebDAV URL.
static auto getWebDavUser (const QString &defaultValue=QVariant().toString()) -> QString
 Get WebDAV username.
static void setWebDavUser (const QString &webDavUser)
 Save WebDAV username.
static auto getWebDavPassword (const QString &defaultValue=QVariant().toString()) -> QString
 Get WebDAV password.
static void setWebDavPassword (const QString &webDavPassword)
 Save WebDAV password.
static auto getProfile (const QString &defaultValue=QVariant().toString()) -> QString
 Get active profile name.
static void setProfile (const QString &profile)
 Save active profile name.
static auto isUseGit (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether Git integration is enabled.
static void setUseGit (const bool &useGit)
 Save Git integration flag.
static auto isUseGrepSearch (const bool &defaultValue=false) -> bool
 Check whether content search (pass grep) is enabled.
static void setUseGrepSearch (const bool &useGrepSearch)
 Save content search flag.
static auto isUseOtp (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether OTP support is enabled.
static void setUseOtp (const bool &useOtp)
 Save OTP support flag.
static auto isUseQrencode (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether qrencode support is enabled.
static void setUseQrencode (const bool &useQrencode)
 Save qrencode support flag.
static auto getQrencodeExecutable (const QString &defaultValue=QVariant().toString()) -> QString
 Get qrencode executable path.
static void setQrencodeExecutable (const QString &qrencodeExecutable)
 Save qrencode executable path.
static auto isUsePwgen (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether pwgen support is enabled.
static void setUsePwgen (const bool &usePwgen)
 Save pwgen support flag.
static auto isAvoidCapitals (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether uppercase characters should be avoided.
static void setAvoidCapitals (const bool &avoidCapitals)
 Save uppercase avoidance flag.
static auto isAvoidNumbers (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether numeric characters should be avoided.
static void setAvoidNumbers (const bool &avoidNumbers)
 Save numeric avoidance flag.
static auto isLessRandom (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether less random password generation is enabled.
static void setLessRandom (const bool &lessRandom)
 Save less-random generation flag.
static auto isUseSymbols (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether symbol characters are enabled.
static void setUseSymbols (const bool &useSymbols)
 Save symbol usage flag.
static auto getPasswordConfiguration () -> PasswordConfiguration
 Get complete password generation configuration.
static void setPasswordConfiguration (const PasswordConfiguration &config)
 Save complete password generation configuration.
static void setPasswordLength (const int &passwordLength)
 Save password length setting.
static void setPasswordCharsSelection (const int &passwordCharsSelection)
 Save password character selection mode.
static void setPasswordChars (const QString &passwordChars)
 Save custom password characters.
static auto isUseTrayIcon (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether tray icon support is enabled.
static void setUseTrayIcon (const bool &useTrayIcon)
 Save tray icon support flag.
static auto isHideOnClose (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether closing the window hides the application.
static void setHideOnClose (const bool &hideOnClose)
 Save hide-on-close flag.
static auto isStartMinimized (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether application should start minimized.
static void setStartMinimized (const bool &startMinimized)
 Save start-minimized flag.
static auto isAlwaysOnTop (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether main window should stay always on top.
static void setAlwaysOnTop (const bool &alwaysOnTop)
 Save always-on-top flag.
static auto isAutoPull (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether automatic pull is enabled.
static void setAutoPull (const bool &autoPull)
 Save automatic pull flag.
static auto isAutoPush (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether automatic push is enabled.
static void setAutoPush (const bool &autoPush)
 Save automatic push flag.
static auto getPassTemplate (const QString &defaultValue=QVariant().toString()) -> QString
 Get pass entry template.
static void setPassTemplate (const QString &passTemplate)
 Save pass entry template.
static auto isUseTemplate (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether template usage is enabled.
static void setUseTemplate (const bool &useTemplate)
 Save template usage flag.
static auto isTemplateAllFields (const bool &defaultValue=QVariant().toBool()) -> bool
 Check whether template applies to all fields.
static void setTemplateAllFields (const bool &templateAllFields)
 Save template-all-fields flag.
static auto getProfiles () -> QHash< QString, QHash< QString, QString > >
 Get all configured profiles.
static void setProfiles (const QHash< QString, QHash< QString, QString > > &profiles)
 Save all configured profiles.
static auto getPass () -> Pass *
 Get currently active pass backend instance.
static auto getRealPass () -> RealPass *
 Get real pass backend instance.
static auto getImitatePass () -> ImitatePass *
 Get imitate pass backend instance.

Detailed Description

Singleton that stores QtPass settings, handles persistence and defaults.

QtPassSettings manages all application configuration including:

  • Window geometry (position, size, maximized state)
  • Password store configuration (path, GPG settings)
  • Executable paths (pass, git, gpg, pwgen)
  • UI preferences (clipboard, autoclear, display options)
  • gopass configuration

Uses QSettings for persistence with a singleton pattern. All getters accept a default value returned when setting is not yet saved.

Definition at line 35 of file qtpasssettings.h.

Member Function Documentation

◆ getAutoclearPanelSeconds()

auto QtPassSettings::getAutoclearPanelSeconds ( const int & defaultValue = QVariant().toInt()) -> int
static

Get panel autoclear delay in seconds.

Parameters
defaultValueInteger returned if not saved.
Returns
Seconds before panel is cleared.

◆ getAutoclearSeconds()

auto QtPassSettings::getAutoclearSeconds ( const int & defaultValue = QVariant().toInt()) -> int
static

Get autoclear delay in seconds.

Parameters
defaultValueInteger returned if not saved.
Returns
Seconds before clipboard is cleared.

◆ getClipBoardType()

auto QtPassSettings::getClipBoardType ( const Enums::clipBoardType & defaultValue = Enums::CLIPBOARD_NEVER) -> Enums::clipBoardType
static

Get clipboard type as enum.

Parameters
defaultValueDefault value returned if not saved.
Returns
Clipboard type as Enums::clipBoardType.

◆ getClipBoardTypeRaw()

auto QtPassSettings::getClipBoardTypeRaw ( const Enums::clipBoardType & defaultValue = Enums::CLIPBOARD_NEVER) -> int
static

Get clipboard type preference.

Parameters
defaultValueDefault value returned if not saved.
Returns
Clipboard type as Enums::clipBoardType.

◆ getDialogGeometry()

auto QtPassSettings::getDialogGeometry ( const QString & key,
const QByteArray & defaultValue = QVariant().toByteArray() ) -> QByteArray
static

Get saved dialog geometry.

Parameters
keyDialog identifier (e.g., "usersDialog").
defaultValueByte array returned if not saved.
Returns
Dialog geometry as QByteArray.

◆ getDialogPos()

auto QtPassSettings::getDialogPos ( const QString & key,
const QPoint & defaultValue = QVariant().toPoint() ) -> QPoint
static

Get saved dialog position.

Parameters
keyDialog identifier.
defaultValuePoint returned if not saved.
Returns
Dialog position as QPoint.

◆ getDialogSize()

auto QtPassSettings::getDialogSize ( const QString & key,
const QSize & defaultValue = QVariant().toSize() ) -> QSize
static

Get saved dialog size.

Parameters
keyDialog identifier.
defaultValueSize returned if not saved.
Returns
Dialog size as QSize.

◆ getGeometry()

auto QtPassSettings::getGeometry ( const QByteArray & defaultValue = QVariant().toByteArray()) -> QByteArray
static

Get saved window geometry.

Parameters
defaultValueByte array returned if no geometry saved.
Returns
Window geometry as QByteArray.

◆ getGitExecutable()

auto QtPassSettings::getGitExecutable ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get git executable path.

Parameters
defaultValueString returned if not saved.
Returns
Path to git executable.

◆ getGpgExecutable()

auto QtPassSettings::getGpgExecutable ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get GPG executable path.

Parameters
defaultValueString returned if not saved.
Returns
Path to GPG executable.

◆ getGpgHome()

auto QtPassSettings::getGpgHome ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get GPG home directory.

Parameters
defaultValueString returned if not saved.
Returns
Path to the GPG home directory.

◆ getImitatePass()

auto QtPassSettings::getImitatePass ( ) -> ImitatePass *
static

Get imitate pass backend instance.

Returns
Pointer to imitate pass backend.

◆ getInstance()

auto QtPassSettings::getInstance ( ) -> QtPassSettings *
static

Get the singleton instance.

Returns
Pointer to the QtPassSettings instance.

◆ getPass()

auto QtPassSettings::getPass ( ) -> Pass *
static

Get currently active pass backend instance.

Returns
Pointer to pass backend.

◆ getPassExecutable()

auto QtPassSettings::getPassExecutable ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get pass executable path.

Parameters
defaultValueString returned if not saved.
Returns
Path to pass executable.

◆ getPassSigningKey()

auto QtPassSettings::getPassSigningKey ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get GPG signing key for pass.

Parameters
defaultValueString returned if not saved.
Returns
GPG key ID.

◆ getPassStore()

auto QtPassSettings::getPassStore ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get password store directory path.

Parameters
defaultValueString returned if not saved.
Returns
Path to password store.

◆ getPassTemplate()

auto QtPassSettings::getPassTemplate ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get pass entry template.

Parameters
defaultValueString returned if not saved.
Returns
Pass template.

◆ getPasswordConfiguration()

auto QtPassSettings::getPasswordConfiguration ( ) -> PasswordConfiguration
static

Get complete password generation configuration.

Returns
Password generation configuration.

◆ getPos()

auto QtPassSettings::getPos ( const QPoint & defaultValue = QVariant().toPoint()) -> QPoint
static

Get saved window position.

Parameters
defaultValuePoint returned if no position saved.
Returns
Window position as QPoint.

◆ getProfile()

auto QtPassSettings::getProfile ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get active profile name.

Parameters
defaultValueString returned if not saved.
Returns
Active profile name.

◆ getProfiles()

auto QtPassSettings::getProfiles ( ) -> QHash< QString, QHash< QString, QString > >
static

Get all configured profiles.

Returns
Profile map keyed by profile name.

◆ getPwgenExecutable()

auto QtPassSettings::getPwgenExecutable ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get pwgen executable path.

Parameters
defaultValueString returned if not saved.
Returns
Path to pwgen executable.

◆ getQrencodeExecutable()

auto QtPassSettings::getQrencodeExecutable ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get qrencode executable path.

Parameters
defaultValueString returned if not saved.
Returns
Path to qrencode executable.

◆ getRealPass()

auto QtPassSettings::getRealPass ( ) -> RealPass *
static

Get real pass backend instance.

Returns
Pointer to real pass backend.

◆ getSavestate()

auto QtPassSettings::getSavestate ( const QByteArray & defaultValue = QVariant().toByteArray()) -> QByteArray
static

Get saved window state.

Parameters
defaultValueByte array returned if no state saved.
Returns
Window state as QByteArray.

◆ getSize()

auto QtPassSettings::getSize ( const QSize & defaultValue = QVariant().toSize()) -> QSize
static

Get saved window size.

Parameters
defaultValueSize returned if no size saved.
Returns
Window size as QSize.

◆ getVersion()

auto QtPassSettings::getVersion ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get saved application version.

Parameters
defaultValueString returned if no version saved.
Returns
Application version string.

◆ getWebDavPassword()

auto QtPassSettings::getWebDavPassword ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get WebDAV password.

Parameters
defaultValueString returned if not saved.
Returns
WebDAV password.

◆ getWebDavUrl()

auto QtPassSettings::getWebDavUrl ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get WebDAV URL.

Parameters
defaultValueString returned if not saved.
Returns
WebDAV URL.

◆ getWebDavUser()

auto QtPassSettings::getWebDavUser ( const QString & defaultValue = QVariant().toString()) -> QString
static

Get WebDAV username.

Parameters
defaultValueString returned if not saved.
Returns
WebDAV username.

◆ isAddGPGId()

auto QtPassSettings::isAddGPGId ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to auto-add GPG ID when receiving files.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if auto-adding is enabled.

◆ isAlwaysOnTop()

auto QtPassSettings::isAlwaysOnTop ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether main window should stay always on top.

Parameters
defaultValueValue returned if not saved.
Returns
True if always-on-top is enabled.

◆ isAutoPull()

auto QtPassSettings::isAutoPull ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether automatic pull is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if automatic pull is enabled.

◆ isAutoPush()

auto QtPassSettings::isAutoPush ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether automatic push is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if automatic push is enabled.

◆ isAvoidCapitals()

auto QtPassSettings::isAvoidCapitals ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether uppercase characters should be avoided.

Parameters
defaultValueValue returned if not saved.
Returns
True if uppercase characters are avoided.

◆ isAvoidNumbers()

auto QtPassSettings::isAvoidNumbers ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether numeric characters should be avoided.

Parameters
defaultValueValue returned if not saved.
Returns
True if numeric characters are avoided.

◆ isDialogMaximized()

auto QtPassSettings::isDialogMaximized ( const QString & key,
const bool & defaultValue = QVariant().toBool() ) -> bool
static

Get dialog maximized state.

Parameters
keyDialog identifier.
defaultValueBoolean returned if not saved.
Returns
true if dialog is maximized.

◆ isDisplayAsIs()

auto QtPassSettings::isDisplayAsIs ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to display password as-is (no modification).

Parameters
defaultValueBoolean returned if not saved.
Returns
true if displaying as-is.

◆ isHideContent()

auto QtPassSettings::isHideContent ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to hide content (password + username).

Parameters
defaultValueBoolean returned if not saved.
Returns
true if content is hidden.

◆ isHideOnClose()

auto QtPassSettings::isHideOnClose ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether closing the window hides the application.

Parameters
defaultValueValue returned if not saved.
Returns
True if close action hides the application.

◆ isHidePassword()

auto QtPassSettings::isHidePassword ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to hide password in UI.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if password is hidden.

◆ isLessRandom()

auto QtPassSettings::isLessRandom ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether less random password generation is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if less random generation is enabled.

◆ isMaximized()

auto QtPassSettings::isMaximized ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get maximized state.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if window is maximized.

◆ isNoLineWrapping()

auto QtPassSettings::isNoLineWrapping ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to disable line wrapping.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if line wrapping disabled.

◆ isStartMinimized()

auto QtPassSettings::isStartMinimized ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether application should start minimized.

Parameters
defaultValueValue returned if not saved.
Returns
True if application should start minimized.

◆ isTemplateAllFields()

auto QtPassSettings::isTemplateAllFields ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether template applies to all fields.

Parameters
defaultValueValue returned if not saved.
Returns
True if template applies to all fields.

◆ isUseAutoclear()

auto QtPassSettings::isUseAutoclear ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to use autoclear for clipboard.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if autoclear is enabled.

◆ isUseAutoclearPanel()

auto QtPassSettings::isUseAutoclearPanel ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to use panel autoclear.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if panel autoclear is enabled.

◆ isUseGit()

auto QtPassSettings::isUseGit ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether Git integration is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if Git integration is enabled.

◆ isUseGrepSearch()

auto QtPassSettings::isUseGrepSearch ( const bool & defaultValue = false) -> bool
static

Check whether content search (pass grep) is enabled.

Parameters
defaultValueValue returned if not saved (defaults to false).
Returns
True if grep search is enabled.

◆ isUseMonospace()

auto QtPassSettings::isUseMonospace ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to use monospace font.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if using monospace font.

◆ isUseOtp()

auto QtPassSettings::isUseOtp ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether OTP support is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if OTP support is enabled.

◆ isUsePass()

auto QtPassSettings::isUsePass ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to use pass (true) or GPG (false).

Parameters
defaultValueBoolean returned if not saved (defaults to false).
Returns
true if using pass, false if using GPG.

◆ isUsePwgen()

auto QtPassSettings::isUsePwgen ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether pwgen support is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if pwgen support is enabled.

◆ isUseQrencode()

auto QtPassSettings::isUseQrencode ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether qrencode support is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if qrencode support is enabled.

◆ isUseSelection()

auto QtPassSettings::isUseSelection ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Get whether to use selection (X11) for clipboard.

Parameters
defaultValueBoolean returned if not saved.
Returns
true if using selection.

◆ isUseSymbols()

auto QtPassSettings::isUseSymbols ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether symbol characters are enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if symbol characters are enabled.

◆ isUseTemplate()

auto QtPassSettings::isUseTemplate ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether template usage is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if template usage is enabled.

◆ isUseTrayIcon()

auto QtPassSettings::isUseTrayIcon ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether tray icon support is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if tray icon support is enabled.

◆ isUseWebDav()

auto QtPassSettings::isUseWebDav ( const bool & defaultValue = QVariant().toBool()) -> bool
static

Check whether WebDAV integration is enabled.

Parameters
defaultValueValue returned if not saved.
Returns
True if WebDAV is enabled.

◆ setAddGPGId()

void QtPassSettings::setAddGPGId ( const bool & addGPGId)
static

Save add GPG ID setting.

Parameters
addGPGIdtrue to auto-add GPG IDs.

◆ setAlwaysOnTop()

void QtPassSettings::setAlwaysOnTop ( const bool & alwaysOnTop)
static

Save always-on-top flag.

Parameters
alwaysOnTopWhether always-on-top should be enabled.

◆ setAutoclearPanelSeconds()

void QtPassSettings::setAutoclearPanelSeconds ( const int & autoClearPanelSeconds)
static

Save panel autoclear seconds.

Parameters
autoClearPanelSecondsSeconds to wait before clearing panel.

◆ setAutoclearSeconds()

void QtPassSettings::setAutoclearSeconds ( const int & autoClearSeconds)
static

Save autoclear seconds.

Parameters
autoClearSecondsSeconds to wait before clearing.

◆ setAutoPull()

void QtPassSettings::setAutoPull ( const bool & autoPull)
static

Save automatic pull flag.

Parameters
autoPullWhether automatic pull should be enabled.

◆ setAutoPush()

void QtPassSettings::setAutoPush ( const bool & autoPush)
static

Save automatic push flag.

Parameters
autoPushWhether automatic push should be enabled.

◆ setAvoidCapitals()

void QtPassSettings::setAvoidCapitals ( const bool & avoidCapitals)
static

Save uppercase avoidance flag.

Parameters
avoidCapitalsWhether uppercase characters should be avoided.

◆ setAvoidNumbers()

void QtPassSettings::setAvoidNumbers ( const bool & avoidNumbers)
static

Save numeric avoidance flag.

Parameters
avoidNumbersWhether numeric characters should be avoided.

◆ setClipBoardType()

void QtPassSettings::setClipBoardType ( const int & clipBoardType)
static

Save clipboard type.

Parameters
clipBoardTypeClipboard type to save.

◆ setDialogGeometry()

void QtPassSettings::setDialogGeometry ( const QString & key,
const QByteArray & geometry )
static

Save dialog geometry.

Parameters
keyDialog identifier.
geometryDialog geometry to save.

◆ setDialogMaximized()

void QtPassSettings::setDialogMaximized ( const QString & key,
const bool & maximized )
static

Save dialog maximized state.

Parameters
keyDialog identifier.
maximizedMaximized state to save.

◆ setDialogPos()

void QtPassSettings::setDialogPos ( const QString & key,
const QPoint & pos )
static

Save dialog position.

Parameters
keyDialog identifier.
posDialog position to save.

◆ setDialogSize()

void QtPassSettings::setDialogSize ( const QString & key,
const QSize & size )
static

Save dialog size.

Parameters
keyDialog identifier.
sizeDialog size to save.

◆ setDisplayAsIs()

void QtPassSettings::setDisplayAsIs ( const bool & displayAsIs)
static

Save display as-is setting.

Parameters
displayAsIstrue to display unmodified.

◆ setGeometry()

void QtPassSettings::setGeometry ( const QByteArray & geometry)
static

Save window geometry.

Parameters
geometryWindow geometry to save.

◆ setGitExecutable()

void QtPassSettings::setGitExecutable ( const QString & gitExecutable)
static

Save git executable path.

Parameters
gitExecutablePath to git.

◆ setGpgExecutable()

void QtPassSettings::setGpgExecutable ( const QString & gpgExecutable)
static

Save GPG executable path.

Parameters
gpgExecutablePath to GPG executable.

◆ setHideContent()

void QtPassSettings::setHideContent ( const bool & hideContent)
static

Save hide content setting.

Parameters
hideContenttrue to hide content.

◆ setHideOnClose()

void QtPassSettings::setHideOnClose ( const bool & hideOnClose)
static

Save hide-on-close flag.

Parameters
hideOnCloseWhether close action should hide the application.

◆ setHidePassword()

void QtPassSettings::setHidePassword ( const bool & hidePassword)
static

Save hide password setting.

Parameters
hidePasswordtrue to hide password.

◆ setLessRandom()

void QtPassSettings::setLessRandom ( const bool & lessRandom)
static

Save less-random generation flag.

Parameters
lessRandomWhether less-random generation is enabled.

◆ setMaximized()

void QtPassSettings::setMaximized ( const bool & maximized)
static

Save maximized state.

Parameters
maximizedMaximized state to save.

◆ setNoLineWrapping()

void QtPassSettings::setNoLineWrapping ( const bool & noLineWrapping)
static

Save no line wrapping setting.

Parameters
noLineWrappingtrue to disable wrapping.

◆ setPassExecutable()

void QtPassSettings::setPassExecutable ( const QString & passExecutable)
static

Save pass executable path.

Parameters
passExecutablePath to pass.

◆ setPassSigningKey()

void QtPassSettings::setPassSigningKey ( const QString & passSigningKey)
static

Save GPG signing key.

Parameters
passSigningKeyKey ID to use for signing.

◆ setPassStore()

void QtPassSettings::setPassStore ( const QString & passStore)
static

Save password store path.

Parameters
passStorePath to password store.

◆ setPassTemplate()

void QtPassSettings::setPassTemplate ( const QString & passTemplate)
static

Save pass entry template.

Parameters
passTemplatePass template.

◆ setPasswordChars()

void QtPassSettings::setPasswordChars ( const QString & passwordChars)
static

Save custom password characters.

Parameters
passwordCharsCustom characters used for password generation.

◆ setPasswordCharsSelection()

void QtPassSettings::setPasswordCharsSelection ( const int & passwordCharsSelection)
static

Save password character selection mode.

Parameters
passwordCharsSelectionPassword character selection mode.

◆ setPasswordConfiguration()

void QtPassSettings::setPasswordConfiguration ( const PasswordConfiguration & config)
static

Save complete password generation configuration.

Parameters
configPassword generation configuration.

◆ setPasswordLength()

void QtPassSettings::setPasswordLength ( const int & passwordLength)
static

Save password length setting.

Parameters
passwordLengthPassword length.

◆ setPos()

void QtPassSettings::setPos ( const QPoint & pos)
static

Save window position.

Parameters
posWindow position to save.

◆ setProfile()

void QtPassSettings::setProfile ( const QString & profile)
static

Save active profile name.

Parameters
profileProfile name.

◆ setProfiles()

void QtPassSettings::setProfiles ( const QHash< QString, QHash< QString, QString > > & profiles)
static

Save all configured profiles.

Parameters
profilesProfile map keyed by profile name.

◆ setPwgenExecutable()

void QtPassSettings::setPwgenExecutable ( const QString & pwgenExecutable)
static

Save pwgen executable path.

Parameters
pwgenExecutablePath to pwgen.

◆ setQrencodeExecutable()

void QtPassSettings::setQrencodeExecutable ( const QString & qrencodeExecutable)
static

Save qrencode executable path.

Parameters
qrencodeExecutablePath to qrencode executable.

◆ setSavestate()

void QtPassSettings::setSavestate ( const QByteArray & saveState)
static

Save window state.

Parameters
saveStateWindow state to save.

◆ setSize()

void QtPassSettings::setSize ( const QSize & size)
static

Save window size.

Parameters
sizeWindow size to save.

◆ setStartMinimized()

void QtPassSettings::setStartMinimized ( const bool & startMinimized)
static

Save start-minimized flag.

Parameters
startMinimizedWhether application should start minimized.

◆ setTemplateAllFields()

void QtPassSettings::setTemplateAllFields ( const bool & templateAllFields)
static

Save template-all-fields flag.

Parameters
templateAllFieldsWhether template should apply to all fields.

◆ setUseAutoclear()

void QtPassSettings::setUseAutoclear ( const bool & useAutoclear)
static

Save use autoclear setting.

Parameters
useAutocleartrue to enable autoclear.

◆ setUseAutoclearPanel()

void QtPassSettings::setUseAutoclearPanel ( const bool & useAutoclearPanel)
static

Save use autoclear panel setting.

Parameters
useAutoclearPaneltrue to enable panel autoclear.

◆ setUseGit()

void QtPassSettings::setUseGit ( const bool & useGit)
static

Save Git integration flag.

Parameters
useGitWhether to enable Git integration.

◆ setUseGrepSearch()

void QtPassSettings::setUseGrepSearch ( const bool & useGrepSearch)
static

Save content search flag.

Parameters
useGrepSearchWhether to enable grep search.

◆ setUseMonospace()

void QtPassSettings::setUseMonospace ( const bool & useMonospace)
static

Save use monospace setting.

Parameters
useMonospacetrue to use monospace font.

◆ setUseOtp()

void QtPassSettings::setUseOtp ( const bool & useOtp)
static

Save OTP support flag.

Parameters
useOtpWhether to enable OTP support.

◆ setUsePass()

void QtPassSettings::setUsePass ( const bool & usePass)
static

Save use pass setting.

Parameters
usePasstrue to use pass, false for GPG.

◆ setUsePwgen()

void QtPassSettings::setUsePwgen ( const bool & usePwgen)
static

Save pwgen support flag.

Parameters
usePwgenWhether to enable pwgen support.

◆ setUseQrencode()

void QtPassSettings::setUseQrencode ( const bool & useQrencode)
static

Save qrencode support flag.

Parameters
useQrencodeWhether to enable qrencode support.

◆ setUseSelection()

void QtPassSettings::setUseSelection ( const bool & useSelection)
static

Save use selection setting.

Parameters
useSelectiontrue to use selection.

◆ setUseSymbols()

void QtPassSettings::setUseSymbols ( const bool & useSymbols)
static

Save symbol usage flag.

Parameters
useSymbolsWhether symbol characters are enabled.

◆ setUseTemplate()

void QtPassSettings::setUseTemplate ( const bool & useTemplate)
static

Save template usage flag.

Parameters
useTemplateWhether template usage should be enabled.

◆ setUseTrayIcon()

void QtPassSettings::setUseTrayIcon ( const bool & useTrayIcon)
static

Save tray icon support flag.

Parameters
useTrayIconWhether tray icon support is enabled.

◆ setUseWebDav()

void QtPassSettings::setUseWebDav ( const bool & useWebDav)
static

Save WebDAV integration flag.

Parameters
useWebDavWhether to enable WebDAV.

◆ setVersion()

void QtPassSettings::setVersion ( const QString & version)
static

Save application version.

Parameters
versionVersion string to save.

◆ setWebDavPassword()

void QtPassSettings::setWebDavPassword ( const QString & webDavPassword)
static

Save WebDAV password.

Parameters
webDavPasswordWebDAV password.

◆ setWebDavUrl()

void QtPassSettings::setWebDavUrl ( const QString & webDavUrl)
static

Save WebDAV URL.

Parameters
webDavUrlWebDAV URL.

◆ setWebDavUser()

void QtPassSettings::setWebDavUser ( const QString & webDavUser)
static

Save WebDAV username.

Parameters
webDavUserWebDAV username.

The documentation for this class was generated from the following file: