Acts as an abstraction for pass or pass imitation.
More...
#include <pass.h>
|
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 &) |
|
|
| 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< UserInfo > | listKeys (QStringList keystrings, bool secret=false) |
| Pass::listKeys list users.
|
|
QList< UserInfo > | listKeys (QString keystring="", bool secret=false) |
| Pass::listKeys list users.
|
|
void | updateEnv () |
| Pass::updateEnv update the execution environment (used when switching profiles)
|
|
|
virtual void | finished (int id, int exitCode, const QString &out, const QString &err) |
| Pass::processFinished reemits specific signal based on what process has finished.
|
|
|
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) |
|
Acts as an abstraction for pass or pass imitation.
Definition at line 18 of file pass.h.
◆ PROCESS
◆ Pass()
Pass::Pass wrapper for using either pass or the pass imitation.
Definition at line 17 of file pass.cpp.
◆ ~Pass()
◆ boundedRandom()
quint32 Pass::boundedRandom |
( |
quint32 |
bound | ) |
|
|
protected |
◆ Copy()
virtual void Pass::Copy |
( |
const QString |
srcDir, |
|
|
const QString |
dest, |
|
|
const bool |
force = false |
|
) |
| |
|
pure virtual |
◆ critical
void Pass::critical |
( |
QString |
, |
|
|
QString |
|
|
) |
| |
|
signal |
◆ error
void Pass::error |
( |
QProcess::ProcessError |
| ) |
|
|
signal |
◆ executeWrapper() [1/2]
void Pass::executeWrapper |
( |
PROCESS |
id, |
|
|
const QString & |
app, |
|
|
const QStringList & |
args, |
|
|
bool |
readStdout = true , |
|
|
bool |
readStderr = true |
|
) |
| |
|
protected |
◆ executeWrapper() [2/2]
void Pass::executeWrapper |
( |
PROCESS |
id, |
|
|
const QString & |
app, |
|
|
const QStringList & |
args, |
|
|
QString |
input, |
|
|
bool |
readStdout = true , |
|
|
bool |
readStderr = true |
|
) |
| |
|
protectedvirtual |
◆ 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
-
id | id of Pass process that was scheduled and finished |
exitCode | return code of a process |
out | output generated by process(if capturing was requested, empty
otherwise) |
err | error output generated by process(if capturing was requested,
or error occurred) |
Reimplemented in ImitatePass.
Definition at line 195 of file pass.cpp.
◆ finishedAny
void Pass::finishedAny |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedCopy
void Pass::finishedCopy |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedGenerate
void Pass::finishedGenerate |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedGenerateGPGKeys
void Pass::finishedGenerateGPGKeys |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedGitInit
void Pass::finishedGitInit |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedGitPull
void Pass::finishedGitPull |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedGitPush
void Pass::finishedGitPush |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedInit
void Pass::finishedInit |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedInsert
void Pass::finishedInsert |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedMove
void Pass::finishedMove |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedOtpGenerate
void Pass::finishedOtpGenerate |
( |
const QString & |
| ) |
|
|
signal |
◆ finishedRemove
void Pass::finishedRemove |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
| |
|
signal |
◆ finishedShow
void Pass::finishedShow |
( |
const QString & |
| ) |
|
|
signal |
◆ Generate_b()
QString Pass::Generate_b |
( |
unsigned int |
length, |
|
|
const QString & |
charset |
|
) |
| |
|
virtual |
Pass::Generate use either pwgen or internal password generator.
- Parameters
-
length | of the desired password |
charset | to use for generation |
- Returns
- the password
Definition at line 71 of file pass.cpp.
◆ GenerateGPGKeys()
void Pass::GenerateGPGKeys |
( |
QString |
batch | ) |
|
◆ generateRandomPassword()
QString Pass::generateRandomPassword |
( |
const QString & |
charset, |
|
|
unsigned int |
length |
|
) |
| |
|
protected |
◆ getGpgIdPath()
QString Pass::getGpgIdPath |
( |
QString |
for_file | ) |
|
|
static |
Pass::getGpgIdPath return gpgid file path for some file (folder).
- Parameters
-
for_file | which file (folder) would you like the gpgid file path for. |
- Returns
- path to the gpgid file.
Definition at line 290 of file pass.cpp.
◆ getRecipientList()
QStringList Pass::getRecipientList |
( |
QString |
for_file | ) |
|
|
static |
Pass::getRecipientList return list of gpg-id's to encrypt for.
- Parameters
-
for_file | which file (folder) would you like recepients for |
- Returns
- recepients gpg-id contents
Definition at line 318 of file pass.cpp.
◆ getRecipientString()
QStringList Pass::getRecipientString |
( |
QString |
for_file, |
|
|
QString |
separator = " " , |
|
|
int * |
count = NULL |
|
) |
| |
|
static |
Pass::getRecipientString formated string for use with GPG.
- Parameters
-
for_file | which file (folder) would you like recepients for |
separator | formating separator eg: " -r " |
count | |
- Returns
- recepient string
Definition at line 339 of file pass.cpp.
◆ GitInit()
virtual void Pass::GitInit |
( |
| ) |
|
|
pure virtual |
◆ GitPull()
virtual void Pass::GitPull |
( |
| ) |
|
|
pure virtual |
◆ GitPull_b()
virtual void Pass::GitPull_b |
( |
| ) |
|
|
pure virtual |
◆ GitPush()
virtual void Pass::GitPush |
( |
| ) |
|
|
pure virtual |
◆ init()
◆ Init()
virtual void Pass::Init |
( |
QString |
path, |
|
|
const QList< UserInfo > & |
users |
|
) |
| |
|
pure virtual |
◆ Insert()
virtual void Pass::Insert |
( |
QString |
file, |
|
|
QString |
value, |
|
|
bool |
force |
|
) |
| |
|
pure virtual |
◆ listKeys() [1/2]
QList< UserInfo > Pass::listKeys |
( |
QString |
keystring = "" , |
|
|
bool |
secret = false |
|
) |
| |
Pass::listKeys list users.
- Parameters
-
keystring | |
secret | list private keys |
- Returns
- QList<UserInfo> users
Definition at line 181 of file pass.cpp.
◆ listKeys() [2/2]
QList< UserInfo > Pass::listKeys |
( |
QStringList |
keystrings, |
|
|
bool |
secret = false |
|
) |
| |
Pass::listKeys list users.
- Parameters
-
keystrings | |
secret | list private keys |
- Returns
- QList<UserInfo> users
Definition at line 130 of file pass.cpp.
◆ Move()
virtual void Pass::Move |
( |
const QString |
srcDir, |
|
|
const QString |
dest, |
|
|
const bool |
force = false |
|
) |
| |
|
pure virtual |
◆ OtpGenerate()
virtual void Pass::OtpGenerate |
( |
QString |
file | ) |
|
|
pure virtual |
◆ processErrorExit
void Pass::processErrorExit |
( |
int |
exitCode, |
|
|
const QString & |
err |
|
) |
| |
|
signal |
◆ Remove()
virtual void Pass::Remove |
( |
QString |
file, |
|
|
bool |
isDir |
|
) |
| |
|
pure virtual |
◆ Show()
virtual void Pass::Show |
( |
QString |
file | ) |
|
|
pure virtual |
◆ startingExecuteWrapper
void Pass::startingExecuteWrapper |
( |
| ) |
|
|
signal |
◆ statusMsg
void Pass::statusMsg |
( |
QString |
, |
|
|
int |
|
|
) |
| |
|
signal |
◆ updateEnv()
◆ exec
The documentation for this class was generated from the following files: