• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KNewStuff

KNS::ItemsModel

KNS::ItemsModel Class Reference

#include <itemsmodel.h>

Inheritance diagram for KNS::ItemsModel:
QAbstractListModel

List of all members.

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

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 ()

Detailed Description

Definition at line 33 of file itemsmodel.h.


Member Enumeration Documentation

enum KNS::ItemsModel::EntryRoles
Enumerator:
kNameRole 

the name of the entry

kCategory 

the category of the entry

kAuthorName 

the name of the author of the entry

kAuthorEmail 

the e-mail address of the author

kAuthorJabber 

the jabber of the author

kAuthorHomepage 

the authors homepage

kLicense 

the license of the entry

kSummary 

a summary of the entry

kVersion 

a string of the version e.g.

"v1.0 alpha"

kRelease 

the release number

kReleaseDate 

the release date

kPayload 

the payload

kPreview 

the preview url

kPreviewPixmap 

the preview image

kLargePreviewPixmap 

the unscaled preview image

kRating 

the rating of the entry

kDownloads 

the number of downloads for the entry

kStatus 

the status of this entry

Definition at line 40 of file itemsmodel.h.


Constructor & Destructor Documentation

KNS::ItemsModel::ItemsModel ( QObject *  parent = NULL,
bool  hasWebService = false 
) [explicit]

Definition at line 26 of file itemsmodel.cpp.

KNS::ItemsModel::~ItemsModel (  ) 

Definition at line 31 of file itemsmodel.cpp.


Member Function Documentation

void KNS::ItemsModel::addEntry ( Entry *  entry  ) 

Definition at line 116 of file itemsmodel.cpp.

QVariant KNS::ItemsModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 40 of file itemsmodel.cpp.

KNS::Entry * KNS::ItemsModel::entryForIndex ( const QModelIndex &  index  )  const

Definition at line 108 of file itemsmodel.cpp.

bool KNS::ItemsModel::hasPreviewImages (  )  const

Definition at line 178 of file itemsmodel.cpp.

bool KNS::ItemsModel::hasWebService (  )  const

Definition at line 183 of file itemsmodel.cpp.

void KNS::ItemsModel::removeEntry ( Entry *  entry  ) 

Definition at line 136 of file itemsmodel.cpp.

int KNS::ItemsModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const

Definition at line 35 of file itemsmodel.cpp.

void KNS::ItemsModel::slotEntryChanged ( KNS::Entry *  entry  )  [slot]

Definition at line 147 of file itemsmodel.cpp.


The documentation for this class was generated from the following files:
  • itemsmodel.h
  • itemsmodel.cpp

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal