kgpg
kgpgtransaction.cpp
Go to the documentation of this file.
188 QPointer<KIO::RenameDialog> over = new KIO::RenameDialog(qobject_cast<QWidget *>(m_parent->parent()),
233 } else if (!m_overwriteUrl.isEmpty() && line.startsWith(QLatin1String("[GNUPG:] GET_LINE openfile.askoutname"))) {
339 Q_ASSERT((m_parent->sender() == m_passwordDialog) ^ (m_parent->sender() == m_newPasswordDialog));
435 connect(d->m_newPasswordDialog, SIGNAL(newPassword(QString)), SLOT(slotPassphraseEntered(QString)));
437 connect(d->m_process, SIGNAL(processExited()), d->m_newPasswordDialog->button(KDialog::Cancel), SLOT(click()));
508 kDebug(2100) << this << "unexpected input line" << line << "for command" << d->m_process->program();
645 connect(d->m_passwordDialog, SIGNAL(gotPassword(QString,bool)), SLOT(slotPassphraseEntered(QString)));
647 connect(d->m_process, SIGNAL(processExited()), d->m_passwordDialog->button(KDialog::Cancel), SLOT(click()));
652 d->m_passwordDialog->showErrorMessage(i18np("<p><b>Bad passphrase</b>. You have 1 try left.</p>",
725 disconnect(d->m_inputTransaction, SIGNAL(done(int)), this, SLOT(slotInputTransactionDone(int)));
virtual bool passphraseRequested()
called when GnuPG asks for a passphrase
Definition: kgpgtransaction.cpp:512
int getSuccess() const
get the success value that will be returned with the done signal
Definition: kgpgtransaction.cpp:442
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
int addArgument(const QString &arg)
add a command line argument to gpg process
Definition: kgpgtransaction.cpp:562
int addArguments(const QStringList &args)
add command line arguments to gpg process
Definition: kgpgtransaction.cpp:572
void write(const QByteArray &a, const bool lf=true)
write data to standard input of gpg process
Definition: kgpgtransaction.cpp:413
virtual void newPassphraseEntered()
called when the user entered a new passphrase
Definition: kgpgtransaction.cpp:742
void infoProgress(qulonglong processedAmount, qulonglong totalAmount)
emits procentual status information
virtual void postStart()
Called when the gpg process is up and running.
Definition: kgpgtransaction.cpp:530
virtual bool hintLine(const ts_hintType hint, const QString &args)
Called for a set of hint messages.
Definition: kgpgtransaction.cpp:473
int waitForFinished(const int msecs=-1)
blocks until the transaction is complete
Definition: kgpgtransaction.cpp:681
void replaceArgument(const int pos, const QString &arg)
replace the argument at the given position
Definition: kgpgtransaction.cpp:582
bool askPassphrase(const QString &message=QString())
ask user for passphrase
Definition: kgpgtransaction.cpp:623
QString & remove(int position, int n)
void setInputTransaction(KGpgTransaction *ta)
connect the standard input of this transaction to another process
Definition: kgpgtransaction.cpp:709
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void clearInputTransaction()
tell the process the standard input is no longer connected
Definition: kgpgtransaction.cpp:723
void clear()
KGpgTransaction(QObject *parent=0, const bool allowChaining=false)
KGpgTransaction constructor.
Definition: kgpgtransaction.cpp:118
virtual bool preStart()
Called before the gpg process is started.
Definition: kgpgtransaction.cpp:524
int count(const T &value) const
void statusMessage(const QString &msg)
emits textual status information
void insertArguments(const int pos, const QStringList &args)
insert arguments at the given position
Definition: kgpgtransaction.cpp:599
bool hasInputTransaction() const
check if another transaction will sent input to this
Definition: kgpgtransaction.cpp:730
void addArgumentRef(int *ref)
make sure the reference to a specific argument is kept up to date
Definition: kgpgtransaction.cpp:617
void askNewPassphrase(const QString &text)
Ask user for passphrase and send it to gpg process.
Definition: kgpgtransaction.cpp:428
bool isEmpty() const
bool isEmpty() const
QByteArray number(int n, int base)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual ts_boolanswer confirmOverwrite(KUrl ¤tFile)
called when GnuPG asks for confirmation for overwriting a file
Definition: kgpgtransaction.cpp:465
virtual ts_boolanswer boolQuestion(const QString &line)
Called for every boolean question GnuPG answers.
Definition: kgpgtransaction.cpp:457
unexpected sequence of GnuPG messages
Definition: kgpgtransaction.h:62
the question is not supported (this is an error)
Definition: kgpgtransaction.h:74
bool contains(QChar ch, Qt::CaseSensitivity cs) const
const QString & getDescription() const
return description of this transaction
Definition: kgpgtransaction.cpp:703
QString & replace(int position, int n, QChar after)
QString mid(int position, int n) const
virtual bool passphraseReceived()
called when GnuPG accepted the passphrase
Definition: kgpgtransaction.cpp:518
void setSuccess(const int v)
set the success value that will be returned with the done signal
Definition: kgpgtransaction.cpp:448
void insert(int i, const T &value)
int length() const
void unexpectedLine(const QString &line)
notify of an unexpected line
Definition: kgpgtransaction.cpp:506
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
void insertArgument(const int pos, const QString &arg)
insert an argument at the given position
Definition: kgpgtransaction.cpp:593
int indexOf(const QRegExp &rx, int from) const
void setDescription(const QString &description)
set the description returned in getDescription()
Definition: kgpgtransaction.cpp:489
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setGnuPGHome(const QString &home)
sets the home directory of GnuPG called for this transaction
Definition: kgpgtransaction.cpp:663
void waitForInputTransaction()
wait until the input transaction has finished
Definition: kgpgtransaction.cpp:495
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.