QtPass 1.5.1
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 auto Generate_b (unsigned int length, const QString &charset) -> QString
 Pass::Generate use either pwgen or internal password generator.
 
void GenerateGPGKeys (QString batch)
 Pass::GenerateGPGKeys internal gpg keypair generator . .
 
auto listKeys (QStringList keystrings, bool secret=false) -> QList< UserInfo >
 Pass::listKeys list users.
 
auto listKeys (const QString &keystring="", bool secret=false) -> QList< UserInfo >
 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 (const QString &, int)
 
void critical (const QString &, const 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 auto getGpgIdPath (const QString &for_file) -> QString
 Pass::getGpgIdPath return gpgid file path for some file (folder).
 
static auto getRecipientList (const QString &for_file) -> QStringList
 Pass::getRecipientList return list of gpg-id's to encrypt for.
 
static auto getRecipientString (const QString &for_file, const QString &separator=" ", int *count=NULL) -> QStringList
 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)
 
auto generateRandomPassword (const QString &charset, unsigned int length) -> QString
 
auto boundedRandom (quint32 bound) -> quint32
 
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 12 of file realpass.h.

Constructor & Destructor Documentation

◆ RealPass()

RealPass::RealPass ( )
default

◆ ~RealPass()

virtual RealPass::~RealPass ( )
inlinevirtual

Definition at line 19 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 156 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 28 of file realpass.cpp.

◆ GitPull()

void RealPass::GitPull ( )
virtual

RealPass::GitPull pass git pull wrapper.

Implements Pass.

Definition at line 42 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 34 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 47 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 95 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 73 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 116 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 66 of file realpass.cpp.

◆ Remove()

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

RealPass::Remove pass remove wrapper.

Implements Pass.

Definition at line 85 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 58 of file realpass.cpp.


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