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