NCL Composer  0.1.5
 All Classes Functions Variables Pages
QnstUtil Class Reference
Collaboration diagram for QnstUtil:

Static Public Member Functions

static QnstGraphicsEntitymakeGraphicsEntity (Qnst::EntityType type, QnstGraphicsEntity *parent=0, const QMap< QString, QString > &props=(QMap< QString, QString >()))
 Creates an entity based on the type passed as parameter. More...
 
static Qnst::EntityType getnstTypeFromMime (const QString &mimeType)
 Returns the Qnst::EntityType based on the media mimetype. More...
 
static QString iconFromMediaType (Qnst::EntityType type)
 Returns the icon that represents the Qnst::EntityType. More...
 
static Qnst::EntityType getnstTypeFromExtension (const QString &ext)
 Returns the media type based on the extension of the media source. More...
 
static Qnst::EntityType getnstTypeFromStr (const QString &strType)
 Returns the media type based on the string the represent that type. More...
 
static QString getStrFromNstType (Qnst::EntityType type)
 Returns the string that represents the type. More...
 
static QString getPrefixIdFromType (Qnst::EntityType type)
 Returns a media identifier prefix for an specific qnst entity type. More...
 
static Qnst::BindType getBindTypeFromStr (const QString &role)
 Returns the Qnst::BindType related to the string role passed as parameter. More...
 
static QString getStrFromBindType (Qnst::BindType type)
 Returns a string that represents the QnstBindType passed as parameter. More...
 

Detailed Description

Definition at line 11 of file qnstutil.h.

Member Function Documentation

Qnst::BindType QnstUtil::getBindTypeFromStr ( const QString &  role)
static

Returns the Qnst::BindType related to the string role passed as parameter.

  • role the string of the role (onBegin, onEnd, start, stop, ...)
    Returns
    the Qnst::BindType related to that string.

Definition at line 279 of file qnstutil.cpp.

Qnst::EntityType QnstUtil::getnstTypeFromExtension ( const QString &  ext)
static

Returns the media type based on the extension of the media source.

  • ext the extension of the path.
    Returns
    the media type associated with that extension.

Definition at line 247 of file qnstutil.cpp.

Qnst::EntityType QnstUtil::getnstTypeFromMime ( const QString &  mimeType)
static

Returns the Qnst::EntityType based on the media mimetype.

  • mimeType the mime-type.
Returns
the qnst media type.

Definition at line 209 of file qnstutil.cpp.

Qnst::EntityType QnstUtil::getnstTypeFromStr ( const QString &  strType)
static

Returns the media type based on the string the represent that type.

  • strType the type specified in a string.
    Returns
    the media type associated with that string.

Definition at line 255 of file qnstutil.cpp.

QString QnstUtil::getPrefixIdFromType ( Qnst::EntityType  type)
static

Returns a media identifier prefix for an specific qnst entity type.

  • type the qnst entity type.
    Returns
    the prefix for the entity type.

Definition at line 271 of file qnstutil.cpp.

QString QnstUtil::getStrFromBindType ( Qnst::BindType  type)
static

Returns a string that represents the QnstBindType passed as parameter.

  • type the Qnst::BindType
    Returns
    a string that represents that type.

Definition at line 287 of file qnstutil.cpp.

QString QnstUtil::getStrFromNstType ( Qnst::EntityType  type)
static

Returns the string that represents the type.

One of the use of this function is to serialize the Qnst::EntityType.

  • type the entity type
    Returns
    the string that represent that type.

Definition at line 263 of file qnstutil.cpp.

QString QnstUtil::iconFromMediaType ( Qnst::EntityType  type)
static

Returns the icon that represents the Qnst::EntityType.

  • type the Qnst::EntityType.
    Returns
    the path to the icon of that type.

Definition at line 236 of file qnstutil.cpp.

QnstGraphicsEntity * QnstUtil::makeGraphicsEntity ( Qnst::EntityType  type,
QnstGraphicsEntity parent = 0,
const QMap< QString, QString > &  props = (QMap<QString,QString>()) 
)
static

Creates an entity based on the type passed as parameter.

  • type the type of entity to be created.
  • parent the parent of the entity to be created.
Returns
a new QnstGraphicsEntity

Definition at line 142 of file qnstutil.cpp.


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