• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

Public Types | Public Member Functions | List of all members
VerificationModel Class Reference

#include <verificationmodel.h>

Inheritance diagram for VerificationModel:
Inheritance graph
[legend]

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

enum VerificationModel::dataType
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
typethe type of the checksum
checksumthe checksum
verifiedif 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:
  • verificationmodel.h
  • verificationmodel.cpp
This file is part of the KDE documentation.
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.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal