QtPass 1.4.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#ifndef REALPASS_H
2#define REALPASS_H
3
4#include "pass.h"
5
10class RealPass : public Pass {
11 void executePass(PROCESS id, const QStringList &args,
12 QString input = QString(), bool readStdout = true,
13 bool readStderr = true);
14
15public:
17 virtual ~RealPass() {}
18 virtual void GitInit() Q_DECL_OVERRIDE;
19 virtual void GitPull() Q_DECL_OVERRIDE;
20 virtual void GitPull_b() Q_DECL_OVERRIDE;
21 virtual void GitPush() Q_DECL_OVERRIDE;
22 virtual void Show(QString file) Q_DECL_OVERRIDE;
23 virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE;
24 virtual void Insert(QString file, QString newValue,
25 bool overwrite = false) Q_DECL_OVERRIDE;
26 virtual void Remove(QString file, bool isDir = false) Q_DECL_OVERRIDE;
27 virtual void Init(QString path, const QList<UserInfo> &users) Q_DECL_OVERRIDE;
28
29 // Pass interface
30public:
31 void Move(const QString src, const QString dest,
32 const bool force = false) Q_DECL_OVERRIDE;
33 void Copy(const QString src, const QString dest,
34 const bool force = false) Q_DECL_OVERRIDE;
35};
36
37#endif // REALPASS_H
Acts as an abstraction for pass or pass imitation.
Definition: pass.h:18
Wrapper for executing pass to handle the password-store.
Definition: realpass.h:10
virtual void Insert(QString file, QString newValue, bool overwrite=false) Q_DECL_OVERRIDE
RealPass::Insert pass insert.
Definition: realpass.cpp:61
virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE
RealPass::OtpGenerate pass otp.
Definition: realpass.cpp:54
virtual void GitPull() Q_DECL_OVERRIDE
RealPass::GitPull pass git pull wrapper.
Definition: realpass.cpp:30
virtual void GitPush() Q_DECL_OVERRIDE
RealPass::GitPush pass git push wrapper.
Definition: realpass.cpp:35
virtual void Init(QString path, const QList< UserInfo > &users) Q_DECL_OVERRIDE
RealPass::Init initialize pass repository.
Definition: realpass.cpp:82
virtual void GitInit() Q_DECL_OVERRIDE
RealPass::GitInit pass git init wrapper.
Definition: realpass.cpp:17
virtual void Remove(QString file, bool isDir=false) Q_DECL_OVERRIDE
RealPass::Remove pass remove wrapper.
Definition: realpass.cpp:72
virtual ~RealPass()
Definition: realpass.h:17
void Copy(const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
RealPass::Copy copy a file (or folder)
Definition: realpass.cpp:143
virtual void GitPull_b() Q_DECL_OVERRIDE
RealPass::GitInit pass git pull wrapper which blocks until process finishes.
Definition: realpass.cpp:23
void Move(const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
RealPass::Move move a file (or folder)
Definition: realpass.cpp:102
virtual void Show(QString file) Q_DECL_OVERRIDE
RealPass::Show pass show.
Definition: realpass.cpp:46
PROCESS
Definition: enums.h:16
Stores key info lines including validity, creation date and more.
Definition: userinfo.h:11