KNewStuff
security.cpp
63 arguments << QStringLiteral("--no-secmem-warning") << QStringLiteral("--no-tty") << QStringLiteral("--with-colon") << QStringLiteral("--list-keys");
65 connect(m_process, &QProcess::readyReadStandardOutput, this, &Security::slotReadyReadStandardOutput);
69 i18n("<qt>Cannot start <i>gpg</i> and retrieve the available keys. Make sure that <i>gpg</i> is installed, otherwise verification of downloaded "
87 arguments << QStringLiteral("--no-secmem-warning") << QStringLiteral("--no-tty") << QStringLiteral("--with-colon") << QStringLiteral("--list-secret-keys");
89 connect(m_process, &QProcess::readyReadStandardOutput, this, &Security::slotReadyReadStandardOutput);
191 i18n("<qt>Enter passphrase for key <b>0x%1</b>, belonging to<br /><i>%2<%3></i><br />:</qt>", m_secretKey, key.name, key.mail));
255 arguments << QStringLiteral("--no-secmem-warning") << QStringLiteral("--status-fd=2") << QStringLiteral("--command-fd=0") << QStringLiteral("--verify")
258 connect(m_process, &QProcess::readyReadStandardOutput, this, &Security::slotReadyReadStandardOutput);
264 i18n("<qt>Cannot start <i>gpg</i> and check the validity of the file. Make sure that <i>gpg</i> is installed, otherwise verification of downloaded "
337 arguments << QStringLiteral("--no-secmem-warning") << QStringLiteral("--status-fd=2") << QStringLiteral("--command-fd=0") << QStringLiteral("--no-tty")
338 << QStringLiteral("--detach-sign") << QStringLiteral("-u") << m_secretKey << QStringLiteral("-o") << f.path() + QStringLiteral("/signature")
341 connect(m_process, &QProcess::readyReadStandardOutput, this, &Security::slotReadyReadStandardOutput);
348 i18n("<qt>Cannot start <i>gpg</i> and sign the file. Make sure that <i>gpg</i> is installed, otherwise signing of the resources will not be "
void start(const QString &program, const QStringList &arguments, QIODevice::OpenMode mode)
void append(const T &value)
void signFile(const QString &fileName)
Creates a signature and an md5sum file for the fileName and packs everything into a gzipped tarball.
Definition: security.cpp:272
QString path() const const
QString section(QChar sep, int start, int end, QString::SectionFlags flags) const const
bool contains(const Key &key) const const
void addData(const char *data, int length)
ReadOnly
void checkValidity(const QString &fileName)
Verifies the integrity and the signature of a tarball file.
Definition: security.cpp:207
Q_EMITQ_EMIT
virtual bool open(QIODevice::OpenMode mode) override
void clear()
singleShot
void slotCheckValidity()
Verifies the integrity and the signature of a tarball file (see m_fileName).
Definition: security.cpp:213
QStringList split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
int count(const T &value) const const
QMap::iterator begin()
QString trimmed() const const
void chop(int n)
QByteArray result() const const
void finished(int exitCode)
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void readyReadStandardOutput()
QString findExecutable(const QString &executableName, const QStringList &paths)
void validityResult(int result)
Sent when the validity check is done.
QMap::iterator end()
void slotSignFile()
Creates a signature and an md5sum file for the m_fileName and packs everything into a gzipped tarball...
Definition: security.cpp:278
QString i18n(const char *text, const TYPE &arg...)
QString fromLocal8Bit(const char *str, int size)
ExitStatus
KeepEmptyParts
A way to ask a user a question from inside a GUI-less library (like KNewStuffCore)
Definition: question.h:46
bool isEmpty() const const
bool waitForStarted(int msecs)
void kill()
void setFileName(const QString &name)
bool isEmpty() const const
virtual void close() override
void reset()
qint64 readLine(char *data, qint64 maxSize)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
QByteArray toHex() const const
bool isEmpty() const const
QString right(int n) const const
QString fromLatin1(const char *str, int size)
virtual bool canReadLine() const const override
Contains the core functionality for handling interaction with NewStuff providers.
Definition: atticaprovider.cpp:29
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
char * data()
qint64 write(const char *data, qint64 maxSize)
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:18:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:18:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.