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::EMimeType ( QString  newName = "")
+ Here is the call graph for this function:

◆ ~EMimeType()

EMimeType::~EMimeType ( )

Member Function Documentation

◆ defaultProgram()

EMimeProgram * EMimeType::defaultProgram ( ) const
+ Here is the caller graph for this function:

◆ group()

static QString EMimeType::group ( )
inlinestatic
+ Here is the caller graph for this function:

◆ loadMimeType()

bool EMimeType::loadMimeType ( QString  newName = "")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ name()

QString EMimeType::name ( ) const

mime type name is for example application/pdf

+ Here is the caller graph for this function:

◆ operator!=()

bool EMimeType::operator!= ( const EMimeType compareType) const
+ Here is the call graph for this function:

◆ operator==()

bool EMimeType::operator== ( const EMimeType compareType) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ possiblePrograms()

QList< EMimeProgram * > EMimeType::possiblePrograms ( ) const
+ Here is the caller graph for this function:

◆ prefix()

QString EMimeType::prefix ( ) const
+ Here is the caller graph for this function:

◆ rowCount()

int EMimeType::rowCount ( ) const
+ Here is the caller graph for this function:

◆ saveMimeType()

bool EMimeType::saveMimeType ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDefaultProgram() [1/2]

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:

◆ setDefaultProgram() [2/2]

void EMimeType::setDefaultProgram ( QString  newProgram)
+ Here is the call graph for this function:

◆ setName()

void EMimeType::setName ( QString  newName)
+ Here is the caller graph for this function:

◆ setPossibleProgram() [1/3]

void EMimeType::setPossibleProgram ( QString  possibleProgram)
+ Here is the caller graph for this function:

◆ setPossibleProgram() [2/3]

void EMimeType::setPossibleProgram ( QFileInfo  possibleProgram)
+ Here is the call graph for this function:

◆ setPossibleProgram() [3/3]

void EMimeType::setPossibleProgram ( EMimeProgram possibleProgram)
+ Here is the call graph for this function:

◆ setPrefix()

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:

◆ setSuffix()

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:

◆ suffix()

QString EMimeType::suffix ( ) const
+ Here is the caller graph for this function:

Member Data Documentation

◆ myDefaultProgram

EMimeProgram* EMimeType::myDefaultProgram
private

◆ myName

QString EMimeType::myName
private

◆ myPossiblePrograms

QList<EMimeProgram*> EMimeType::myPossiblePrograms
private

◆ myPrefix

QString EMimeType::myPrefix
private

◆ mySuffix

QString EMimeType::mySuffix
private

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