KNewStuff
knewstuff2/core/security.cpp
Go to the documentation of this file.
75 KMessageBox::error(0L, i18n("<qt>Cannot start <i>gpg</i> and retrieve the available keys. Make sure that <i>gpg</i> is installed, otherwise verification of downloaded resources will not be possible.</qt>"));
197 dlg->setPrompt(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));
278 KMessageBox::error(0L, 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 resources will not be possible.</qt>"));
333 secretKeys = KInputDialog::getItemList(i18n("Select Signing Key"), i18n("Key used for signing:"), secretKeys, QStringList(secretKeys[0]), false, &ok);
365 KMessageBox::error(0L, 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 possible.</qt>"));
QString i18n(const char *text)
void kill()
void truncate(int position)
QString path() const
bool contains(const Key &key) const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
bool isEmpty() const
void setFileName(const QString &name)
void clear()
void slotCheckValidity()
Verifies the integrity and the signature of a tarball file (see m_fileName).
Definition: knewstuff2/core/security.cpp:222
used to clear the SIGNED_BAD flag
Definition: knewstuff2/core/security.h:91
Definition: knewstuff2/core/security.h:27
The file is signed with a bad signature.
Definition: knewstuff2/core/security.h:88
void signFile(const QString &fileName)
Creates a signature and an md5sum file for the fileName and packs everything into a gzipped tarball...
Definition: knewstuff2/core/security.cpp:285
int count(const T &value) const
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
QStringList getItemList(const QString &caption, const QString &label, const QStringList &list=QStringList(), const QStringList &select=QStringList(), bool multiple=false, bool *ok=0, QWidget *parent=0)
void checkValidity(const QString &fileName)
Verifies the integrity and the signature of a tarball file.
Definition: knewstuff2/core/security.cpp:216
QString trimmed() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void slotSignFile()
Creates a signature and an md5sum file for the m_fileName and packs everything into a gzipped tarball...
Definition: knewstuff2/core/security.cpp:291
void update(const char *in, int len=-1)
iterator end()
QByteArray hexDigest()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
iterator begin()
void start()
QString right(int n) const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
bool waitForStarted(int msecs)
virtual void close()
The file is signed with a good signature.
Definition: knewstuff2/core/security.h:87
KGuiItem ok()
virtual bool canReadLine() const
int length() const
char * data()
void reset()
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
qint64 write(const char *data, qint64 maxSize)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int count(const Key &key) const
static void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
qint64 readLine(char *data, qint64 maxSize)
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 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:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.