QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
realpass.h
Go to the documentation of this file.
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;
111};
112
113#endif // SRC_REALPASS_H_
Enums::PROCESS PROCESS
Definition pass.h:44
Pass()
Construct a Pass instance.
Definition pass.cpp:34
void Init(QString path, const QList< UserInfo > &users) override
Initialize password store.
Definition realpass.cpp:101
void OtpGenerate(QString file) override
Generate OTP code.
Definition realpass.cpp:72
void Insert(QString file, QString newValue, bool overwrite=false) override
Insert new password.
Definition realpass.cpp:79
~RealPass() override=default
Destructor.
void Show(QString file) override
Show decrypted password.
Definition realpass.cpp:64
void Copy(const QString src, const QString dest, const bool force=false) override
Copy password file or directory.
Definition realpass.cpp:162
void GitPull_b() override
Pull with rebase.
Definition realpass.cpp:35
RealPass()
Construct a RealPass instance.
void Remove(QString file, bool isDir=false) override
Remove password or directory.
Definition realpass.cpp:91
void GitInit() override
Initialize Git repository in password store.
Definition realpass.cpp:29
void GitPull() override
Pull changes from remote.
Definition realpass.cpp:48
void Move(const QString src, const QString dest, const bool force=false) override
Move password file or directory.
Definition realpass.cpp:122
void GitPush() override
Push changes to remote.
Definition realpass.cpp:53