KNewStuff
knewstuff3/core/security.cpp
Go to the documentation of this file.
86 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>"));
208 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));
289 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>"));
344 secretKeys = KInputDialog::getItemList(i18n("Select Signing Key"), i18n("Key used for signing:"), secretKeys, QStringList(secretKeys[0]), false, &ok);
376 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
The file is signed with a good signature.
Definition: knewstuff3/core/security.h:87
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
bool isEmpty() const
void setFileName(const QString &name)
void clear()
void signFile(const QString &fileName)
Creates a signature and an md5sum file for the fileName and packs everything into a gzipped tarball...
Definition: knewstuff3/core/security.cpp:296
Definition: knewstuff2/core/security.h:27
The file is signed with a bad signature.
Definition: knewstuff3/core/security.h:88
int count(const T &value) const
QString fromLocal8Bit(const char *str, int size)
used to clear the SIGNED_BAD flag
Definition: knewstuff3/core/security.h:91
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)
bool isEmpty() const
QString trimmed() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void update(const char *in, int len=-1)
iterator end()
QByteArray hexDigest()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
void slotSignFile()
Creates a signature and an md5sum file for the m_fileName and packs everything into a gzipped tarball...
Definition: knewstuff3/core/security.cpp:302
iterator begin()
void start()
QString right(int n) const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
bool waitForStarted(int msecs)
virtual void close()
KGuiItem ok()
void checkValidity(const QString &fileName)
Verifies the integrity and the signature of a tarball file.
Definition: knewstuff3/core/security.cpp:227
void slotCheckValidity()
Verifies the integrity and the signature of a tarball file (see m_fileName).
Definition: knewstuff3/core/security.cpp:233
static QString findExe(const QString &appname, const QString &pathstr=QString(), SearchOptions options=NoSearchOptions)
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.