53 lines
769 B
C
53 lines
769 B
C
|
#ifndef CONFIG_H
|
||
|
#define CONFIG_H
|
||
|
|
||
|
#include <QString>
|
||
|
#include <QMap>
|
||
|
#include <QPointF>
|
||
|
|
||
|
|
||
|
struct Scope {
|
||
|
int x{ 0 };
|
||
|
int y{ 0 };
|
||
|
int width{ 0 };
|
||
|
int height{ 0 };
|
||
|
int shape{ 1 };
|
||
|
int rotate{ 0 };
|
||
|
};
|
||
|
|
||
|
struct MediaInfo {
|
||
|
int id{ 0 };
|
||
|
QString button;
|
||
|
QString name;
|
||
|
QString describe;
|
||
|
QStringList images;
|
||
|
int start{ 0 }; // 0-右侧, 1-中间, 2-左侧
|
||
|
QPointF end;
|
||
|
Scope scope;
|
||
|
};
|
||
|
|
||
|
struct MedianItem {
|
||
|
int index{ 0 };
|
||
|
int type{ 0 };
|
||
|
QString name;
|
||
|
QMap<int32_t, MediaInfo> datas;
|
||
|
};
|
||
|
|
||
|
struct Config {
|
||
|
int port{9527};
|
||
|
QMap<int32_t, MedianItem> datas;
|
||
|
};
|
||
|
|
||
|
enum class DetailedType : int8_t {
|
||
|
DT_Matian,
|
||
|
DT_Yangjiao,
|
||
|
DT_Hanwang,
|
||
|
DT_Qinquan,
|
||
|
DT_Guaier,
|
||
|
DT_Shixia,
|
||
|
DT_Liaoyang,
|
||
|
DT_Tongyu,
|
||
|
};
|
||
|
|
||
|
#endif // CONFIG_H
|