QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
realpass.h
Go to the documentation of this file.
1 #ifndef REALPASS_H
2 #define REALPASS_H
3 
4 #include "pass.h"
5 
10 class RealPass : public Pass {
11 
12  void executePass(PROCESS id, const QStringList &arg,
13  QString input = QString(), bool readStdout = true,
14  bool readStderr = true);
15 
16 public:
17  RealPass();
18  virtual ~RealPass() {}
19  virtual void GitInit() Q_DECL_OVERRIDE;
20  virtual void GitPull() Q_DECL_OVERRIDE;
21  virtual void GitPull_b() Q_DECL_OVERRIDE;
22  virtual void GitPush() Q_DECL_OVERRIDE;
23  virtual void Show(QString file) Q_DECL_OVERRIDE;
24  virtual void Insert(QString file, QString value,
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
30 public:
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
virtual void Insert(QString file, QString value, bool overwrite=false) Q_DECL_OVERRIDE
RealPass::Insert pass insert.
Definition: realpass.cpp:47
RealPass()
Definition: realpass.cpp:6
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:88
virtual void GitInit() Q_DECL_OVERRIDE
RealPass::GitInit pass git init wrapper.
Definition: realpass.cpp:11
PROCESS
Definition: enums.h:16
virtual void Show(QString file) Q_DECL_OVERRIDE
RealPass::Show pass show.
Definition: realpass.cpp:40
Wrapper for executing pass to handle the password-store.
Definition: realpass.h:10
Acts as an abstraction for pass or pass imitation.
Definition: pass.h:18
virtual void Init(QString path, const QList< UserInfo > &users) Q_DECL_OVERRIDE
RealPass::Init initialize pass repository.
Definition: realpass.cpp:68
virtual void GitPull() Q_DECL_OVERRIDE
RealPass::GitPull pass git pull wrapper.
Definition: realpass.cpp:24
virtual void GitPull_b() Q_DECL_OVERRIDE
RealPass::GitInit pass git pull wrapper which blocks until process finishes.
Definition: realpass.cpp:17
virtual ~RealPass()
Definition: realpass.h:18
virtual void GitPush() Q_DECL_OVERRIDE
RealPass::GitPush pass git push wrapper.
Definition: realpass.cpp:29
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:129
virtual void Remove(QString file, bool isDir=false) Q_DECL_OVERRIDE
RealPass::Remove pass remove wrapper.
Definition: realpass.cpp:58