3#ifndef SRC_QTPASSSETTINGS_H_
4#define SRC_QTPASSSETTINGS_H_
27 QtPassSettings(
const QString &organization,
const QSettings::Format format)
28 : QSettings(organization, format) {}
29 QtPassSettings(
const QString &organization,
const QString &application)
30 : QSettings(organization, application) {}
34 static bool initialized;
38 static QScopedPointer<RealPass> realPass;
39 static QScopedPointer<ImitatePass> imitatePass;
44 static auto getVersion(
const QString &defaultValue = QVariant().toString())
46 static void setVersion(
const QString &version);
49 getGeometry(
const QByteArray &defaultValue = QVariant().toByteArray())
51 static void setGeometry(
const QByteArray &geometry);
54 getSavestate(
const QByteArray &defaultValue = QVariant().toByteArray())
58 static auto getPos(
const QPoint &defaultValue = QVariant().toPoint())
60 static void setPos(
const QPoint &pos);
62 static auto getSize(
const QSize &defaultValue = QVariant().toSize()) -> QSize;
63 static void setSize(
const QSize &size);
65 static auto isMaximized(
const bool &defaultValue = QVariant().toBool())
69 static auto isUsePass(
const bool &defaultValue = QVariant().toBool()) -> bool;
79 static auto isUseSelection(
const bool &defaultValue = QVariant().toBool())
83 static auto isUseAutoclear(
const bool &defaultValue = QVariant().toBool())
99 static auto isHidePassword(
const bool &defaultValue = QVariant().toBool())
103 static auto isHideContent(
const bool &defaultValue = QVariant().toBool())
107 static auto isUseMonospace(
const bool &defaultValue = QVariant().toBool())
111 static auto isDisplayAsIs(
const bool &defaultValue = QVariant().toBool())
115 static auto isNoLineWrapping(
const bool &defaultValue = QVariant().toBool())
119 static auto isAddGPGId(
const bool &defaultValue = QVariant().toBool())
123 static auto getPassStore(
const QString &defaultValue = QVariant().toString())
153 static auto getGpgHome(
const QString &defaultValue = QVariant().toString())
156 static auto isUseWebDav(
const bool &defaultValue = QVariant().toBool())
160 static auto getWebDavUrl(
const QString &defaultValue = QVariant().toString())
164 static auto getWebDavUser(
const QString &defaultValue = QVariant().toString())
173 static auto getProfile(
const QString &defaultValue = QVariant().toString())
175 static void setProfile(
const QString &profile);
177 static auto isUseGit(
const bool &defaultValue = QVariant().toBool()) -> bool;
178 static void setUseGit(
const bool &useGit);
180 static auto isUseOtp(
const bool &defaultValue = QVariant().toBool()) -> bool;
181 static void setUseOtp(
const bool &useOtp);
183 static auto isUseQrencode(
const bool &defaultValue = QVariant().toBool())
192 static auto isUsePwgen(
const bool &defaultValue = QVariant().toBool())
196 static auto isAvoidCapitals(
const bool &defaultValue = QVariant().toBool())
200 static auto isAvoidNumbers(
const bool &defaultValue = QVariant().toBool())
204 static auto isLessRandom(
const bool &defaultValue = QVariant().toBool())
208 static auto isUseSymbols(
const bool &defaultValue = QVariant().toBool())
218 static auto isUseTrayIcon(
const bool &defaultValue = QVariant().toBool())
222 static auto isHideOnClose(
const bool &defaultValue = QVariant().toBool())
226 static auto isStartMinimized(
const bool &defaultValue = QVariant().toBool())
230 static auto isAlwaysOnTop(
const bool &defaultValue = QVariant().toBool())
234 static auto isAutoPull(
const bool &defaultValue = QVariant().toBool())
238 static auto isAutoPush(
const bool &defaultValue = QVariant().toBool())
247 static auto isUseTemplate(
const bool &defaultValue = QVariant().toBool())
255 static auto getProfiles() -> QHash<QString, QHash<QString, QString>>;
257 setProfiles(
const QHash<QString, QHash<QString, QString>> &profiles);
Imitates pass features when pass is not enabled or available.
Acts as an abstraction for pass or pass imitation.
Singleton that stores qtpass' settings, saves and loads config.
static auto isUseSelection(const bool &defaultValue=QVariant().toBool()) -> bool
static void setMaximized(const bool &maximized)
static void setStartMinimized(const bool &startMinimized)
static void setUseWebDav(const bool &useWebDav)
static auto isUseAutoclear(const bool &defaultValue=QVariant().toBool()) -> bool
static void setAutoclearPanelSeconds(const int &autoClearPanelSeconds)
static void setPassExecutable(const QString &passExecutable)
static auto getWebDavPassword(const QString &defaultValue=QVariant().toString()) -> QString
static auto isStartMinimized(const bool &defaultValue=QVariant().toBool()) -> bool
static auto getClipBoardTypeRaw(const Enums::clipBoardType &defaultvalue=Enums::CLIPBOARD_NEVER) -> int
static void setHidePassword(const bool &hidePassword)
static auto isUseOtp(const bool &defaultValue=QVariant().toBool()) -> bool
static void setPwgenExecutable(const QString &pwgenExecutable)
static auto getPwgenExecutable(const QString &defaultValue=QVariant().toString()) -> QString
static void setProfile(const QString &profile)
static void setUseTrayIcon(const bool &useTrayIcon)
static void setWebDavPassword(const QString &webDavPassword)
static auto getInstance() -> QtPassSettings *
static auto isNoLineWrapping(const bool &defaultValue=QVariant().toBool()) -> bool
static auto getWebDavUser(const QString &defaultValue=QVariant().toString()) -> QString
static void setPassStore(const QString &passStore)
static auto isHideContent(const bool &defaultValue=QVariant().toBool()) -> bool
static void setPasswordConfiguration(const PasswordConfiguration &config)
static auto getSize(const QSize &defaultValue=QVariant().toSize()) -> QSize
static void setHideOnClose(const bool &hideOnClose)
static auto getPass() -> Pass *
static auto getPasswordConfiguration() -> PasswordConfiguration
static auto getGpgHome(const QString &defaultValue=QVariant().toString()) -> QString
static auto isUseQrencode(const bool &defaultValue=QVariant().toBool()) -> bool
static void setPasswordLength(const int &passwordLength)
static auto isUseAutoclearPanel(const bool &defaultValue=QVariant().toBool()) -> bool
static auto isAutoPull(const bool &defaultValue=QVariant().toBool()) -> bool
static void setGitExecutable(const QString &gitExecutable)
static void setPasswordChars(const QString &passwordChars)
static auto isUseGit(const bool &defaultValue=QVariant().toBool()) -> bool
static void setUseOtp(const bool &useOtp)
static void setProfiles(const QHash< QString, QHash< QString, QString > > &profiles)
static void setUsePwgen(const bool &usePwgen)
static auto isTemplateAllFields(const bool &defaultValue=QVariant().toBool()) -> bool
static void setPassSigningKey(const QString &passSigningKey)
static auto isUsePass(const bool &defaultValue=QVariant().toBool()) -> bool
static auto getPassStore(const QString &defaultValue=QVariant().toString()) -> QString
static auto getVersion(const QString &defaultValue=QVariant().toString()) -> QString
static void setPasswordCharsselection(const int &passwordCharsselection)
static auto isUseTemplate(const bool &defaultValue=QVariant().toBool()) -> bool
static auto isUseTrayIcon(const bool &defaultValue=QVariant().toBool()) -> bool
static void initExecutables()
static void setUseTemplate(const bool &useTemplate)
static auto isAvoidCapitals(const bool &defaultValue=QVariant().toBool()) -> bool
static auto isAddGPGId(const bool &defaultValue=QVariant().toBool()) -> bool
static auto getGpgExecutable(const QString &defaultValue=QVariant().toString()) -> QString
static void setAutoPull(const bool &autoPull)
static auto getPassSigningKey(const QString &defaultValue=QVariant().toString()) -> QString
static void setPassTemplate(const QString &passTemplate)
static auto isUseSymbols(const bool &defaultValue=QVariant().toBool()) -> bool
static auto getQrencodeExecutable(const QString &defaultValue=QVariant().toString()) -> QString
static void setGpgExecutable(const QString &gpgExecutable)
static void setPos(const QPoint &pos)
static void setVersion(const QString &version)
static void setUseAutoclear(const bool &useAutoclear)
static auto getRealPass() -> RealPass *
static auto isLessRandom(const bool &defaultValue=QVariant().toBool()) -> bool
static void setAlwaysOnTop(const bool &alwaysOnTop)
static auto getPassTemplate(const QString &defaultValue=QVariant().toString()) -> QString
static void setWebDavUser(const QString &webDavUser)
static void setDisplayAsIs(const bool &displayAsIs)
static auto getClipBoardType(const Enums::clipBoardType &defaultvalue=Enums::CLIPBOARD_NEVER) -> Enums::clipBoardType
static auto isMaximized(const bool &defaultValue=QVariant().toBool()) -> bool
static void setUseMonospace(const bool &useMonospace)
static void setAvoidCapitals(const bool &avoidCapitals)
static void setQrencodeExecutable(const QString &qrencodeExecutable)
static void setWebDavUrl(const QString &webDavUrl)
static auto getProfile(const QString &defaultValue=QVariant().toString()) -> QString
static auto getWebDavUrl(const QString &defaultValue=QVariant().toString()) -> QString
static auto isUseMonospace(const bool &defaultValue=QVariant().toBool()) -> bool
static void setAddGPGId(const bool &addGPGId)
static void setUsePass(const bool &usePass)
static auto isUseWebDav(const bool &defaultValue=QVariant().toBool()) -> bool
static auto getAutoclearPanelSeconds(const int &defaultValue=QVariant().toInt()) -> int
static auto isUsePwgen(const bool &defaultValue=QVariant().toBool()) -> bool
static void setSavestate(const QByteArray &saveState)
static auto isAlwaysOnTop(const bool &defaultValue=QVariant().toBool()) -> bool
static auto isAvoidNumbers(const bool &defaultValue=QVariant().toBool()) -> bool
static auto isHidePassword(const bool &defaultValue=QVariant().toBool()) -> bool
static auto getPassExecutable(const QString &defaultValue=QVariant().toString()) -> QString
static void setUseAutoclearPanel(const bool &useAutoclearPanel)
static void setAutoclearSeconds(const int &autoClearSeconds)
static void setNoLineWrapping(const bool &noLineWrapping)
static void setUseQrencode(const bool &useQrencode)
static auto getPos(const QPoint &defaultValue=QVariant().toPoint()) -> QPoint
static void setAvoidNumbers(const bool &avoidNumbers)
static auto getImitatePass() -> ImitatePass *
static auto isHideOnClose(const bool &defaultValue=QVariant().toBool()) -> bool
static void setAutoPush(const bool &autoPush)
static void setClipBoardType(const int &clipBoardType)
static auto getProfiles() -> QHash< QString, QHash< QString, QString > >
static void setSize(const QSize &size)
static void setLessRandom(const bool &lessRandom)
static auto getAutoclearSeconds(const int &defaultValue=QVariant().toInt()) -> int
static void setHideContent(const bool &hideContent)
static auto isAutoPush(const bool &defaultValue=QVariant().toBool()) -> bool
static void setGeometry(const QByteArray &geometry)
static void setUseSelection(const bool &useSelection)
static auto getGitExecutable(const QString &defaultValue=QVariant().toString()) -> QString
static void setTemplateAllFields(const bool &templateAllFields)
static auto getGeometry(const QByteArray &defaultValue=QVariant().toByteArray()) -> QByteArray
static void setUseSymbols(const bool &useSymbols)
static auto isDisplayAsIs(const bool &defaultValue=QVariant().toBool()) -> bool
static void setUseGit(const bool &useGit)
static auto getSavestate(const QByteArray &defaultValue=QVariant().toByteArray()) -> QByteArray
Wrapper for executing pass to handle the password-store.
Holds the Password configuration settings.