QtPass  1.2.0-pre
Multi-platform GUI for pass, the standard unix password manager.
Public Member Functions | List of all members
RealPass Class Reference

Wrapper for executing pass to handle the password-store. More...

#include <realpass.h>

+ Inheritance diagram for RealPass:
+ Collaboration diagram for RealPass:

Public Member Functions

 RealPass ()
 
virtual ~RealPass ()
 
virtual void GitInit () Q_DECL_OVERRIDE
 RealPass::GitInit pass git init wrapper. More...
 
virtual void GitPull () Q_DECL_OVERRIDE
 RealPass::GitPull pass git pull wrapper. More...
 
virtual void GitPull_b () Q_DECL_OVERRIDE
 RealPass::GitInit pass git pull wrapper which blocks until process finishes. More...
 
virtual void GitPush () Q_DECL_OVERRIDE
 RealPass::GitPush pass git push wrapper. More...
 
virtual void Show (QString file) Q_DECL_OVERRIDE
 RealPass::Show pass show. More...
 
virtual void Insert (QString file, QString value, bool overwrite=false) Q_DECL_OVERRIDE
 RealPass::Insert pass insert. More...
 
virtual void Remove (QString file, bool isDir=false) Q_DECL_OVERRIDE
 RealPass::Remove pass remove wrapper. More...
 
virtual void Init (QString path, const QList< UserInfo > &users) Q_DECL_OVERRIDE
 RealPass::Init initialize pass repository. More...
 
void Move (const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
 RealPass::Move move a file (or folder) More...
 
void Copy (const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
 RealPass::Copy copy a file (or folder) More...
 
- Public Member Functions inherited from Pass
 Pass ()
 Pass::Pass wrapper for using either pass or the pass imitation. More...
 
void init ()
 
virtual ~Pass ()
 
virtual QString Generate_b (int length, const QString &charset)
 Pass::Generate use either pwgen or internal password generator. More...
 
void GenerateGPGKeys (QString batch)
 Pass::GenerateGPGKeys internal gpg keypair generator . . More...
 
QList< UserInfolistKeys (QString keystring="", bool secret=false)
 Pass::listKeys list users. More...
 
void updateEnv ()
 Pass::updateEnv update the execution environment (used when switching profiles) More...
 

Additional Inherited Members

- Signals inherited from Pass
void error (QProcess::ProcessError)
 
void startingExecuteWrapper ()
 
void statusMsg (QString, int)
 
void critical (QString, QString)
 
void processErrorExit (int exitCode, const QString &err)
 
void finishedAny (const QString &, const QString &)
 
void finishedGitInit (const QString &, const QString &)
 
void finishedGitPull (const QString &, const QString &)
 
void finishedGitPush (const QString &, const QString &)
 
void finishedShow (const QString &)
 
void finishedInsert (const QString &, const QString &)
 
void finishedRemove (const QString &, const QString &)
 
void finishedInit (const QString &, const QString &)
 
void finishedMove (const QString &, const QString &)
 
void finishedCopy (const QString &, const QString &)
 
void finishedGenerate (const QString &, const QString &)
 
void finishedGenerateGPGKeys (const QString &, const QString &)
 
- Static Public Member Functions inherited from Pass
static QStringList getRecipientList (QString for_file)
 Pass::getRecipientList return list of gpg-id's to encrypt for. More...
 
static QString getRecipientString (QString for_file, QString separator=" ", int *count=NULL)
 Pass::getRecipientString formated string for use with GPG. More...
 
- Protected Types inherited from Pass
typedef Enums::PROCESS PROCESS
 
- Protected Slots inherited from Pass
virtual void finished (int id, int exitCode, const QString &out, const QString &err)
 Pass::processFinished reemits specific signal based on what process has finished. More...
 
- Protected Member Functions inherited from Pass
void executeWrapper (PROCESS id, const QString &app, const QStringList &args, bool readStdout=true, bool readStderr=true)
 
virtual void executeWrapper (PROCESS id, const QString &app, const QStringList &args, QString input, bool readStdout=true, bool readStderr=true)
 
- Protected Attributes inherited from Pass
Executor exec
 

Detailed Description

Wrapper for executing pass to handle the password-store.

Definition at line 10 of file realpass.h.

Constructor & Destructor Documentation

◆ RealPass()

RealPass::RealPass ( )

Definition at line 6 of file realpass.cpp.

◆ ~RealPass()

virtual RealPass::~RealPass ( )
inlinevirtual

Definition at line 18 of file realpass.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ Copy()

void RealPass::Copy ( const QString  src,
const QString  dest,
const bool  force = false 
)
virtual

RealPass::Copy copy a file (or folder)

Parameters
srcsource file or folder
destdestination file or folder
forceoverwrite

Implements Pass.

Definition at line 129 of file realpass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GitInit()

void RealPass::GitInit ( )
virtual

RealPass::GitInit pass git init wrapper.

Implements Pass.

Definition at line 11 of file realpass.cpp.

+ Here is the caller graph for this function:

◆ GitPull()

void RealPass::GitPull ( )
virtual

RealPass::GitPull pass git pull wrapper.

Implements Pass.

Definition at line 24 of file realpass.cpp.

+ Here is the caller graph for this function:

◆ GitPull_b()

void RealPass::GitPull_b ( )
virtual

RealPass::GitInit pass git pull wrapper which blocks until process finishes.

Implements Pass.

Definition at line 17 of file realpass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GitPush()

void RealPass::GitPush ( )
virtual

RealPass::GitPush pass git push wrapper.

Implements Pass.

Definition at line 29 of file realpass.cpp.

+ Here is the caller graph for this function:

◆ Init()

void RealPass::Init ( QString  path,
const QList< UserInfo > &  users 
)
virtual

RealPass::Init initialize pass repository.

Parameters
pathAbsolute path to new password-store
userslist of users with ability to decrypt new password-store

Implements Pass.

Definition at line 68 of file realpass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Insert()

void RealPass::Insert ( QString  file,
QString  value,
bool  overwrite = false 
)
virtual

RealPass::Insert pass insert.

Implements Pass.

Definition at line 47 of file realpass.cpp.

+ Here is the caller graph for this function:

◆ Move()

void RealPass::Move ( const QString  src,
const QString  dest,
const bool  force = false 
)
virtual

RealPass::Move move a file (or folder)

Parameters
srcsource file or folder
destdestination file or folder
forceoverwrite

Implements Pass.

Definition at line 88 of file realpass.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Remove()

void RealPass::Remove ( QString  file,
bool  isDir = false 
)
virtual

RealPass::Remove pass remove wrapper.

Implements Pass.

Definition at line 58 of file realpass.cpp.

+ Here is the caller graph for this function:

◆ Show()

void RealPass::Show ( QString  file)
virtual

RealPass::Show pass show.

Parameters
filefile to decrypt
Returns
if block is set, returns exit status of internal decryption process otherwise returns QProcess::NormalExit

Implements Pass.

Definition at line 40 of file realpass.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: