Go to the documentation of this file.
19 #include <QDataStream>
24 static const char *
Archetype =
"x-crossfire/archetype";
26 static const char *
QuestStep =
"x-crossfire/quest-step";
28 void addMime(QMimeData *
data,
const QString &mime,
const QString &
name);
33 if (
data->hasFormat(mime)) {
34 QByteArray ba(
data->data(mime));
35 QDataStream df(&ba, QIODevice::ReadOnly);
39 if (!
name.isEmpty()) {
40 auto asset = assets->
find(
name.toLocal8Bit().data());
static const char * Archetype
void addMime(QMimeData *data, const QString &mime, const QString &name)
QList< QPair< QString, int > > extractQuestSteps(const QMimeData *data)
static const char * QuestStep
T * find(const Key &name)
static const char * TreasureList
void addQuestStep(QMimeData *data, QString code, int index)
static QList< T * > extract(const QMimeData *data, const QString &mime, AssetsCollection< T > *assets)