 |
QtPass
1.3.3
Multi-platform GUI for pass, the standard unix password manager.
|
Go to the documentation of this file. 1 #ifndef QTPASSSETTINGS_H
2 #define QTPASSSETTINGS_H
25 QtPassSettings(
const QString &organization,
const QSettings::Format format)
26 : QSettings(organization, format) {}
27 QtPassSettings(
const QString &organization,
const QString &application)
28 : QSettings(organization, application) {}
32 static bool initialized;
36 static QScopedPointer<RealPass> realPass;
37 static QScopedPointer<ImitatePass> imitatePass;
43 getVersion(
const QString &defaultValue = QVariant().toString());
44 static void setVersion(
const QString &version);
47 getGeometry(
const QByteArray &defaultValue = QVariant().toByteArray());
48 static void setGeometry(
const QByteArray &geometry);
51 getSavestate(
const QByteArray &defaultValue = QVariant().toByteArray());
54 static QPoint
getPos(
const QPoint &defaultValue = QVariant().toPoint());
55 static void setPos(
const QPoint &pos);
57 static QSize
getSize(
const QSize &defaultValue = QVariant().toSize());
58 static void setSize(
const QSize &size);
60 static bool isMaximized(
const bool &defaultValue = QVariant().toBool());
63 static bool isUsePass(
const bool &defaultValue = QVariant().toBool());
72 static bool isUseSelection(
const bool &defaultValue = QVariant().toBool());
75 static bool isUseAutoclear(
const bool &defaultValue = QVariant().toBool());
89 static bool isHidePassword(
const bool &defaultValue = QVariant().toBool());
92 static bool isHideContent(
const bool &defaultValue = QVariant().toBool());
95 static bool isAddGPGId(
const bool &defaultValue = QVariant().toBool());
99 getPassStore(
const QString &defaultValue = QVariant().toString());
120 getGpgHome(
const QString &defaultValue = QVariant().toString());
122 static bool isUseWebDav(
const bool &defaultValue = QVariant().toBool());
126 getWebDavUrl(
const QString &defaultValue = QVariant().toString());
130 getWebDavUser(
const QString &defaultValue = QVariant().toString());
138 getProfile(
const QString &defaultValue = QVariant().toString());
139 static void setProfile(
const QString &profile);
141 static bool isUseGit(
const bool &defaultValue = QVariant().toBool());
142 static void setUseGit(
const bool &useGit);
144 static bool isUseOtp(
const bool &defaultValue = QVariant().toBool());
145 static void setUseOtp(
const bool &useOtp);
147 static bool isUseQrencode(
const bool &defaultValue = QVariant().toBool());
154 static bool isUsePwgen(
const bool &defaultValue = QVariant().toBool());
157 static bool isAvoidCapitals(
const bool &defaultValue = QVariant().toBool());
160 static bool isAvoidNumbers(
const bool &defaultValue = QVariant().toBool());
163 static bool isLessRandom(
const bool &defaultValue = QVariant().toBool());
166 static bool isUseSymbols(
const bool &defaultValue = QVariant().toBool());
175 static bool isUseTrayIcon(
const bool &defaultValue = QVariant().toBool());
178 static bool isHideOnClose(
const bool &defaultValue = QVariant().toBool());
181 static bool isStartMinimized(
const bool &defaultValue = QVariant().toBool());
184 static bool isAlwaysOnTop(
const bool &defaultValue = QVariant().toBool());
187 static bool isAutoPull(
const bool &defaultValue = QVariant().toBool());
190 static bool isAutoPush(
const bool &defaultValue = QVariant().toBool());
197 static bool isUseTemplate(
const bool &defaultValue = QVariant().toBool());
205 static void setProfiles(
const QHash<QString, QString> &profiles);
212 #endif // QTPASSSETTINGS_H
static QString getGitExecutable(const QString &defaultValue=QVariant().toString())
static int getClipBoardTypeRaw(const Enums::clipBoardType &defaultvalue=Enums::CLIPBOARD_NEVER)
static QString getQrencodeExecutable(const QString &defaultValue=QVariant().toString())
static void setUseSymbols(const bool &useSymbols)
static void setStartMinimized(const bool &startMinimized)
static void setAutoclearSeconds(const int &autoClearSeconds)
static bool isLessRandom(const bool &defaultValue=QVariant().toBool())
static void setUsePass(const bool &usePass)
static QString getPwgenExecutable(const QString &defaultValue=QVariant().toString())
static QSize getSize(const QSize &defaultValue=QVariant().toSize())
Singleton that stores qtpass' settings, saves and loads config.
static bool isHideOnClose(const bool &defaultValue=QVariant().toBool())
static QPoint getPos(const QPoint &defaultValue=QVariant().toPoint())
static QString getVersion(const QString &defaultValue=QVariant().toString())
static QString getPassTemplate(const QString &defaultValue=QVariant().toString())
static bool isUseTrayIcon(const bool &defaultValue=QVariant().toBool())
static QString getGpgExecutable(const QString &defaultValue=QVariant().toString())
static QString getPassExecutable(const QString &defaultValue=QVariant().toString())
static PasswordConfiguration getPasswordConfiguration()
static bool isMaximized(const bool &defaultValue=QVariant().toBool())
static void initExecutables()
static bool isUsePwgen(const bool &defaultValue=QVariant().toBool())
static ImitatePass * getImitatePass()
static void setUsePwgen(const bool &usePwgen)
static bool isUseAutoclearPanel(const bool &defaultValue=QVariant().toBool())
static QtPassSettings * getInstance()
static void setSavestate(const QByteArray &saveState)
static void setWebDavUrl(const QString &webDavUrl)
static void setUseTrayIcon(const bool &useTrayIcon)
static void setAvoidCapitals(const bool &avoidCapitals)
static bool isAddGPGId(const bool &defaultValue=QVariant().toBool())
static void setVersion(const QString &version)
static bool isTemplateAllFields(const bool &defaultValue=QVariant().toBool())
static void setPasswordCharsselection(const int &passwordCharsselection)
static bool isAutoPush(const bool &defaultValue=QVariant().toBool())
static QString getWebDavPassword(const QString &defaultValue=QVariant().toString())
static void setHideOnClose(const bool &hideOnClose)
static void setUseSelection(const bool &useSelection)
static void setTemplateAllFields(const bool &templateAllFields)
static bool isUsePass(const bool &defaultValue=QVariant().toBool())
static void setUseAutoclearPanel(const bool &useAutoclearPanel)
static void setMaximized(const bool &maximized)
static void setProfiles(const QHash< QString, QString > &profiles)
static bool isStartMinimized(const bool &defaultValue=QVariant().toBool())
static bool isHideContent(const bool &defaultValue=QVariant().toBool())
static void setClipBoardType(const int &clipBoardType)
static QString getWebDavUrl(const QString &defaultValue=QVariant().toString())
static void setHidePassword(const bool &hidePassword)
static QString getProfile(const QString &defaultValue=QVariant().toString())
static void setAddGPGId(const bool &addGPGId)
static void setWebDavPassword(const QString &webDavPassword)
static bool isUseTemplate(const bool &defaultValue=QVariant().toBool())
static QString getGpgHome(const QString &defaultValue=QVariant().toString())
static void setAutoPush(const bool &autoPush)
static QByteArray getGeometry(const QByteArray &defaultValue=QVariant().toByteArray())
static bool isUseGit(const bool &defaultValue=QVariant().toBool())
static void setUseTemplate(const bool &useTemplate)
static bool isAutoPull(const bool &defaultValue=QVariant().toBool())
static void setAlwaysOnTop(const bool &alwaysOnTop)
static void setPwgenExecutable(const QString &pwgenExecutable)
static bool isUseQrencode(const bool &defaultValue=QVariant().toBool())
static bool isAvoidCapitals(const bool &defaultValue=QVariant().toBool())
static void setGeometry(const QByteArray &geometry)
static Enums::clipBoardType getClipBoardType(const Enums::clipBoardType &defaultvalue=Enums::CLIPBOARD_NEVER)
static void setPos(const QPoint &pos)
static bool isAvoidNumbers(const bool &defaultValue=QVariant().toBool())
static void setSize(const QSize &size)
static void setPasswordConfiguration(const PasswordConfiguration &config)
static int getAutoclearPanelSeconds(const int &defaultValue=QVariant().toInt())
static void setPassExecutable(const QString &passExecutable)
static void setUseWebDav(const bool &useWebDav)
static void setHideContent(const bool &hideContent)
static void setGitExecutable(const QString &gitExecutable)
static void setAutoPull(const bool &autoPull)
static void setQrencodeExecutable(const QString &qrencodeExecutable)
static bool isUseSymbols(const bool &defaultValue=QVariant().toBool())
static void setPassStore(const QString &passStore)
static bool isUseSelection(const bool &defaultValue=QVariant().toBool())
static void setUseOtp(const bool &useOtp)
static void setPassTemplate(const QString &passTemplate)
static bool isUseAutoclear(const bool &defaultValue=QVariant().toBool())
Holds the Password configuration settings.
static QByteArray getSavestate(const QByteArray &defaultValue=QVariant().toByteArray())
static void setProfile(const QString &profile)
static QHash< QString, QString > getProfiles()
static int getAutoclearSeconds(const int &defaultValue=QVariant().toInt())
Wrapper for executing pass to handle the password-store.
static void setLessRandom(const bool &lessRandom)
static void setUseQrencode(const bool &useQrencode)
static void setUseGit(const bool &useGit)
Acts as an abstraction for pass or pass imitation.
static void setWebDavUser(const QString &webDavUser)
static bool isUseOtp(const bool &defaultValue=QVariant().toBool())
static void setUseAutoclear(const bool &useAutoclear)
static void setPasswordChars(const QString &passwordChars)
static QString getPassStore(const QString &defaultValue=QVariant().toString())
static void setAvoidNumbers(const bool &avoidNumbers)
static void setPasswordLength(const int &passwordLength)
static bool isUseWebDav(const bool &defaultValue=QVariant().toBool())
static bool isHidePassword(const bool &defaultValue=QVariant().toBool())
Imitates pass features when pass is not enabled or available.
static bool isAlwaysOnTop(const bool &defaultValue=QVariant().toBool())
static RealPass * getRealPass()
static void setGpgExecutable(const QString &gpgExecutable)
static QString getWebDavUser(const QString &defaultValue=QVariant().toString())
static void setAutoclearPanelSeconds(const int &autoClearPanelSeconds)