20 #ifndef BINARYFILELISTINGMODEL_H
21 #define BINARYFILELISTINGMODEL_H
23 #include <QAbstractTableModel>
24 #include "../util/hash.h"
25 #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) ;
QString fileDisplayNameByFingerPrint(const Hash &aFingerPrint)
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
void removeFile(const Hash &aFingerPrint)
virtual QVariant headerData(int aSection, Qt::Orientation orientation, int role) const
Carrier-class for binary blob.
Definition: binaryfile.h:36
Model-class for helping display of shared binary blobs, usually from a profile.
Definition: binaryfilelistingmodel.h:33
QList< Hash > & iFilesToList
Definition: binaryfilelistingmodel.h:79
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
BinaryFileListingModel(QList< Hash > &aFilesToList)
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
M of the MVC pattern. Handles permanent storage.
Definition: model.h:47
QList< QPair< Hash, QString > > iNamesAndFingerPrints
Definition: binaryfilelistingmodel.h:80
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
void addFile(const Hash &aFingerPrint)
void error(MController::CAErrorSituation aError, const QString &aExplanation)
~BinaryFileListingModel()
void updateFileDataInArray(const Hash &aFingerPrint, bool aEmit)