KNewStuff
KNS::ItemsModel Class Reference
#include <itemsmodel.h>
Inheritance diagram for KNS::ItemsModel:

Detailed Description
Definition at line 31 of file itemsmodel.h.
Public Types | |
enum | EntryRoles { kNameRole = Qt::UserRole, kCategory, kAuthorName, kAuthorEmail, kAuthorJabber, kAuthorHomepage, kLicense, kSummary, kVersion, kRelease, kReleaseDate, kPayload, kPreview, kPreviewPixmap, kLargePreviewPixmap, kRating, kDownloads, kStatus } |
Public Member Functions | |
void | addEntry (Entry *entry) |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
KNS::Entry * | entryForIndex (const QModelIndex &index) const |
bool | hasPreviewImages () const |
bool | hasWebService () const |
ItemsModel (QObject *parent=NULL, bool hasWebService=false) | |
void | removeEntry (Entry *entry) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
~ItemsModel () |
Member Enumeration Documentation
- Enumerator:
Definition at line 38 of file itemsmodel.h.
Constructor & Destructor Documentation
Definition at line 25 of file itemsmodel.cpp.
KNS::ItemsModel::~ItemsModel | ( | ) |
Definition at line 30 of file itemsmodel.cpp.
Member Function Documentation
void KNS::ItemsModel::addEntry | ( | Entry * | entry | ) |
Definition at line 115 of file itemsmodel.cpp.
QVariant KNS::ItemsModel::data | ( | const QModelIndex & | index, | |
int | role = Qt::DisplayRole | |||
) | const |
Definition at line 39 of file itemsmodel.cpp.
KNS::Entry * KNS::ItemsModel::entryForIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 107 of file itemsmodel.cpp.
bool KNS::ItemsModel::hasPreviewImages | ( | ) | const |
Definition at line 154 of file itemsmodel.cpp.
bool KNS::ItemsModel::hasWebService | ( | ) | const |
Definition at line 159 of file itemsmodel.cpp.
void KNS::ItemsModel::removeEntry | ( | Entry * | entry | ) |
Definition at line 134 of file itemsmodel.cpp.
int KNS::ItemsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Definition at line 34 of file itemsmodel.cpp.
The documentation for this class was generated from the following files: