Crossfire Server, Trunk
MimeUtils Namespace Reference

Functions

void addMime (QMimeData *data, const QString &mime, const QString &name)
 
void addQuestStep (QMimeData *data, QString code, int index)
 
template<class T >
static QList< T * > extract (const QMimeData *data, const QString &mime, AssetsCollection< T > *assets)
 
QList< QPair< QString, int > > extractQuestSteps (const QMimeData *data)
 

Variables

static const char * Archetype = "x-crossfire/archetype"
 
static const char * QuestStep = "x-crossfire/quest-step"
 
static const char * TreasureList = "x-crossfire/treasure-list"
 

Function Documentation

◆ addMime()

void MimeUtils::addMime ( QMimeData *  data,
const QString &  mime,
const QString &  name 
)

Definition at line 17 of file MimeUtils.cpp.

References navar-midane_time::data, and give::name.

Referenced by ArchetypeWrapper::drag().

+ Here is the caller graph for this function:

◆ addQuestStep()

void MimeUtils::addQuestStep ( QMimeData *  data,
QString  code,
int  index 
)

Definition at line 24 of file MimeUtils.cpp.

References navar-midane_time::data, npc_dialog::index, and QuestStep.

Referenced by QuestStepWrapper::drag().

+ Here is the caller graph for this function:

◆ extract()

template<class T >
static QList<T *> MimeUtils::extract ( const QMimeData *  data,
const QString &  mime,
AssetsCollection< T > *  assets 
)
static

Definition at line 31 of file MimeUtils.h.

References navar-midane_time::data, AssetsCollection< T, Key >::find(), and give::name.

Referenced by TreasureListWrapper::drop(), TreasureWrapper::drop(), and TreasurePanel::dropEvent().

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

◆ extractQuestSteps()

QList< QPair< QString, int > > MimeUtils::extractQuestSteps ( const QMimeData *  data)

Definition at line 31 of file MimeUtils.cpp.

References navar-midane_time::data, npc_dialog::index, give::name, and QuestStep.

Referenced by QuestWrapper::drop().

+ Here is the caller graph for this function:

Variable Documentation

◆ Archetype

◆ QuestStep

const char* MimeUtils::QuestStep = "x-crossfire/quest-step"
static

◆ TreasureList