LibEngsas
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EMimeTypeModel Class Reference

A model to represent MimeTypes, related applications and available settings. More...

#include <emimetypemodel.h>

+ Inheritance diagram for EMimeTypeModel:
+ Collaboration diagram for EMimeTypeModel:

Public Member Functions

 EMimeTypeModel (QObject *parent=0)
 ~EMimeTypeModel ()
void addMimeType (EMimeType *mimeType)
EMimeTypegetMimeType (QString mimeType)
EMimeTypegetMimeType (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 ()
- Public Member Functions inherited from EAbstractItemModel
 EAbstractItemModel (QObject *parent=0)
virtual ~EAbstractItemModel ()

Private Member Functions

EMimeModelItemelementFromIndex (const QModelIndex &index) const

Private Attributes

QList< EMimeType * > mimeTypes

Additional Inherited Members

- Signals inherited from EAbstractItemModel
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().
void eRowsRemoved (const QModelIndex &parent, int start, int end)
 Replacement of private signal rowsRemoved().
- Static Public Member Functions inherited from EAbstractItemModel
static void connectByPass (QObject *parent, EAbstractItemModel *child)
static void connectByPass (EAbstractItemModel *parent, QObject *child)
- Protected Slots inherited from EAbstractItemModel
virtual void errorByPass (const QString &message)
virtual void warningByPass (const QString &message)
virtual void informationByPass (const QString &message)

Detailed Description

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

Constructor & Destructor Documentation

EMimeTypeModel::EMimeTypeModel ( QObject *  parent = 0)
EMimeTypeModel::~EMimeTypeModel ( )

Member Function Documentation

void EMimeTypeModel::addMimeType ( EMimeType mimeType)

+ Here is the caller graph for this function:

int EMimeTypeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QVariant EMimeTypeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

EMimeModelItem * EMimeTypeModel::elementFromIndex ( const QModelIndex &  index) const
private

+ Here is the caller graph for this function:

EMimeType * EMimeTypeModel::getMimeType ( QString  mimeType)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

EMimeType * EMimeTypeModel::getMimeType ( int  row)
bool EMimeTypeModel::hasChildren ( const QModelIndex &  parent = QModelIndex()) const

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EMimeTypeModel::loadModel ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QModelIndex EMimeTypeModel::parent ( const QModelIndex &  index) const

+ Here is the call graph for this function:

int EMimeTypeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EMimeTypeModel::saveModel ( )

+ Here is the call graph for this function:

Member Data Documentation

QList<EMimeType*> EMimeTypeModel::mimeTypes
private

The documentation for this class was generated from the following files: