kgpg
kgpgtextorfiletransaction.cpp
Go to the documentation of this file.
23 KGpgTextOrFileTransaction::KGpgTextOrFileTransaction(QObject *parent, const QString &text, const bool allowChaining)
29 KGpgTextOrFileTransaction::KGpgTextOrFileTransaction(QObject *parent, const KUrl::List &files, const bool allowChaining)
107 if (locfiles.isEmpty() && m_tempfiles.isEmpty() && m_text.isEmpty() && !hasInputTransaction()) {
void clear()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
virtual QStringList command() const =0
int addArguments(const QStringList &args)
add command line arguments to gpg process
Definition: kgpgtransaction.cpp:572
KGpgTextOrFileTransaction(QObject *parent=0, const QString &text=QString(), const bool allowChaining=false)
work with given text
Definition: kgpgtextorfiletransaction.cpp:23
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void setUrls(const KUrl::List &files)
set file locations to work with
Definition: kgpgtextorfiletransaction.cpp:79
void clear()
int count(const T &value) const
bool setCodec(const QByteArray &codec)
sets the codec used to translate the incoming data
Definition: gpgproc.cpp:277
void append(const T &value)
bool hasInputTransaction() const
check if another transaction will sent input to this
Definition: kgpgtransaction.cpp:730
bool isEmpty() const
bool isEmpty() const
virtual void finish()
implement special handling for GnuPG return codes
Definition: kgpgtextorfiletransaction.cpp:151
unexpected sequence of GnuPG messages
Definition: kgpgtransaction.h:62
const KUrl::List & getInputFiles() const
Definition: kgpgtextorfiletransaction.cpp:176
virtual bool nextLine(const QString &line)
Called for every line the gpg process writes.
Definition: kgpgtextorfiletransaction.cpp:143
virtual bool preStart()
construct the command line of the process
Definition: kgpgtextorfiletransaction.cpp:86
QString mid(int position, int n) const
void setSuccess(const int v)
set the success value that will be returned with the done signal
Definition: kgpgtransaction.cpp:448
int length() const
download of remote file failed
Definition: kgpgtextorfiletransaction.h:39
QByteArray toAscii() const
const QStringList & getMessages() const
get gpg info message
Definition: kgpgtextorfiletransaction.cpp:159
QByteArray toUtf8() const
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.