kgpg
gpgproc.cpp
Go to the documentation of this file.
188 connect(this, SIGNAL(finished(int,QProcess::ExitStatus)), this, SLOT(finished()), Qt::UniqueConnection);
QString & append(QChar ch)
static QString gpgConfigPath()
Get The path of the gpg configuration file.
Definition: kgpgsettings.h:288
int readln(QString &line, const bool colons=false)
Reads a line of text (excluding '\n').
Definition: gpgproc.cpp:203
static QString getGpgHome(const QString &binary)
find users GnuPG directory
Definition: gpgproc.cpp:336
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
ushort toUShort(bool *ok, int base) const
bool isEmpty() const
QString simplified() const
int length() const
QString & remove(int position, int n)
void chop(int n)
QString homePath()
int indexOf(char ch, int from) const
int count(const T &value) const
static bool checkGnupgArguments(const QString &executable, const QStringList &arguments)
check if GnuPG returns an error for this arguments
Definition: gpgproc.cpp:61
bool setCodec(const QByteArray &codec)
sets the codec used to translate the incoming data
Definition: gpgproc.cpp:277
static QString getGpgStartupError(const QString &binary)
run GnuPG and check if it complains about anything
Definition: gpgproc.cpp:317
QString fromUtf8(const char *str, int size)
static QString gpgBinaryPath()
Get The path of the gpg binary used by KGpg.
Definition: kgpgsettings.h:307
static int gpgVersion(const QString &vstr)
parse GnuPG version string and return version as number
Definition: gpgproc.cpp:288
bool isEmpty() const
QString trimmed() const
const char * constData() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
QByteArray & replace(int pos, int len, const char *after)
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
Read output of a process split into lines.
Definition: klinebufferedprocess.h:56
bool readLineStandardOutput(QByteArray *line)
Reads a line of text (excluding '\n') from stdout.
Definition: klinebufferedprocess.cpp:88
QByteArray mid(int pos, int len) const
void lineReadyStandardOutput()
Emitted when there is a line of data available from stdout when there was previously none...
bool contains(const T &value) const
static QString recode(QByteArray a, const bool colons=true, const QByteArray &codec=QByteArray())
Recode a line from GnuPG encoding to UTF8.
Definition: gpgproc.cpp:238
QString & replace(int position, int n, QChar after)
void resetProcess(const QString &binary=QString())
Reset the class to the state it had right after creation.
Definition: gpgproc.cpp:165
QList< QByteArray > availableCodecs()
static QString gpgVersionString(const QString &binary)
get the GnuPG version string of the given binary
Definition: gpgproc.cpp:300
QTextCodec * codecForName(const QByteArray &name)
bool readLineStandardError(QByteArray *line)
Reads a line of text (excluding '\n') from stderr.
Definition: klinebufferedprocess.cpp:103
int length() const
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
QString toUnicode(const QByteArray &a) const
bool hasLineStandardError() const
Checks if a line is ready on stdout.
Definition: klinebufferedprocess.cpp:123
void replace(int i, const T &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.