QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
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.
 
virtual void GitPull () Q_DECL_OVERRIDE
 RealPass::GitPull pass git pull wrapper.
 
virtual void GitPull_b () Q_DECL_OVERRIDE
 RealPass::GitInit pass git pull wrapper which blocks until process finishes.
 
virtual void GitPush () Q_DECL_OVERRIDE
 RealPass::GitPush pass git push wrapper.
 
virtual void Show (QString file) Q_DECL_OVERRIDE
 RealPass::Show pass show.
 
virtual void OtpGenerate (QString file) Q_DECL_OVERRIDE
 RealPass::OtpGenerate pass otp.
 
virtual void Insert (QString file, QString newValue, bool overwrite=false) Q_DECL_OVERRIDE
 RealPass::Insert pass insert.
 
virtual void Remove (QString file, bool isDir=false) Q_DECL_OVERRIDE
 RealPass::Remove pass remove wrapper.
 
virtual void Init (QString path, const QList< UserInfo > &users) Q_DECL_OVERRIDE
 RealPass::Init initialize pass repository.
 
void Move (const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
 RealPass::Move move a file (or folder)
 
void Copy (const QString src, const QString dest, const bool force=false) Q_DECL_OVERRIDE
 RealPass::Copy copy a file (or folder)
 
- Public Member Functions inherited from Pass
 Pass ()
 Pass::Pass wrapper for using either pass or the pass imitation.
 
void init ()
 
virtual ~Pass ()
 
virtual void GitInit ()=0
 
virtual void GitPull ()=0
 
virtual void GitPull_b ()=0
 
virtual void GitPush ()=0
 
virtual void Show (QString file)=0
 
virtual void OtpGenerate (QString file)=0
 
virtual void Insert (QString file, QString value, bool force)=0
 
virtual void Remove (QString file, bool isDir)=0
 
virtual void Move (const QString srcDir, const QString dest, const bool force=false)=0
 
virtual void Copy (const QString srcDir, const QString dest, const bool force=false)=0
 
virtual void Init (QString path, const QList< UserInfo > &users)=0
 
virtual QString Generate_b (unsigned int length, const QString &charset)
 Pass::Generate use either pwgen or internal password generator.
 
void GenerateGPGKeys (QString batch)
 Pass::GenerateGPGKeys internal gpg keypair generator . .
 
QList< UserInfolistKeys (QStringList keystrings, bool secret=false)
 Pass::listKeys list users.
 
QList< UserInfolistKeys (QString keystring="", bool secret=false)
 Pass::listKeys list users.
 
void updateEnv ()
 Pass::updateEnv update the execution environment (used when switching profiles)
 

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 finishedOtpGenerate (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 QString getGpgIdPath (QString for_file)
 Pass::getGpgIdPath return gpgid file path for some file (folder).
 
static QStringList getRecipientList (QString for_file)
 Pass::getRecipientList return list of gpg-id's to encrypt for.
 
static QStringList getRecipientString (QString for_file, QString separator=" ", int *count=NULL)
 Pass::getRecipientString formated string for use with GPG.
 
- 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.
 
- Protected Member Functions inherited from Pass
void executeWrapper (PROCESS id, const QString &app, const QStringList &args, bool readStdout=true, bool readStderr=true)
 
QString generateRandomPassword (const QString &charset, unsigned int length)
 
quint32 boundedRandom (quint32 bound)
 
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 ( )
default

◆ ~RealPass()

virtual RealPass::~RealPass ( )
inlinevirtual

Definition at line 17 of file realpass.h.

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 143 of file realpass.cpp.

+ Here is the call graph for this function:

◆ GitInit()

void RealPass::GitInit ( )
virtual

RealPass::GitInit pass git init wrapper.

Implements Pass.

Definition at line 17 of file realpass.cpp.

◆ GitPull()

void RealPass::GitPull ( )
virtual

RealPass::GitPull pass git pull wrapper.

Implements Pass.

Definition at line 30 of file realpass.cpp.

◆ GitPull_b()

void RealPass::GitPull_b ( )
virtual

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

Implements Pass.

Definition at line 23 of file realpass.cpp.

+ Here is the call graph for this function:

◆ GitPush()

void RealPass::GitPush ( )
virtual

RealPass::GitPush pass git push wrapper.

Implements Pass.

Definition at line 35 of file realpass.cpp.

◆ 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 82 of file realpass.cpp.

+ Here is the call graph for this function:

◆ Insert()

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

RealPass::Insert pass insert.

Implements Pass.

Definition at line 61 of file realpass.cpp.

◆ 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 102 of file realpass.cpp.

+ Here is the call graph for this function:

◆ OtpGenerate()

void RealPass::OtpGenerate ( QString  file)
virtual

RealPass::OtpGenerate pass otp.

Parameters
filefile containig OTP uri

Implements Pass.

Definition at line 54 of file realpass.cpp.

◆ Remove()

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

RealPass::Remove pass remove wrapper.

Implements Pass.

Definition at line 72 of file realpass.cpp.

◆ 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 46 of file realpass.cpp.


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