kget
verificationdialog.cpp
Go to the documentation of this file.
35 VerificationAddDlg::VerificationAddDlg(VerificationModel *model, QWidget *parent, Qt::WFlags flags)
83 VerificationDialog::VerificationDialog(QWidget *parent, TransferHandler *transfer, const KUrl &file)
189 const QModelIndex index = m_proxy->mapToSource(ui.usedHashes->selectionModel()->selectedRows().first());
Definition: filemodel.h:45
void setHeight(int height)
static void setVerificationHeaderState(const QString &v)
Set VerificationHeaderState.
Definition: settings.h:59
VerificationDialog(QWidget *parent, TransferHandler *transfer, const KUrl &file)
Definition: verificationdialog.cpp:83
int width() const
Definition: verificationdelegate.h:27
void verify(const QModelIndex &index=QModelIndex())
Call this method if you want to verify() in its own thread, then signals with the result are emitted...
Definition: verifier.cpp:364
virtual void setSourceModel(QAbstractItemModel *sourceModel)
bool removeRow(int row, const QModelIndex &parent)
bool isEmpty() const
static QStringList supportedVerficationTypes()
Returns the supported verification types.
Definition: verifier.cpp:216
Definition: verificationdialog.h:34
static bool isChecksum(const QString &type, const QString &checksum)
Tries to check if the checksum is a checksum and if it is supported it compares the diggestLength and...
Definition: verifier.cpp:256
bool isValid() const
void setWidth(int width)
int row() const
typedef WFlags
Subclass to make sure that the size of the dialog is automatically stored and restored.
Definition: basedialog.h:32
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
QByteArray fromBase64(const QByteArray &base64)
VerificationAddDlg(VerificationModel *model, QWidget *parent=0, Qt::WFlags flags=0)
Definition: verificationdialog.cpp:35
Definition: verificationmodel.h:29
void sort()
void addChecksum(const QString &type, const QString &checksum, int verified=0)
Add a checksum that is later used in the verification process.
Definition: verificationmodel.cpp:179
bool downloadFinished(const KUrl &file)
Checks if the download for file has been finished.
Definition: filemodel.cpp:622
KUrl getUrl(const QModelIndex &index)
The url on the filesystem (no check if the file exists yet!) of index, it can be a folder or file...
Definition: filemodel.cpp:544
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: filemodel.cpp:436
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28: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:28:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.