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

An application, used by EMimeType. More...

#include <emimeprogram.h>

+ Inheritance diagram for EMimeProgram:
+ Collaboration diagram for EMimeProgram:

Public Member Functions

 EMimeProgram (QString newFilePath=QString(), EMimeType *newParent=0)
 
EMimeTypeparent () const
 
void setParent (EMimeType *newParent=0)
 
void setPath (QDir newPath)
 
void setPath (QString newPath)
 
QDir path () const
 
void setProgram (QString newFile)
 
void setProgram (QFileInfo newFile)
 
QString program () const
 
QFileInfo file () const
 
Q_DECL_DEPRECATED void setFilePath (QString newFilePath)
 
QString completePath () const
 Returns the complete path (e.g.: /usr/bin/kate). More...
 
bool operator== (const EMimeProgram &other) const
 
bool operator!= (const EMimeProgram &other) const
 
- Public Member Functions inherited from EMimeModelItem
 EMimeModelItem ()
 
virtual ~EMimeModelItem ()
 

Private Attributes

QFileInfo myFile
 
EMimeTypemyParent
 

Detailed Description

An application, used by EMimeType.

Constructor & Destructor Documentation

◆ EMimeProgram()

EMimeProgram::EMimeProgram ( QString  newFilePath = QString(),
EMimeType newParent = 0 
)
+ Here is the call graph for this function:

Member Function Documentation

◆ completePath()

QString EMimeProgram::completePath ( ) const

Returns the complete path (e.g.: /usr/bin/kate).

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ file()

QFileInfo EMimeProgram::file ( ) const

all informations about the program filename

+ Here is the caller graph for this function:

◆ operator!=()

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

◆ operator==()

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

◆ parent()

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

◆ path()

QDir EMimeProgram::path ( ) const

path to program (e.g. /usr/bin is the path of /usr/bin/kate) can be set via

See also
setPath(QDir newPath) and
setPath(QString newPath)
+ Here is the caller graph for this function:

◆ program()

QString EMimeProgram::program ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFilePath()

void EMimeProgram::setFilePath ( QString  newFilePath)

set's path and filename at once (e.g. newFilePath = "/usr/bin/kate" for kate)

◆ setParent()

void EMimeProgram::setParent ( EMimeType newParent = 0)
+ Here is the caller graph for this function:

◆ setPath() [1/2]

void EMimeProgram::setPath ( QDir  newPath)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPath() [2/2]

void EMimeProgram::setPath ( QString  newPath)
+ Here is the call graph for this function:

◆ setProgram() [1/2]

void EMimeProgram::setProgram ( QString  newFile)

the filename of the program (e.g. kate from /usr/bin/kate)

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setProgram() [2/2]

void EMimeProgram::setProgram ( QFileInfo  newFile)

set's path and filename at once (e.g. newFile = "/usr/bin/kate" for kate)

Member Data Documentation

◆ myFile

QFileInfo EMimeProgram::myFile
private

◆ myParent

EMimeType* EMimeProgram::myParent
private

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