QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
|
Imitates pass features when pass is not enabled or available. More...
#include <imitatepass.h>
Signals | |
void | startReencryptPath () |
void | endReencryptPath () |
Signals inherited from Pass | |
void | error (QProcess::ProcessError) |
void | startingExecuteWrapper () |
void | statusMsg (QString, int) |
void | critical (QString, QString) |
void | processErrorExit (int exitCode, const QString &err) |
void | finishedAny (const QString &, const QString &) |
void | finishedGitInit (const QString &, const QString &) |
void | finishedGitPull (const QString &, const QString &) |
void | finishedGitPush (const QString &, const QString &) |
void | finishedShow (const QString &) |
void | finishedOtpGenerate (const QString &) |
void | finishedInsert (const QString &, const QString &) |
void | finishedRemove (const QString &, const QString &) |
void | finishedInit (const QString &, const QString &) |
void | finishedMove (const QString &, const QString &) |
void | finishedCopy (const QString &, const QString &) |
void | finishedGenerate (const QString &, const QString &) |
void | finishedGenerateGPGKeys (const QString &, const QString &) |
Public Member Functions | |
ImitatePass () | |
ImitatePass::ImitatePass for situaions when pass is not available we imitate the behavior of pass https://www.passwordstore.org/. | |
virtual | ~ImitatePass () |
virtual void | GitInit () Q_DECL_OVERRIDE |
ImitatePass::GitInit git init wrapper. | |
virtual void | GitPull () Q_DECL_OVERRIDE |
ImitatePass::GitPull git init wrapper. | |
virtual void | GitPull_b () Q_DECL_OVERRIDE |
ImitatePass::GitPull_b git pull wrapper. | |
virtual void | GitPush () Q_DECL_OVERRIDE |
ImitatePass::GitPush git init wrapper. | |
virtual void | Show (QString file) Q_DECL_OVERRIDE |
ImitatePass::Show shows content of file. | |
virtual void | OtpGenerate (QString file) Q_DECL_OVERRIDE |
ImitatePass::OtpGenerate generates an otp code. | |
virtual void | Insert (QString file, QString newValue, bool overwrite=false) Q_DECL_OVERRIDE |
ImitatePass::Insert create new file with encrypted content. | |
virtual void | Remove (QString file, bool isDir=false) Q_DECL_OVERRIDE |
ImitatePass::Remove custom implementation of "pass remove". | |
virtual void | Init (QString path, const QList< UserInfo > &users) Q_DECL_OVERRIDE |
ImitatePass::Init initialize pass repository. | |
void | reencryptPath (const QString &dir) |
ImitatePass::reencryptPath reencrypt all files under the chosen directory. | |
void | Move (const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE |
void | Copy (const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE |
Public Member Functions inherited from Pass | |
Pass () | |
Pass::Pass wrapper for using either pass or the pass imitation. | |
void | init () |
virtual | ~Pass () |
virtual void | GitInit ()=0 |
virtual void | GitPull ()=0 |
virtual void | GitPull_b ()=0 |
virtual void | GitPush ()=0 |
virtual void | Show (QString file)=0 |
virtual void | OtpGenerate (QString file)=0 |
virtual void | Insert (QString file, QString value, bool force)=0 |
virtual void | Remove (QString file, bool isDir)=0 |
virtual void | Move (const QString srcDir, const QString dest, const bool force=false)=0 |
virtual void | Copy (const QString srcDir, const QString dest, const bool force=false)=0 |
virtual void | Init (QString path, const QList< UserInfo > &users)=0 |
virtual QString | Generate_b (unsigned int length, const QString &charset) |
Pass::Generate use either pwgen or internal password generator. | |
void | GenerateGPGKeys (QString batch) |
Pass::GenerateGPGKeys internal gpg keypair generator . . | |
QList< UserInfo > | listKeys (QStringList keystrings, bool secret=false) |
Pass::listKeys list users. | |
QList< UserInfo > | listKeys (QString keystring="", bool secret=false) |
Pass::listKeys list users. | |
void | updateEnv () |
Pass::updateEnv update the execution environment (used when switching profiles) | |
Protected Member Functions | |
virtual void | finished (int id, int exitCode, const QString &out, const QString &err) Q_DECL_OVERRIDE |
ImitatePass::finished this function is overloaded to ensure identical behaviour to RealPass ie. only PASS_* processes are visible inside Pass::finish, so that interface-wise it all looks the same. | |
virtual void | executeWrapper (PROCESS id, const QString &app, const QStringList &args, QString input, bool readStdout=true, bool readStderr=true) Q_DECL_OVERRIDE |
executeWrapper overrided so that every execution is a transaction | |
Protected Member Functions inherited from Pass | |
void | executeWrapper (PROCESS id, const QString &app, const QStringList &args, bool readStdout=true, bool readStderr=true) |
QString | generateRandomPassword (const QString &charset, unsigned int length) |
quint32 | boundedRandom (quint32 bound) |
virtual void | executeWrapper (PROCESS id, const QString &app, const QStringList &args, QString input, bool readStdout=true, bool readStderr=true) |
Additional Inherited Members | |
Static Public Member Functions inherited from Pass | |
static QString | getGpgIdPath (QString for_file) |
Pass::getGpgIdPath return gpgid file path for some file (folder). | |
static QStringList | getRecipientList (QString for_file) |
Pass::getRecipientList return list of gpg-id's to encrypt for. | |
static QStringList | getRecipientString (QString for_file, QString separator=" ", int *count=NULL) |
Pass::getRecipientString formated string for use with GPG. | |
Protected Types inherited from Pass | |
typedef Enums::PROCESS | PROCESS |
Protected Slots inherited from Pass | |
virtual void | finished (int id, int exitCode, const QString &out, const QString &err) |
Pass::processFinished reemits specific signal based on what process has finished. | |
Protected Attributes inherited from Pass | |
Executor | exec |
Imitates pass features when pass is not enabled or available.
Definition at line 11 of file imitatepass.h.
|
default |
ImitatePass::ImitatePass for situaions when pass is not available we imitate the behavior of pass https://www.passwordstore.org/.
|
inlinevirtual |
Definition at line 49 of file imitatepass.h.
|
virtual |
Implements Pass.
Definition at line 524 of file imitatepass.cpp.
|
signal |
|
protectedvirtual |
executeWrapper overrided so that every execution is a transaction
id | |
app | |
args | |
input | |
readStdout | |
readStderr |
Reimplemented from Pass.
Definition at line 623 of file imitatepass.cpp.
|
protectedvirtual |
ImitatePass::finished this function is overloaded to ensure identical behaviour to RealPass ie. only PASS_* processes are visible inside Pass::finish, so that interface-wise it all looks the same.
id | |
exitCode | |
out | |
err |
Reimplemented from Pass.
Definition at line 585 of file imitatepass.cpp.
|
virtual |
ImitatePass::GitInit git init wrapper.
Implements Pass.
Definition at line 37 of file imitatepass.cpp.
|
virtual |
ImitatePass::GitPull git init wrapper.
Implements Pass.
Definition at line 44 of file imitatepass.cpp.
|
virtual |
ImitatePass::GitPull_b git pull wrapper.
Implements Pass.
Definition at line 49 of file imitatepass.cpp.
|
virtual |
ImitatePass::GitPush git init wrapper.
Implements Pass.
Definition at line 56 of file imitatepass.cpp.
|
virtual |
ImitatePass::Init initialize pass repository.
path | path in which new password-store will be created |
users | list of users who shall be able to decrypt passwords in path |
Implements Pass.
Definition at line 171 of file imitatepass.cpp.
|
virtual |
ImitatePass::Insert create new file with encrypted content.
file | file to be created |
newValue | value to be stored in file |
overwrite | whether to overwrite existing file |
Implements Pass.
Definition at line 91 of file imitatepass.cpp.
|
virtual |
Implements Pass.
Definition at line 449 of file imitatepass.cpp.
|
virtual |
ImitatePass::OtpGenerate generates an otp code.
Implements Pass.
Definition at line 75 of file imitatepass.cpp.
void ImitatePass::reencryptPath | ( | const QString & | dir | ) |
ImitatePass::reencryptPath reencrypt all files under the chosen directory.
This is stil quite experimental..
dir |
Definition at line 334 of file imitatepass.cpp.
|
virtual |
ImitatePass::Remove custom implementation of "pass remove".
Implements Pass.
Definition at line 145 of file imitatepass.cpp.
|
virtual |
ImitatePass::Show shows content of file.
Implements Pass.
Definition at line 65 of file imitatepass.cpp.
|
signal |