QtPass  1.2.0
Multi-platform GUI for pass, the standard unix password manager.
Signals | Public Member Functions | Static Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
Pass Class Referenceabstract

Acts as an abstraction for pass or pass imitation. More...

#include <pass.h>

+ Inheritance diagram for Pass:
+ Collaboration diagram for Pass:

Signals

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 &)
 

Public Member Functions

 Pass ()
 Pass::Pass wrapper for using either pass or the pass imitation. More...
 
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 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 (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...
 

Static Public Member Functions

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

typedef Enums::PROCESS PROCESS
 

Protected Slots

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

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

Executor exec
 

Detailed Description

Acts as an abstraction for pass or pass imitation.

Definition at line 18 of file pass.h.

Member Typedef Documentation

◆ PROCESS

typedef Enums::PROCESS Pass::PROCESS
protected

Definition at line 27 of file pass.h.

Constructor & Destructor Documentation

◆ Pass()

Pass::Pass ( )

Pass::Pass wrapper for using either pass or the pass imitation.

Definition at line 14 of file pass.cpp.

+ Here is the call graph for this function:

◆ ~Pass()

virtual Pass::~Pass ( )
inlinevirtual

Definition at line 33 of file pass.h.

+ Here is the call graph for this function:

Member Function Documentation

◆ Copy()

virtual void Pass::Copy ( const QString  srcDir,
const QString  dest,
const bool  force = false 
)
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ critical

void Pass::critical ( QString  ,
QString   
)
signal
+ Here is the caller graph for this function:

◆ error

void Pass::error ( QProcess::ProcessError  )
signal
+ Here is the caller graph for this function:

◆ executeWrapper() [1/2]

void Pass::executeWrapper ( PROCESS  id,
const QString &  app,
const QStringList &  args,
bool  readStdout = true,
bool  readStderr = true 
)
protected

Definition at line 27 of file pass.cpp.

+ Here is the caller graph for this function:

◆ executeWrapper() [2/2]

void Pass::executeWrapper ( PROCESS  id,
const QString &  app,
const QStringList &  args,
QString  input,
bool  readStdout = true,
bool  readStderr = true 
)
protectedvirtual

Reimplemented in ImitatePass.

Definition at line 33 of file pass.cpp.

+ Here is the call graph for this function:

◆ finished

void Pass::finished ( int  id,
int  exitCode,
const QString &  out,
const QString &  err 
)
protectedvirtualslot

Pass::processFinished reemits specific signal based on what process has finished.

Parameters
idid of Pass process that was scheduled and finished
exitCodereturn code of a process
outoutput generated by process(if capturing was requested, empty otherwise)
errerror output generated by process(if capturing was requested, or error occured)

Reimplemented in ImitatePass.

Definition at line 170 of file pass.cpp.

+ Here is the caller graph for this function:

◆ finishedAny

void Pass::finishedAny ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedCopy

void Pass::finishedCopy ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedGenerate

void Pass::finishedGenerate ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedGenerateGPGKeys

void Pass::finishedGenerateGPGKeys ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedGitInit

void Pass::finishedGitInit ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedGitPull

void Pass::finishedGitPull ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedGitPush

void Pass::finishedGitPush ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedInit

void Pass::finishedInit ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedInsert

void Pass::finishedInsert ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedMove

void Pass::finishedMove ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedRemove

void Pass::finishedRemove ( const QString &  ,
const QString &   
)
signal
+ Here is the caller graph for this function:

◆ finishedShow

void Pass::finishedShow ( const QString &  )
signal
+ Here is the caller graph for this function:

◆ Generate_b()

QString Pass::Generate_b ( int  length,
const QString &  charset 
)
virtual

Pass::Generate use either pwgen or internal password generator.

Parameters
lengthof the desired password
charsetto use for generation
Returns
the password

Definition at line 65 of file pass.cpp.

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

◆ GenerateGPGKeys()

void Pass::GenerateGPGKeys ( QString  batch)

Pass::GenerateGPGKeys internal gpg keypair generator . .

Parameters
batchGnuPG style configuration string

Definition at line 112 of file pass.cpp.

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

◆ getRecipientList()

QStringList Pass::getRecipientList ( QString  for_file)
static

Pass::getRecipientList return list of gpg-id's to encrypt for.

Parameters
for_filewhich file (folder) would you like recepients for
Returns
recepients gpg-id contents

Definition at line 237 of file pass.cpp.

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

◆ getRecipientString()

QString Pass::getRecipientString ( QString  for_file,
QString  separator = " ",
int *  count = NULL 
)
static

Pass::getRecipientString formated string for use with GPG.

Parameters
for_filewhich file (folder) would you like recepients for
separatorformating separator eg: " -r "
count
Returns
recepient string

Definition at line 273 of file pass.cpp.

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

◆ GitInit()

virtual void Pass::GitInit ( )
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ GitPull()

virtual void Pass::GitPull ( )
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ GitPull_b()

virtual void Pass::GitPull_b ( )
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ GitPush()

virtual void Pass::GitPush ( )
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ init()

void Pass::init ( )

Definition at line 41 of file pass.cpp.

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

◆ Init()

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

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ Insert()

virtual void Pass::Insert ( QString  file,
QString  value,
bool  force 
)
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ listKeys()

QList< UserInfo > Pass::listKeys ( QString  keystring = "",
bool  secret = false 
)

Pass::listKeys list users.

Parameters
keystring
secretlist private keys
Returns
QList<UserInfo> users

Definition at line 126 of file pass.cpp.

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

◆ Move()

virtual void Pass::Move ( const QString  srcDir,
const QString  dest,
const bool  force = false 
)
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ processErrorExit

void Pass::processErrorExit ( int  exitCode,
const QString &  err 
)
signal
+ Here is the caller graph for this function:

◆ Remove()

virtual void Pass::Remove ( QString  file,
bool  isDir 
)
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ Show()

virtual void Pass::Show ( QString  file)
pure virtual

Implemented in ImitatePass, and RealPass.

+ Here is the caller graph for this function:

◆ startingExecuteWrapper

void Pass::startingExecuteWrapper ( )
signal
+ Here is the caller graph for this function:

◆ statusMsg

void Pass::statusMsg ( QString  ,
int   
)
signal
+ Here is the caller graph for this function:

◆ updateEnv()

void Pass::updateEnv ( )

Pass::updateEnv update the execution environment (used when switching profiles)

Definition at line 216 of file pass.cpp.

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

Member Data Documentation

◆ exec

Executor Pass::exec
protected

Definition at line 25 of file pass.h.


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