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

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 Slots | |
| void | slotEntryChanged (KNS::Entry *entry) |
Public Member Functions | |
| ItemsModel (QObject *parent=NULL, bool hasWebService=false) | |
| ~ItemsModel () | |
| 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 |
| void | removeEntry (Entry *entry) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Detailed Description
Definition at line 33 of file knewstuff2/ui/itemsmodel.h.
Member Enumeration Documentation
- Enumerator:
Definition at line 40 of file knewstuff2/ui/itemsmodel.h.
Constructor & Destructor Documentation
| builddir build BUILD kdelibs knewstuff knewstuff2 ui itemsmodel cpp KNS::ItemsModel::ItemsModel | ( | QObject * | parent = NULL, |
| bool | hasWebService = false |
||
| ) | [explicit] |
Definition at line 27 of file knewstuff2/ui/itemsmodel.cpp.
| KNS::ItemsModel::~ItemsModel | ( | ) |
Definition at line 32 of file knewstuff2/ui/itemsmodel.cpp.
Member Function Documentation
| void KNS::ItemsModel::addEntry | ( | Entry * | entry | ) |
Definition at line 117 of file knewstuff2/ui/itemsmodel.cpp.
| QVariant KNS::ItemsModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 41 of file knewstuff2/ui/itemsmodel.cpp.
| KNS::Entry * KNS::ItemsModel::entryForIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 109 of file knewstuff2/ui/itemsmodel.cpp.
| bool KNS::ItemsModel::hasPreviewImages | ( | ) | const |
Definition at line 179 of file knewstuff2/ui/itemsmodel.cpp.
| bool KNS::ItemsModel::hasWebService | ( | ) | const |
Definition at line 184 of file knewstuff2/ui/itemsmodel.cpp.
| void KNS::ItemsModel::removeEntry | ( | Entry * | entry | ) |
Definition at line 137 of file knewstuff2/ui/itemsmodel.cpp.
| int KNS::ItemsModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 36 of file knewstuff2/ui/itemsmodel.cpp.
| void KNS::ItemsModel::slotEntryChanged | ( | KNS::Entry * | entry | ) | [slot] |
Definition at line 148 of file knewstuff2/ui/itemsmodel.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference