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

The representation of an MimeType, related applications and settings. More...

#include <emimetype.h>

+ Inheritance diagram for EMimeType:
+ Collaboration diagram for EMimeType:

Public Member Functions

 EMimeType (QString newName="")
 
 ~EMimeType ()
 
void setName (QString newName)
 
QString name () const
 
void setSuffix (QString suffix)
 
QString suffix () const
 
void setPrefix (QString prefix)
 
QString prefix () const
 
void setDefaultProgram (EMimeProgram *newProgram)
 
void setDefaultProgram (QString newProgram)
 
EMimeProgramdefaultProgram () const
 
void setPossibleProgram (QString possibleProgram)
 
void setPossibleProgram (QFileInfo possibleProgram)
 
void setPossibleProgram (EMimeProgram *possibleProgram)
 
QList< EMimeProgram * > possiblePrograms () const
 
int rowCount () const
 
bool saveMimeType ()
 
bool loadMimeType (QString newName="")
 
bool operator== (const EMimeType &compareType) const
 
bool operator!= (const EMimeType &compareType) const
 
- Public Member Functions inherited from EMimeModelItem
 EMimeModelItem ()
 
virtual ~EMimeModelItem ()
 

Static Public Member Functions

static QString group ()
 

Private Attributes

QString myName
 
QString mySuffix
 
QString myPrefix
 
EMimeProgrammyDefaultProgram
 
QList< EMimeProgram * > myPossiblePrograms
 

Detailed Description

The representation of an MimeType, related applications and settings.

Constructor & Destructor Documentation

EMimeType::EMimeType ( QString  newName = "")

+ Here is the call graph for this function:

EMimeType::~EMimeType ( )

Member Function Documentation

EMimeProgram * EMimeType::defaultProgram ( ) const

+ Here is the caller graph for this function:

static QString EMimeType::group ( )
inlinestatic

+ Here is the caller graph for this function:

bool EMimeType::loadMimeType ( QString  newName = "")

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString EMimeType::name ( ) const

mime type name is for example application/pdf

+ Here is the caller graph for this function:

bool EMimeType::operator!= ( const EMimeType compareType) const

+ Here is the call graph for this function:

bool EMimeType::operator== ( const EMimeType compareType) const

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QList< EMimeProgram * > EMimeType::possiblePrograms ( ) const

+ Here is the caller graph for this function:

QString EMimeType::prefix ( ) const

+ Here is the caller graph for this function:

int EMimeType::rowCount ( ) const

+ Here is the caller graph for this function:

bool EMimeType::saveMimeType ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EMimeType::setDefaultProgram ( EMimeProgram newProgram)

sets the default application for this mimetype

Todo:
possiblePrograms().contains(Program*) isn't working!

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EMimeType::setDefaultProgram ( QString  newProgram)

+ Here is the call graph for this function:

void EMimeType::setName ( QString  newName)

+ Here is the caller graph for this function:

void EMimeType::setPossibleProgram ( QString  possibleProgram)

+ Here is the caller graph for this function:

void EMimeType::setPossibleProgram ( QFileInfo  possibleProgram)

+ Here is the call graph for this function:

void EMimeType::setPossibleProgram ( EMimeProgram possibleProgram)

+ Here is the call graph for this function:

void EMimeType::setPrefix ( QString  prefix)

prefix means something like protocol clears suffix (

See also
setSuffix())

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EMimeType::setSuffix ( QString  suffix)

suffix means *.suffix like bla/bla/bla/bli.pdf the suffix is pdf suffix and prefix can not be set the same time, so this clears prefix

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString EMimeType::suffix ( ) const

+ Here is the caller graph for this function:

Member Data Documentation

EMimeProgram* EMimeType::myDefaultProgram
private
QString EMimeType::myName
private
QList<EMimeProgram*> EMimeType::myPossiblePrograms
private
QString EMimeType::myPrefix
private
QString EMimeType::mySuffix
private

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