kget
#include <mirrormodel.h>

Public Member Functions | |
MirrorModel (QObject *parent) | |
~MirrorModel () | |
void | addMirror (const KUrl &url, int numConnections=0, int priority=0, const QString &countryCode=QString()) |
QHash< KUrl, QPair< bool, int > > | availableMirrors () const |
int | columnCount (const QModelIndex &index=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) 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 &index=QModelIndex()) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
void | setMirrors (const QHash< KUrl, QPair< bool, int > > &mirrors) |
Detailed Description
Definition at line 88 of file mirrormodel.h.
Constructor & Destructor Documentation
MirrorModel::MirrorModel | ( | QObject * | parent | ) |
Definition at line 349 of file mirrormodel.cpp.
MirrorModel::~MirrorModel | ( | ) |
Definition at line 354 of file mirrormodel.cpp.
Member Function Documentation
void MirrorModel::addMirror | ( | const KUrl & | url, |
int | numConnections = 0 , |
||
int | priority = 0 , |
||
const QString & | countryCode = QString() |
||
) |
Definition at line 456 of file mirrormodel.cpp.
QHash< KUrl, QPair< bool, int > > MirrorModel::availableMirrors | ( | ) | const |
Definition at line 506 of file mirrormodel.cpp.
int MirrorModel::columnCount | ( | const QModelIndex & | index = QModelIndex() | ) | const |
Definition at line 371 of file mirrormodel.cpp.
QVariant MirrorModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 404 of file mirrormodel.cpp.
Qt::ItemFlags MirrorModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 413 of file mirrormodel.cpp.
QVariant MirrorModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 381 of file mirrormodel.cpp.
bool MirrorModel::removeRows | ( | int | row, |
int | count, | ||
const QModelIndex & | parent = QModelIndex() |
||
) |
Definition at line 436 of file mirrormodel.cpp.
int MirrorModel::rowCount | ( | const QModelIndex & | index = QModelIndex() | ) | const |
Definition at line 359 of file mirrormodel.cpp.
bool MirrorModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
Definition at line 422 of file mirrormodel.cpp.
void MirrorModel::setMirrors | ( | const QHash< KUrl, QPair< bool, int > > & | mirrors | ) |
Definition at line 487 of file mirrormodel.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.