Classified ads
Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProfileReadersListingModel Class Reference

Model-class for helping display of readers of a profile. More...

#include <profilereaderslistingmodel.h>

Inheritance diagram for ProfileReadersListingModel:
Inheritance graph
[legend]
Collaboration diagram for ProfileReadersListingModel:
Collaboration graph
[legend]

Signals

void error (MController::CAErrorSituation aError, const QString &aExplanation)
 

Public Member Functions

 ProfileReadersListingModel (Profile &aProfile)
 
 ~ProfileReadersListingModel ()
 
void addReader (const Hash &aFingerPrint)
 
void removeReader (const Hash &aFingerPrint)
 
QString profileDisplayNameByFingerPrint (const Hash &aFingerPrint)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual QVariant headerData (int aSection, Qt::Orientation orientation, int role) const
 

Private Member Functions

void updateReaderDataInArray (const Hash &aFingerPrint, bool aEmit)
 

Private Attributes

ProfileiProfile
 
QList< QPair< Hash, QString > > iNamesAndFingerPrints
 

Detailed Description

Model-class for helping display of readers of a profile.

Constructor & Destructor Documentation

ProfileReadersListingModel::ProfileReadersListingModel ( Profile aProfile)

Constructor

ProfileReadersListingModel::~ProfileReadersListingModel ( )

Destructor

Member Function Documentation

void ProfileReadersListingModel::addReader ( const Hash aFingerPrint)

method for adding a reader. this change will be made to iProfile too.

Parameters
aFingerPrintis fingerprint of the reader to add
virtual int ProfileReadersListingModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

re-implemented from QAbstractTableModel

Returns
number of columns in model
virtual QVariant ProfileReadersListingModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

re-implemented from QAbstractTableModel

Returns
data to display in list
void ProfileReadersListingModel::error ( MController::CAErrorSituation  aError,
const QString &  aExplanation 
)
signal
virtual QVariant ProfileReadersListingModel::headerData ( int  aSection,
Qt::Orientation  orientation,
int  role 
) const
virtual
QString ProfileReadersListingModel::profileDisplayNameByFingerPrint ( const Hash aFingerPrint)

method for retrieving display-name of a profile

void ProfileReadersListingModel::removeReader ( const Hash aFingerPrint)

method for removing a reader. this change will be made to iProfile too.

Parameters
aFingerPrintis fingerprint of the reader to remove
virtual int ProfileReadersListingModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

re-implemented from QAbstractTableModel

Returns
number of rows in list
void ProfileReadersListingModel::updateReaderDataInArray ( const Hash aFingerPrint,
bool  aEmit 
)
private

Member Data Documentation

QList<QPair<Hash,QString> > ProfileReadersListingModel::iNamesAndFingerPrints
private
Profile& ProfileReadersListingModel::iProfile
private

The documentation for this class was generated from the following file: