LibEngsas
|
A model to represent MimeTypes, related applications and available settings. More...
#include <emimetypemodel.h>
Public Member Functions | |
EMimeTypeModel (QObject *parent=0) | |
~EMimeTypeModel () | |
void | addMimeType (EMimeType *mimeType) |
EMimeType * | getMimeType (QString mimeType) |
EMimeType * | getMimeType (int row) |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
bool | loadModel () |
bool | saveModel () |
![]() | |
EAbstractItemModel (QObject *parent=0) | |
virtual | ~EAbstractItemModel () |
Private Member Functions | |
EMimeModelItem * | elementFromIndex (const QModelIndex &index) const |
Private Attributes | |
QList< EMimeType * > | mimeTypes |
Additional Inherited Members | |
![]() | |
void | error (QString msg) |
void | warning (QString msg) |
void | information (QString msg) |
void | eRowsInserted (const QModelIndex &parent, int start, int end) |
Replacement of private signal rowsInserted(). More... | |
void | eRowsRemoved (const QModelIndex &parent, int start, int end) |
Replacement of private signal rowsRemoved(). More... | |
![]() | |
static void | connectByPass (QObject *parent, EAbstractItemModel *child) |
static void | connectByPass (EAbstractItemModel *parent, QObject *child) |
![]() | |
virtual void | errorByPass (const QString &message) |
![]() | |
virtual void | warningByPass (const QString &message) |
virtual void | informationByPass (const QString &message) |
A model to represent MimeTypes, related applications and available settings.
model to represant MimeTypes, the application which can be used to open it, the suffix of the mimetype and the default application choosen by the user
EMimeTypeModel::EMimeTypeModel | ( | QObject * | parent = 0 | ) |
EMimeTypeModel::~EMimeTypeModel | ( | ) |
void EMimeTypeModel::addMimeType | ( | EMimeType * | mimeType | ) |
int EMimeTypeModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
QVariant EMimeTypeModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
|
private |
EMimeType * EMimeTypeModel::getMimeType | ( | QString | mimeType | ) |
EMimeType * EMimeTypeModel::getMimeType | ( | int | row | ) |
bool EMimeTypeModel::hasChildren | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
QVariant EMimeTypeModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
QModelIndex EMimeTypeModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
bool EMimeTypeModel::loadModel | ( | ) |
QModelIndex EMimeTypeModel::parent | ( | const QModelIndex & | index | ) | const |
int EMimeTypeModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
bool EMimeTypeModel::saveModel | ( | ) |
|
private |