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::ProfileReadersListingModel ( Profile aProfile)

Constructor

◆ ~ProfileReadersListingModel()

ProfileReadersListingModel::~ProfileReadersListingModel ( )

Destructor

Member Function Documentation

◆ addReader()

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

◆ columnCount()

virtual int ProfileReadersListingModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

re-implemented from QAbstractTableModel

Returns
number of columns in model

◆ data()

virtual QVariant ProfileReadersListingModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

re-implemented from QAbstractTableModel

Returns
data to display in list

◆ error

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

◆ headerData()

virtual QVariant ProfileReadersListingModel::headerData ( int  aSection,
Qt::Orientation  orientation,
int  role 
) const
virtual

◆ profileDisplayNameByFingerPrint()

QString ProfileReadersListingModel::profileDisplayNameByFingerPrint ( const Hash aFingerPrint)

method for retrieving display-name of a profile

◆ removeReader()

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

◆ rowCount()

virtual int ProfileReadersListingModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

re-implemented from QAbstractTableModel

Returns
number of rows in list

◆ updateReaderDataInArray()

void ProfileReadersListingModel::updateReaderDataInArray ( const Hash aFingerPrint,
bool  aEmit 
)
private

Member Data Documentation

◆ iNamesAndFingerPrints

QList<QPair<Hash,QString> > ProfileReadersListingModel::iNamesAndFingerPrints
private

◆ iProfile

Profile& ProfileReadersListingModel::iProfile
private

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