kget
#include <verificationmodel.h>

Public Types | |
| enum | dataType { Type, Checksum, Verified } |
Public Member Functions | |
| VerificationModel (QObject *parent=0) | |
| void | addChecksum (const QString &type, const QString &checksum, int verified=0) |
| void | addChecksums (const QHash< QString, QString > &checksums) |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| void | setVerificationStatus (const QString &type, int verified) |
Detailed Description
Definition at line 29 of file verificationmodel.h.
Member Enumeration Documentation
| Enumerator | |
|---|---|
| Type | |
| Checksum | |
| Verified | |
Definition at line 36 of file verificationmodel.h.
Constructor & Destructor Documentation
| VerificationModel::VerificationModel | ( | QObject * | parent = 0 | ) |
Definition at line 44 of file verificationmodel.cpp.
Member Function Documentation
| void VerificationModel::addChecksum | ( | const QString & | type, |
| const QString & | checksum, | ||
| int | verified = 0 |
||
| ) |
Add a checksum that is later used in the verification process.
- Note
- only one checksum per type can be added (one MD5, one SHA1 etc.), the newer overwrites the older and a checksum can only be added if it is supported by the verifier
- Parameters
-
type the type of the checksum checksum the checksum verified if the file has been verified using this checksum
Definition at line 179 of file verificationmodel.cpp.
| void VerificationModel::addChecksums | ( | const QHash< QString, QString > & | checksums | ) |
Add multiple checksums that will later be used in the verification process.
- Note
- only one checksum per type can be added (one MD5, one SHA1 etc.), the newer overwrites the older and a checksum can only be added if it is supported by the verifier
- Parameters
-
checksums <type, checksum>
Definition at line 203 of file verificationmodel.cpp.
| int VerificationModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 137 of file verificationmodel.cpp.
| QVariant VerificationModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
Definition at line 50 of file verificationmodel.cpp.
| Qt::ItemFlags VerificationModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 80 of file verificationmodel.cpp.
| QVariant VerificationModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 144 of file verificationmodel.cpp.
| bool VerificationModel::removeRows | ( | int | row, |
| int | count, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) |
Definition at line 161 of file verificationmodel.cpp.
| int VerificationModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 130 of file verificationmodel.cpp.
| bool VerificationModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
Definition at line 99 of file verificationmodel.cpp.
| void VerificationModel::setVerificationStatus | ( | const QString & | type, |
| int | verified | ||
| ) |
Sets the verificationStatus for type.
Definition at line 212 of file verificationmodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference