Emergency 2017 Dokumentation  v3.0.1
qsf::editor::PrototypesMimeData Class Reference

Prototypes Qt mime data. More...

#include <PrototypesMimeData.h>

Public Member Functions

 PrototypesMimeData (const std::string &prototype)
 Constructor for creating prototypes Qt mime data by using a given UTF-8 prefab asset name. More...
 
 PrototypesMimeData (const QList< std::string > &qList)
 Constructor for creating prototypes Qt mime data by using a given list of UTF-8 prefab asset names. More...
 
virtual ~PrototypesMimeData ()
 Destructor. More...
 
PrototypegetFirstPrototypePointer () const
 Return a pointer to the first prototype instance inside this Qt mime data instance. More...
 

Static Public Attributes

static const QString MIME_TYPE
 Mime type "qsf/prototypes". More...
 

Detailed Description

Prototypes Qt mime data.

Note
  • Stores information about 1..n prototypes
Todo:
  • TODO(co): Add more useful methods

Definition at line 51 of file PrototypesMimeData.h.

Constructor & Destructor Documentation

qsf::editor::PrototypesMimeData::PrototypesMimeData ( const std::string &  prototype)
explicit

Constructor for creating prototypes Qt mime data by using a given UTF-8 prefab asset name.

Parameters
[in]prototypeUTF-8 prefab asset name (e.g. "sample/prefab/vehicle/ambulance")
qsf::editor::PrototypesMimeData::PrototypesMimeData ( const QList< std::string > &  qList)
explicit

Constructor for creating prototypes Qt mime data by using a given list of UTF-8 prefab asset names.

Parameters
[in]qListList of UTF-8 prefab asset names (e.g. "sample/prefab/vehicle/ambulance", "sample/prefab/animal/squirrel" and so on)
qsf::editor::PrototypesMimeData::~PrototypesMimeData ( )
inlinevirtual

Destructor.

Definition at line 16 of file PrototypesMimeData-inl.h.

Member Function Documentation

Prototype* qsf::editor::PrototypesMimeData::getFirstPrototypePointer ( ) const

Return a pointer to the first prototype instance inside this Qt mime data instance.

Returns
Pointer to the first prototype instance inside this Qt mime data instance, null pointer on error

Member Data Documentation

const QString qsf::editor::PrototypesMimeData::MIME_TYPE
static

Mime type "qsf/prototypes".

Definition at line 59 of file PrototypesMimeData.h.


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