18class Pass :
public QObject {
38 virtual void Show(QString file) = 0;
40 virtual void Insert(QString file, QString value,
bool force) = 0;
41 virtual void Remove(QString file,
bool isDir) = 0;
42 virtual void Move(
const QString srcDir,
const QString dest,
43 const bool force =
false) = 0;
44 virtual void Copy(
const QString srcDir,
const QString dest,
45 const bool force =
false) = 0;
46 virtual void Init(QString path,
const QList<UserInfo> &users) = 0;
47 virtual QString
Generate_b(
unsigned int length,
const QString &charset);
50 QList<UserInfo>
listKeys(QStringList keystrings,
bool secret =
false);
51 QList<UserInfo>
listKeys(QString keystring =
"",
bool secret =
false);
57 QString separator =
" ",
62 bool readStdout =
true,
bool readStderr =
true);
67 const QStringList &args, QString input,
68 bool readStdout =
true,
bool readStderr =
true);
71 virtual void finished(
int id,
int exitCode,
const QString &out,
75 void error(QProcess::ProcessError);
Executes external commands for handleing password, git and other data.
Acts as an abstraction for pass or pass imitation.
QString generateRandomPassword(const QString &charset, unsigned int length)
void startingExecuteWrapper()
void GenerateGPGKeys(QString batch)
Pass::GenerateGPGKeys internal gpg keypair generator . .
virtual void Copy(const QString srcDir, const QString dest, const bool force=false)=0
void finishedCopy(const QString &, const QString &)
void finishedShow(const QString &)
void finishedRemove(const QString &, const QString &)
void finishedMove(const QString &, const QString &)
void statusMsg(QString, int)
static QStringList getRecipientString(QString for_file, QString separator=" ", int *count=NULL)
Pass::getRecipientString formated string for use with GPG.
void critical(QString, QString)
void finishedGitInit(const QString &, const QString &)
virtual void Remove(QString file, bool isDir)=0
Pass()
Pass::Pass wrapper for using either pass or the pass imitation.
virtual void Show(QString file)=0
void executeWrapper(PROCESS id, const QString &app, const QStringList &args, bool readStdout=true, bool readStderr=true)
void finishedAny(const QString &, const QString &)
static QStringList getRecipientList(QString for_file)
Pass::getRecipientList return list of gpg-id's to encrypt for.
void finishedInsert(const QString &, const QString &)
virtual void GitPull_b()=0
void finishedInit(const QString &, const QString &)
virtual void Insert(QString file, QString value, bool force)=0
void finishedOtpGenerate(const QString &)
virtual QString Generate_b(unsigned int length, const QString &charset)
Pass::Generate use either pwgen or internal password generator.
static QString getGpgIdPath(QString for_file)
Pass::getGpgIdPath return gpgid file path for some file (folder).
void processErrorExit(int exitCode, const QString &err)
quint32 boundedRandom(quint32 bound)
void finishedGitPull(const QString &, const QString &)
void finishedGitPush(const QString &, const QString &)
virtual void Move(const QString srcDir, const QString dest, const bool force=false)=0
void finishedGenerate(const QString &, const QString &)
virtual void OtpGenerate(QString file)=0
QList< UserInfo > listKeys(QStringList keystrings, bool secret=false)
Pass::listKeys list users.
void updateEnv()
Pass::updateEnv update the execution environment (used when switching profiles)
void error(QProcess::ProcessError)
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 finishedGenerateGPGKeys(const QString &, const QString &)
virtual void Init(QString path, const QList< UserInfo > &users)=0