QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
SettingsConstants Class Reference

The names of the keys in the settings file, one constant per key. More...

#include <settingsconstants.h>

Public Member Functions

 SettingsConstants ()=delete
 Not for instantiation: the class only holds constants.

Static Public Attributes

static const QString version = "version"
 Version of QtPass that last wrote the settings. Text.
static const QString groupMainwindow = "mainwindow"
 Name of the group that holds the main window keys; not a setting itself.
static const QString geometry
 Saved geometry of the main window (mainwindow/geometry). Bytes from QWidget::saveGeometry().
static const QString savestate
 Saved dock and toolbar state of the main window (mainwindow/savestate). Bytes from QMainWindow::saveState().
static const QString dialogGeometry = "dialog/geometry"
 Prefix of the saved geometry of each dialog: the key is dialog/geometry/<dialog name>. Bytes.
static const QString usePass = "usePass"
 Run the pass program (true) or call gpg and Git directly (false). Boolean, default false.
static const QString useAutoclear = "useAutoclear"
 Clear the clipboard some time after a copy. Boolean, default false.
static const QString restoreClipboard = "restoreClipboard"
 When autoclear runs, put back what was on the clipboard before the copy. Boolean, default true.
static const QString useSelection = "useSelection"
 Copy to the X11 primary selection instead of the clipboard, where the platform has one. Boolean, default false.
static const QString autoclearSeconds = "autoclearSeconds"
 Seconds until the clipboard is cleared. Integer, default 0.
static const QString useAutoclearPanel = "useAutoclearPanel"
 Clear the content panel some time after an entry is shown. Boolean, default false.
static const QString autoclearPanelSeconds
 Seconds until the content panel is cleared. Integer, default 0.
static const QString hidePassword = "hidePassword"
 Mask the password line in the content panel. Boolean, default false.
static const QString secretFieldNames = "secretFieldNames"
 Field names that hideSecretFields masks. List of text; absent means AppSettings::defaultSecretFieldNames(), and a saved empty list stays empty.
static const QString hideSecretFields = "hideSecretFields"
 With hidePassword: mask the fields named in secretFieldNames too. Boolean, default true.
static const QString hideAllFields = "hideAllFields"
 With hidePassword: mask every field, not only the secret ones. Boolean, default false.
static const QString hideContent = "hideContent"
 Show no content of an entry at all. Boolean, default false.
static const QString useMonospace = "useMonospace"
 Show the content in a monospace font. Boolean, default false.
static const QString displayAsIs = "displayAsIs"
 Show the file content as it is, without splitting it into fields. Boolean, default false.
static const QString noLineWrapping = "noLineWrapping"
 Do not wrap long lines in the content panel. Boolean, default false.
static const QString addGPGId = "addGPGId"
 With Git in use: add a changed .gpg-id file to Git. Boolean, default true.
static const QString passStore = "passStore"
 Root folder of the password store. Path as text.
static const QString passSigningKey = "passSigningKey"
 Keys that sign and check the .gpg-id files, separated by spaces. Text. Empty means the exported PASSWORD_STORE_SIGNING_KEY, and no signing when that is empty too.
static const QString passExecutable = "passExecutable"
 Path of the pass program. Text.
static const QString sshAuthSockOverride = "sshAuthSockOverride"
 Value for SSH_AUTH_SOCK that replaces the one found. Path as text, empty for none.
static const QString gitExecutable = "gitExecutable"
 Path of the git program. Text.
static const QString gpgExecutable = "gpgExecutable"
 Path of the gpg or gpg2 program. Text.
static const QString pwgenExecutable = "pwgenExecutable"
 Path of the pwgen program. Text.
static const QString gpgHome = "gpgHome"
 GnuPG home folder that takes the place of GNUPGHOME when it exists. Path as text, empty for none.
static const QString profile = "profile"
 Name of the active profile, and also the group profile/<name>/ that holds each profile (path, signingKey, useGit, autoPush, autoPull). Text.
static const QString useGit = "useGit"
 Use Git in the store. Boolean, default false; a profile can set its own value.
static const QString useGrepSearch = "useGrepSearch"
 Offer the search in the content of entries. Boolean, default false.
static const QString useOtp = "useOtp"
 Show one-time codes for entries that hold an otpauth:// line. Boolean, default true.
static const QString otpMigratedToNative = "otpMigratedToNative"
 Marker that the one-time useOtp migration has run.
static const QString firstRunPending = "firstRunPending"
 Set on a fresh install until QtPass is first set up: the first-run wizard finished, or a store that already works was found.
static const QString useQrencode = "useQrencode"
 Offer QR codes made with the qrencode program. Boolean, default false.
static const QString qrencodeExecutable = "qrencodeExecutable"
 Path of the qrencode program. Text.
static const QString usePwgen = "usePwgen"
 Generate passwords with the pwgen program, not with the built-in generator. Boolean, default false.
static const QString avoidCapitals = "avoidCapitals"
 pwgen: no capital letters (--no-capitalize). Boolean, default false.
static const QString avoidNumbers = "avoidNumbers"
 pwgen: no digits (--no-numerals). Boolean, default false.
static const QString lessRandom = "lessRandom"
 pwgen: passwords that are easier to remember; off adds --secure. Boolean, default false.
static const QString useSymbols = "useSymbols"
 pwgen: include symbols (--symbols). Boolean, default false.
static const QString passwordLength = "passwordLength"
 Length of a generated password. Integer, default 16; a value of 0 or less is read as 16.
static const QString passwordCharsSelection
 Character set of the built-in generator, as a PasswordConfiguration::CharacterSet number. Integer, default 0 (ALLCHARS). The stored key is passwordCharsselection, with a lower-case s.
static const QString passwordChars = "passwordChars"
 The user's own alphabet for the CUSTOM character set. Text.
static const QString useTrayIcon = "useTrayIcon"
 Show an icon in the system tray. Boolean, default false.
static const QString hideOnClose = "hideOnClose"
 With a tray icon: closing the window hides it to the tray and QtPass keeps running. Boolean, default false.
static const QString startMinimized = "startMinimized"
 With useTrayIcon and a system tray present: start with the window hidden in the tray. Boolean, default false.
static const QString alwaysOnTop = "alwaysOnTop"
 Keep the main window above other windows. Boolean, default false.
static const QString autoPull = "autoPull"
 With Git in use: run git pull before an entry is edited and before entries are re-encrypted. Boolean, default false; a profile can set its own value.
static const QString autoPush = "autoPush"
 Run git push after each change. Boolean, default false; a profile can set its own value.
static const QString gitUseParentRepository
 Let Git use a repository in a folder above the store when the store has none of its own. Boolean, default false.
static const QString passTemplate = "passTemplate"
 Field names of the entry template, one per line. Text.
static const QString useTemplate = "useTemplate"
 Offer the template fields in the entry dialog. Boolean, default false.
static const QString templateAllFields = "templateAllFields"
 With useTemplate: show every key: value line as a field, not only the template's. Boolean, default false.
static const QString showProcessOutput = "showProcessOutput"
 Show the Process Output panel. Boolean, default false.
static const QString showMenuBar = "showMenuBar"
 Show the menu bar. Boolean, default false.
static const QString clipBoardType = "clipBoardType"
 When a password goes to the clipboard, as an Enums::ClipBoardType number. Integer, default 0 (never).

Detailed Description

The names of the keys in the settings file, one constant per key.

SettingsSerializer and QtPassSettings read and write QSettings with these names. The text of a key is what is already in the users' settings files, so a constant can get a better name but its text cannot change without a migration. AppSettings holds the values, with the same defaults as given here. The keys inside a profile group are not in this table: see QtPassSettings::getProfiles().

Definition at line 24 of file settingsconstants.h.

Member Data Documentation

◆ addGPGId

const QString SettingsConstants::addGPGId = "addGPGId"
static

With Git in use: add a changed .gpg-id file to Git. Boolean, default true.

Definition at line 120 of file settingsconstants.h.

◆ alwaysOnTop

const QString SettingsConstants::alwaysOnTop = "alwaysOnTop"
static

Keep the main window above other windows. Boolean, default false.

Definition at line 240 of file settingsconstants.h.

◆ autoclearPanelSeconds

const QString SettingsConstants::autoclearPanelSeconds
static
Initial value:
=
"autoclearPanelSeconds"

Seconds until the content panel is cleared. Integer, default 0.

Definition at line 80 of file settingsconstants.h.

◆ autoclearSeconds

const QString SettingsConstants::autoclearSeconds = "autoclearSeconds"
static

Seconds until the clipboard is cleared. Integer, default 0.

Definition at line 73 of file settingsconstants.h.

◆ autoPull

const QString SettingsConstants::autoPull = "autoPull"
static

With Git in use: run git pull before an entry is edited and before entries are re-encrypted. Boolean, default false; a profile can set its own value.

Definition at line 246 of file settingsconstants.h.

◆ autoPush

const QString SettingsConstants::autoPush = "autoPush"
static

Run git push after each change. Boolean, default false; a profile can set its own value.

Definition at line 251 of file settingsconstants.h.

◆ avoidCapitals

const QString SettingsConstants::avoidCapitals = "avoidCapitals"
static

pwgen: no capital letters (--no-capitalize). Boolean, default false.

Definition at line 201 of file settingsconstants.h.

◆ avoidNumbers

const QString SettingsConstants::avoidNumbers = "avoidNumbers"
static

pwgen: no digits (--no-numerals). Boolean, default false.

Definition at line 203 of file settingsconstants.h.

◆ clipBoardType

const QString SettingsConstants::clipBoardType = "clipBoardType"
static

When a password goes to the clipboard, as an Enums::ClipBoardType number. Integer, default 0 (never).

Definition at line 277 of file settingsconstants.h.

◆ dialogGeometry

const QString SettingsConstants::dialogGeometry = "dialog/geometry"
static

Prefix of the saved geometry of each dialog: the key is dialog/geometry/<dialog name>. Bytes.

Definition at line 50 of file settingsconstants.h.

◆ displayAsIs

const QString SettingsConstants::displayAsIs = "displayAsIs"
static

Show the file content as it is, without splitting it into fields. Boolean, default false.

Definition at line 110 of file settingsconstants.h.

◆ firstRunPending

const QString SettingsConstants::firstRunPending = "firstRunPending"
static

Set on a fresh install until QtPass is first set up: the first-run wizard finished, or a store that already works was found.

Only then does the wizard turn "Use pass" and "Use Git" on from what it detects. It also runs again later, when the store lost its recipient list, and then shows the choices saved before.

Definition at line 184 of file settingsconstants.h.

◆ geometry

const QString SettingsConstants::geometry
static
Initial value:
=
static const QString groupMainwindow
Name of the group that holds the main window keys; not a setting itself.

Saved geometry of the main window (mainwindow/geometry). Bytes from QWidget::saveGeometry().

Definition at line 39 of file settingsconstants.h.

◆ gitExecutable

const QString SettingsConstants::gitExecutable = "gitExecutable"
static

Path of the git program. Text.

Definition at line 137 of file settingsconstants.h.

◆ gitUseParentRepository

const QString SettingsConstants::gitUseParentRepository
static
Initial value:
=
"gitUseParentRepository"

Let Git use a repository in a folder above the store when the store has none of its own. Boolean, default false.

Definition at line 256 of file settingsconstants.h.

◆ gpgExecutable

const QString SettingsConstants::gpgExecutable = "gpgExecutable"
static

Path of the gpg or gpg2 program. Text.

Definition at line 139 of file settingsconstants.h.

◆ gpgHome

const QString SettingsConstants::gpgHome = "gpgHome"
static

GnuPG home folder that takes the place of GNUPGHOME when it exists. Path as text, empty for none.

Definition at line 146 of file settingsconstants.h.

◆ groupMainwindow

const QString SettingsConstants::groupMainwindow = "mainwindow"
static

Name of the group that holds the main window keys; not a setting itself.

Definition at line 34 of file settingsconstants.h.

◆ hideAllFields

const QString SettingsConstants::hideAllFields = "hideAllFields"
static

With hidePassword: mask every field, not only the secret ones. Boolean, default false.

Definition at line 101 of file settingsconstants.h.

◆ hideContent

const QString SettingsConstants::hideContent = "hideContent"
static

Show no content of an entry at all. Boolean, default false.

Definition at line 103 of file settingsconstants.h.

◆ hideOnClose

const QString SettingsConstants::hideOnClose = "hideOnClose"
static

With a tray icon: closing the window hides it to the tray and QtPass keeps running. Boolean, default false.

Definition at line 231 of file settingsconstants.h.

◆ hidePassword

const QString SettingsConstants::hidePassword = "hidePassword"
static

Mask the password line in the content panel. Boolean, default false.

Definition at line 85 of file settingsconstants.h.

◆ hideSecretFields

const QString SettingsConstants::hideSecretFields = "hideSecretFields"
static

With hidePassword: mask the fields named in secretFieldNames too. Boolean, default true.

Definition at line 96 of file settingsconstants.h.

◆ lessRandom

const QString SettingsConstants::lessRandom = "lessRandom"
static

pwgen: passwords that are easier to remember; off adds --secure. Boolean, default false.

Definition at line 208 of file settingsconstants.h.

◆ noLineWrapping

const QString SettingsConstants::noLineWrapping = "noLineWrapping"
static

Do not wrap long lines in the content panel. Boolean, default false.

Definition at line 115 of file settingsconstants.h.

◆ otpMigratedToNative

const QString SettingsConstants::otpMigratedToNative = "otpMigratedToNative"
static

Marker that the one-time useOtp migration has run.

useOtp used to gate the pass-otp extension and now gates built-in TOTP, so it is enabled once for profiles created before the change. Recorded separately so a deliberate opt-out survives the next launch.

Definition at line 175 of file settingsconstants.h.

◆ passExecutable

const QString SettingsConstants::passExecutable = "passExecutable"
static

Path of the pass program. Text.

Definition at line 130 of file settingsconstants.h.

◆ passSigningKey

const QString SettingsConstants::passSigningKey = "passSigningKey"
static

Keys that sign and check the .gpg-id files, separated by spaces. Text. Empty means the exported PASSWORD_STORE_SIGNING_KEY, and no signing when that is empty too.

Definition at line 128 of file settingsconstants.h.

◆ passStore

const QString SettingsConstants::passStore = "passStore"
static

Root folder of the password store. Path as text.

Definition at line 122 of file settingsconstants.h.

◆ passTemplate

const QString SettingsConstants::passTemplate = "passTemplate"
static

Field names of the entry template, one per line. Text.

Definition at line 258 of file settingsconstants.h.

◆ passwordChars

const QString SettingsConstants::passwordChars = "passwordChars"
static

The user's own alphabet for the CUSTOM character set. Text.

Definition at line 224 of file settingsconstants.h.

◆ passwordCharsSelection

const QString SettingsConstants::passwordCharsSelection
static
Initial value:
=
"passwordCharsselection"

Character set of the built-in generator, as a PasswordConfiguration::CharacterSet number. Integer, default 0 (ALLCHARS). The stored key is passwordCharsselection, with a lower-case s.

Definition at line 222 of file settingsconstants.h.

◆ passwordLength

const QString SettingsConstants::passwordLength = "passwordLength"
static

Length of a generated password. Integer, default 16; a value of 0 or less is read as 16.

Definition at line 215 of file settingsconstants.h.

◆ profile

const QString SettingsConstants::profile = "profile"
static

Name of the active profile, and also the group profile/<name>/ that holds each profile (path, signingKey, useGit, autoPush, autoPull). Text.

Definition at line 152 of file settingsconstants.h.

◆ pwgenExecutable

const QString SettingsConstants::pwgenExecutable = "pwgenExecutable"
static

Path of the pwgen program. Text.

Definition at line 141 of file settingsconstants.h.

◆ qrencodeExecutable

const QString SettingsConstants::qrencodeExecutable = "qrencodeExecutable"
static

Path of the qrencode program. Text.

Definition at line 191 of file settingsconstants.h.

◆ restoreClipboard

const QString SettingsConstants::restoreClipboard = "restoreClipboard"
static

When autoclear runs, put back what was on the clipboard before the copy. Boolean, default true.

Definition at line 66 of file settingsconstants.h.

◆ savestate

const QString SettingsConstants::savestate
static
Initial value:

Saved dock and toolbar state of the main window (mainwindow/savestate). Bytes from QMainWindow::saveState().

Definition at line 44 of file settingsconstants.h.

◆ secretFieldNames

const QString SettingsConstants::secretFieldNames = "secretFieldNames"
static

Field names that hideSecretFields masks. List of text; absent means AppSettings::defaultSecretFieldNames(), and a saved empty list stays empty.

Definition at line 91 of file settingsconstants.h.

◆ showMenuBar

const QString SettingsConstants::showMenuBar = "showMenuBar"
static

Show the menu bar. Boolean, default false.

Definition at line 272 of file settingsconstants.h.

◆ showProcessOutput

const QString SettingsConstants::showProcessOutput = "showProcessOutput"
static

Show the Process Output panel. Boolean, default false.

Definition at line 270 of file settingsconstants.h.

◆ sshAuthSockOverride

const QString SettingsConstants::sshAuthSockOverride = "sshAuthSockOverride"
static

Value for SSH_AUTH_SOCK that replaces the one found. Path as text, empty for none.

Definition at line 135 of file settingsconstants.h.

◆ startMinimized

const QString SettingsConstants::startMinimized = "startMinimized"
static

With useTrayIcon and a system tray present: start with the window hidden in the tray. Boolean, default false.

Definition at line 236 of file settingsconstants.h.

◆ templateAllFields

const QString SettingsConstants::templateAllFields = "templateAllFields"
static

With useTemplate: show every key: value line as a field, not only the template's. Boolean, default false.

Definition at line 268 of file settingsconstants.h.

◆ useAutoclear

const QString SettingsConstants::useAutoclear = "useAutoclear"
static

Clear the clipboard some time after a copy. Boolean, default false.

Definition at line 61 of file settingsconstants.h.

◆ useAutoclearPanel

const QString SettingsConstants::useAutoclearPanel = "useAutoclearPanel"
static

Clear the content panel some time after an entry is shown. Boolean, default false.

Definition at line 78 of file settingsconstants.h.

◆ useGit

const QString SettingsConstants::useGit = "useGit"
static

Use Git in the store. Boolean, default false; a profile can set its own value.

Definition at line 157 of file settingsconstants.h.

◆ useGrepSearch

const QString SettingsConstants::useGrepSearch = "useGrepSearch"
static

Offer the search in the content of entries. Boolean, default false.

Definition at line 162 of file settingsconstants.h.

◆ useMonospace

const QString SettingsConstants::useMonospace = "useMonospace"
static

Show the content in a monospace font. Boolean, default false.

Definition at line 105 of file settingsconstants.h.

◆ useOtp

const QString SettingsConstants::useOtp = "useOtp"
static

Show one-time codes for entries that hold an otpauth:// line. Boolean, default true.

Definition at line 167 of file settingsconstants.h.

◆ usePass

const QString SettingsConstants::usePass = "usePass"
static

Run the pass program (true) or call gpg and Git directly (false). Boolean, default false.

Definition at line 56 of file settingsconstants.h.

◆ usePwgen

const QString SettingsConstants::usePwgen = "usePwgen"
static

Generate passwords with the pwgen program, not with the built-in generator. Boolean, default false.

Definition at line 196 of file settingsconstants.h.

◆ useQrencode

const QString SettingsConstants::useQrencode = "useQrencode"
static

Offer QR codes made with the qrencode program. Boolean, default false.

Definition at line 189 of file settingsconstants.h.

◆ useSelection

const QString SettingsConstants::useSelection = "useSelection"
static

Copy to the X11 primary selection instead of the clipboard, where the platform has one. Boolean, default false.

Definition at line 71 of file settingsconstants.h.

◆ useSymbols

const QString SettingsConstants::useSymbols = "useSymbols"
static

pwgen: include symbols (--symbols). Boolean, default false.

Definition at line 210 of file settingsconstants.h.

◆ useTemplate

const QString SettingsConstants::useTemplate = "useTemplate"
static

Offer the template fields in the entry dialog. Boolean, default false.

Definition at line 263 of file settingsconstants.h.

◆ useTrayIcon

const QString SettingsConstants::useTrayIcon = "useTrayIcon"
static

Show an icon in the system tray. Boolean, default false.

Definition at line 226 of file settingsconstants.h.

◆ version

const QString SettingsConstants::version = "version"
static

Version of QtPass that last wrote the settings. Text.

Definition at line 29 of file settingsconstants.h.


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