QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
realpass.h
1// SPDX-FileCopyrightText: 2016 Anne Jan Brouwer
2// SPDX-License-Identifier: GPL-3.0-or-later
3#ifndef SRC_REALPASS_H_
4#define SRC_REALPASS_H_
5
6#include "pass.h"
7
21class RealPass : public Pass {
30 void executePass(PROCESS id, const QStringList &args,
31 QString input = QString(), bool readStdout = true,
32 bool readStderr = true);
33
34public:
42 ~RealPass() override = default;
43
44 // Git operations
48 void GitInit() override;
52 void GitPull() override;
56 void GitPull_b() override;
60 void GitPush() override;
61
62 // Password operations
67 void Show(QString file) override;
72 void OtpGenerate(QString file) override;
79 void Insert(QString file, QString newValue, bool overwrite = false) override;
85 void Remove(QString file, bool isDir = false) override;
91 void Init(QString path, const QList<UserInfo> &users) override;
92
93 // Pass interface
94public:
101 void Move(const QString src, const QString dest,
102 const bool force = false) override;
109 void Copy(const QString src, const QString dest,
110 const bool force = false) override;
116 void Grep(QString pattern, bool caseInsensitive = false) override;
117};
118
119#endif // SRC_REALPASS_H_
Enums::PROCESS PROCESS
Alias for Enums::PROCESS used throughout this class.
Definition pass.h:65
Pass()
Construct a Pass instance.
void Init(QString path, const QList< UserInfo > &users) override
Initialize password store.
void OtpGenerate(QString file) override
Generate OTP code.
void Insert(QString file, QString newValue, bool overwrite=false) override
Insert new password.
~RealPass() override=default
Destructor.
void Show(QString file) override
Show decrypted password.
void Copy(const QString src, const QString dest, const bool force=false) override
Copy password file or directory.
void GitPull_b() override
Pull with rebase.
RealPass()
Construct a RealPass instance.
void Remove(QString file, bool isDir=false) override
Remove password or directory.
void GitInit() override
Initialize Git repository in password store.
void GitPull() override
Pull changes from remote.
void Move(const QString src, const QString dest, const bool force=false) override
Move password file or directory.
void Grep(QString pattern, bool caseInsensitive=false) override
Search password content via 'pass grep'.
void GitPush() override
Push changes to remote.