LibEngsas
|
The representation of an MimeType, related applications and settings. More...
#include <emimetype.h>
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) |
EMimeProgram * | defaultProgram () 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 |
![]() | |
EMimeModelItem () | |
virtual | ~EMimeModelItem () |
Static Public Member Functions | |
static QString | group () |
Private Attributes | |
QString | myName |
QString | mySuffix |
QString | myPrefix |
EMimeProgram * | myDefaultProgram |
QList< EMimeProgram * > | myPossiblePrograms |
The representation of an MimeType, related applications and settings.
EMimeType::EMimeType | ( | QString | newName = "" | ) |
EMimeType::~EMimeType | ( | ) |
EMimeProgram * EMimeType::defaultProgram | ( | ) | const |
|
inlinestatic |
bool EMimeType::loadMimeType | ( | QString | newName = "" | ) |
QString EMimeType::name | ( | ) | const |
mime type name is for example application/pdf
bool EMimeType::operator!= | ( | const EMimeType & | compareType | ) | const |
bool EMimeType::operator== | ( | const EMimeType & | compareType | ) | const |
QList< EMimeProgram * > EMimeType::possiblePrograms | ( | ) | const |
QString EMimeType::prefix | ( | ) | const |
int EMimeType::rowCount | ( | ) | const |
bool EMimeType::saveMimeType | ( | ) |
void EMimeType::setDefaultProgram | ( | EMimeProgram * | newProgram | ) |
sets the default application for this mimetype
void EMimeType::setDefaultProgram | ( | QString | newProgram | ) |
void EMimeType::setName | ( | QString | newName | ) |
void EMimeType::setPossibleProgram | ( | QString | possibleProgram | ) |
void EMimeType::setPossibleProgram | ( | QFileInfo | possibleProgram | ) |
void EMimeType::setPossibleProgram | ( | EMimeProgram * | possibleProgram | ) |
void EMimeType::setPrefix | ( | QString | prefix | ) |
prefix means something like protocol clears suffix (
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
QString EMimeType::suffix | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |