QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
settingsconstants.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2016 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
7#ifndef SRC_SETTINGSCONSTANTS_H_
8#define SRC_SETTINGSCONSTANTS_H_
9
10#include <QString>
11
25public:
29 static const QString version;
34 static const QString groupMainwindow;
39 static const QString geometry;
44 static const QString savestate;
45
50 static const QString dialogGeometry;
51
56 static const QString usePass;
61 static const QString useAutoclear;
66 static const QString restoreClipboard;
71 static const QString useSelection;
73 static const QString autoclearSeconds;
78 static const QString useAutoclearPanel;
80 static const QString autoclearPanelSeconds;
85 static const QString hidePassword;
91 static const QString secretFieldNames;
96 static const QString hideSecretFields;
101 static const QString hideAllFields;
103 static const QString hideContent;
105 static const QString useMonospace;
110 static const QString displayAsIs;
115 static const QString noLineWrapping;
120 static const QString addGPGId;
122 static const QString passStore;
128 static const QString passSigningKey;
130 static const QString passExecutable;
135 static const QString sshAuthSockOverride;
137 static const QString gitExecutable;
139 static const QString gpgExecutable;
141 static const QString pwgenExecutable;
146 static const QString gpgHome;
152 static const QString profile;
157 static const QString useGit;
162 static const QString useGrepSearch;
167 static const QString useOtp;
175 static const QString otpMigratedToNative;
184 static const QString firstRunPending;
189 static const QString useQrencode;
191 static const QString qrencodeExecutable;
196 static const QString usePwgen;
201 static const QString avoidCapitals;
203 static const QString avoidNumbers;
208 static const QString lessRandom;
210 static const QString useSymbols;
215 static const QString passwordLength;
222 static const QString passwordCharsSelection;
224 static const QString passwordChars;
226 static const QString useTrayIcon;
231 static const QString hideOnClose;
236 static const QString startMinimized;
240 static const QString alwaysOnTop;
246 static const QString autoPull;
251 static const QString autoPush;
256 static const QString gitUseParentRepository;
258 static const QString passTemplate;
263 static const QString useTemplate;
268 static const QString templateAllFields;
270 static const QString showProcessOutput;
272 static const QString showMenuBar;
277 static const QString clipBoardType;
278
281};
282
283#endif // SRC_SETTINGSCONSTANTS_H_
static const QString savestate
Saved dock and toolbar state of the main window (mainwindow/savestate). Bytes from QMainWindow::saveS...
static const QString useSelection
Copy to the X11 primary selection instead of the clipboard, where the platform has one....
static const QString passExecutable
Path of the pass program. Text.
static const QString noLineWrapping
Do not wrap long lines in the content panel. Boolean, default false.
static const QString groupMainwindow
Name of the group that holds the main window keys; not a setting itself.
static const QString restoreClipboard
When autoclear runs, put back what was on the clipboard before the copy. Boolean, default true.
static const QString useGrepSearch
Offer the search in the content of entries. Boolean, default false.
static const QString autoPull
With Git in use: run git pull before an entry is edited and before entries are re-encrypted....
static const QString dialogGeometry
Prefix of the saved geometry of each dialog: the key is dialog/geometry/<dialog name>....
static const QString lessRandom
pwgen: passwords that are easier to remember; off adds --secure. Boolean, default false.
static const QString secretFieldNames
Field names that hideSecretFields masks. List of text; absent means AppSettings::defaultSecretFieldNa...
static const QString pwgenExecutable
Path of the pwgen program. Text.
static const QString geometry
Saved geometry of the main window (mainwindow/geometry). Bytes from QWidget::saveGeometry().
static const QString gpgHome
GnuPG home folder that takes the place of GNUPGHOME when it exists. Path as text, empty for none.
static const QString version
Version of QtPass that last wrote the settings. Text.
static const QString passTemplate
Field names of the entry template, one per line. Text.
static const QString showProcessOutput
Show the Process Output panel. Boolean, default false.
static const QString useAutoclear
Clear the clipboard some time after a copy. Boolean, default false.
static const QString clipBoardType
When a password goes to the clipboard, as an Enums::ClipBoardType number. Integer,...
static const QString autoclearPanelSeconds
Seconds until the content panel is cleared. Integer, default 0.
static const QString avoidNumbers
pwgen: no digits (--no-numerals). Boolean, default false.
static const QString useAutoclearPanel
Clear the content panel some time after an entry is shown. Boolean, default false.
static const QString firstRunPending
Set on a fresh install until QtPass is first set up: the first-run wizard finished,...
static const QString gitUseParentRepository
Let Git use a repository in a folder above the store when the store has none of its own....
static const QString usePass
Run the pass program (true) or call gpg and Git directly (false). Boolean, default false.
static const QString hideOnClose
With a tray icon: closing the window hides it to the tray and QtPass keeps running....
static const QString alwaysOnTop
Keep the main window above other windows. Boolean, default false.
static const QString useGit
Use Git in the store. Boolean, default false; a profile can set its own value.
static const QString gitExecutable
Path of the git program. Text.
static const QString gpgExecutable
Path of the gpg or gpg2 program. Text.
static const QString profile
Name of the active profile, and also the group profile/<name>/ that holds each profile (path,...
static const QString hideSecretFields
With hidePassword: mask the fields named in secretFieldNames too. Boolean, default true.
static const QString hideAllFields
With hidePassword: mask every field, not only the secret ones. Boolean, default false.
static const QString useTrayIcon
Show an icon in the system tray. Boolean, default false.
static const QString passwordCharsSelection
Character set of the built-in generator, as a PasswordConfiguration::CharacterSet number....
static const QString useOtp
Show one-time codes for entries that hold an otpauth:// line. Boolean, default true.
static const QString startMinimized
With useTrayIcon and a system tray present: start with the window hidden in the tray....
static const QString hideContent
Show no content of an entry at all. Boolean, default false.
static const QString avoidCapitals
pwgen: no capital letters (--no-capitalize). Boolean, default false.
static const QString autoclearSeconds
Seconds until the clipboard is cleared. Integer, default 0.
static const QString usePwgen
Generate passwords with the pwgen program, not with the built-in generator. Boolean,...
static const QString useMonospace
Show the content in a monospace font. Boolean, default false.
static const QString passwordLength
Length of a generated password. Integer, default 16; a value of 0 or less is read as 16.
static const QString qrencodeExecutable
Path of the qrencode program. Text.
static const QString passStore
Root folder of the password store. Path as text.
static const QString passwordChars
The user's own alphabet for the CUSTOM character set. Text.
static const QString displayAsIs
Show the file content as it is, without splitting it into fields. Boolean, default false.
static const QString sshAuthSockOverride
Value for SSH_AUTH_SOCK that replaces the one found. Path as text, empty for none.
static const QString useSymbols
pwgen: include symbols (--symbols). Boolean, default false.
static const QString passSigningKey
Keys that sign and check the .gpg-id files, separated by spaces. Text. Empty means the exported PASSW...
SettingsConstants()=delete
Not for instantiation: the class only holds constants.
static const QString templateAllFields
With useTemplate: show every key: value line as a field, not only the template's. Boolean,...
static const QString addGPGId
With Git in use: add a changed .gpg-id file to Git. Boolean, default true.
static const QString showMenuBar
Show the menu bar. Boolean, default false.
static const QString useQrencode
Offer QR codes made with the qrencode program. Boolean, default false.
static const QString useTemplate
Offer the template fields in the entry dialog. Boolean, default false.
static const QString autoPush
Run git push after each change. Boolean, default false; a profile can set its own value.
static const QString otpMigratedToNative
Marker that the one-time useOtp migration has run.
static const QString hidePassword
Mask the password line in the content panel. Boolean, default false.