Model-class for helping display of shared binary blobs, usually from a profile.
More...
#include <binaryfilelistingmodel.h>
Model-class for helping display of shared binary blobs, usually from a profile.
BinaryFileListingModel::BinaryFileListingModel |
( |
QList< Hash > & |
aFilesToList | ) |
|
BinaryFileListingModel::~BinaryFileListingModel |
( |
| ) |
|
void BinaryFileListingModel::addFile |
( |
const Hash & |
aFingerPrint | ) |
|
method for removing a reader. too.
- Parameters
-
aFingerPrint | is fingerprint of the file to add |
virtual int BinaryFileListingModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- number of columns in model
virtual QVariant BinaryFileListingModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- data to display in list
QString BinaryFileListingModel::fileDisplayNameByFingerPrint |
( |
const Hash & |
aFingerPrint | ) |
|
method for retrieving display-name of a file
virtual QVariant BinaryFileListingModel::headerData |
( |
int |
aSection, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
virtual |
void BinaryFileListingModel::removeFile |
( |
const Hash & |
aFingerPrint | ) |
|
method for removing a file. too.
- Parameters
-
aFingerPrint | is fingerprint of the file to remove |
virtual int BinaryFileListingModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
virtual |
re-implemented from QAbstractTableModel
- Returns
- number of rows in list
void BinaryFileListingModel::updateFileDataInArray |
( |
const Hash & |
aFingerPrint, |
|
|
bool |
aEmit |
|
) |
| |
|
private |
QList<Hash>& BinaryFileListingModel::iFilesToList |
|
private |
QList<QPair<Hash,QString> > BinaryFileListingModel::iNamesAndFingerPrints |
|
private |
The documentation for this class was generated from the following file: