14 bool verifyGpgIdFile(
const QString &file);
15 bool removeDir(
const QString &dirName);
17 void GitCommit(
const QString &file,
const QString &msg);
19 void executeGit(
PROCESS id,
const QStringList &args,
20 QString input = QString(),
bool readStdout =
true,
21 bool readStderr =
true);
22 void executeGpg(
PROCESS id,
const QStringList &args,
23 QString input = QString(),
bool readStdout =
true,
24 bool readStderr =
true);
26 class transactionHelper {
32 : m_transaction(trans), m_result(result) {
39 virtual void finished(
int id,
int exitCode,
const QString &out,
40 const QString &err) Q_DECL_OVERRIDE;
43 const QStringList &args, QString input,
44 bool readStdout =
true,
45 bool readStderr =
true) Q_DECL_OVERRIDE;
50 virtual void GitInit() Q_DECL_OVERRIDE;
51 virtual
void GitPull() Q_DECL_OVERRIDE;
53 virtual
void GitPush() Q_DECL_OVERRIDE;
54 virtual
void Show(QString file) Q_DECL_OVERRIDE;
55 virtual
void OtpGenerate(QString file) Q_DECL_OVERRIDE;
56 virtual
void Insert(QString file, QString newValue,
57 bool overwrite = false) Q_DECL_OVERRIDE;
58 virtual
void Remove(QString file,
bool isDir = false) Q_DECL_OVERRIDE;
59 virtual
void Init(QString path, const QList<
UserInfo> &users) Q_DECL_OVERRIDE;
68 void Move(const QString src, const QString dest,
69 const
bool force = false) Q_DECL_OVERRIDE;
70 void Copy(const QString src, const QString dest,
71 const
bool force = false) Q_DECL_OVERRIDE;
Imitates pass features when pass is not enabled or available.
virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE
ImitatePass::OtpGenerate generates an otp code.
virtual void Show(QString file) Q_DECL_OVERRIDE
ImitatePass::Show shows content of file.
ImitatePass()
ImitatePass::ImitatePass for situaions when pass is not available we imitate the behavior of pass htt...
virtual void GitPush() Q_DECL_OVERRIDE
ImitatePass::GitPush git init wrapper.
void Copy(const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
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
virtual void GitInit() Q_DECL_OVERRIDE
ImitatePass::GitInit git init wrapper.
virtual void GitPull_b() Q_DECL_OVERRIDE
ImitatePass::GitPull_b git pull wrapper.
virtual void Insert(QString file, QString newValue, bool overwrite=false) Q_DECL_OVERRIDE
ImitatePass::Insert create new file with encrypted content.
virtual void GitPull() Q_DECL_OVERRIDE
ImitatePass::GitPull git init wrapper.
virtual void Remove(QString file, bool isDir=false) Q_DECL_OVERRIDE
ImitatePass::Remove custom implementation of "pass remove".
void Move(const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
virtual void Init(QString path, const QList< UserInfo > &users) Q_DECL_OVERRIDE
ImitatePass::Init initialize pass repository.
void startReencryptPath()
void reencryptPath(const QString &dir)
ImitatePass::reencryptPath reencrypt all files under the chosen directory.
Acts as an abstraction for pass or pass imitation.
virtual void finished(int id, int exitCode, const QString &out, const QString &err)
Pass::processFinished reemits specific signal based on what process has finished.
void transactionEnd(Enums::PROCESS)
transactionEnd marks end of transaction
void transactionStart()
transactionStart this function is used to mark start of the sequence of processes that shall be treat...
Stores key info lines including validity, creation date and more.