20 #ifndef PROFILEREADERLISTINGMODEL_H
21 #define PROFILEREADERLISTINGMODEL_H
23 #include <QAbstractTableModel>
24 #include "../util/hash.h"
25 #include "../mcontroller.h"
60 virtual int rowCount(
const QModelIndex & parent = QModelIndex())
const ;
65 virtual int columnCount (
const QModelIndex & parent = QModelIndex() )
const ;
70 virtual QVariant
data(
const QModelIndex & index,
int role = Qt::DisplayRole)
const ;
71 virtual QVariant
headerData(
int aSection, Qt::Orientation orientation,
int role)
const ;
74 const QString& aExplanation) ;
~ProfileReadersListingModel()
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
QString profileDisplayNameByFingerPrint(const Hash &aFingerPrint)
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
Model-class for helping display of readers of a profile.
Definition: profilereaderslistingmodel.h:32
void updateReaderDataInArray(const Hash &aFingerPrint, bool aEmit)
QList< QPair< Hash, QString > > iNamesAndFingerPrints
Definition: profilereaderslistingmodel.h:79
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
void addReader(const Hash &aFingerPrint)
M of the MVC pattern. Handles permanent storage.
Definition: model.h:47
void error(MController::CAErrorSituation aError, const QString &aExplanation)
Profile & iProfile
Definition: profilereaderslistingmodel.h:78
void removeReader(const Hash &aFingerPrint)
virtual QVariant headerData(int aSection, Qt::Orientation orientation, int role) const
Carrier-class for user-profile data.
Definition: profile.h:36
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
ProfileReadersListingModel(Profile &aProfile)