culturered_client/TouchScreen/Config.h
2024-09-07 11:34:44 +08:00

53 lines
748 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 };
};
struct MediaInfo {
int id{ 0 };
QString button;
QString name;
QString describe;
QStringList images;
int start{ 0 }; // 0-右侧, 1-中间, 2-左侧
QPointF end;
Scope scope;
QPoint landmark;
};
struct MedianItem {
int index{ 0 };
int type{ 0 };
QString name;
QMap<QString, MediaInfo> datas;
};
struct Config {
QString ip;
int port{9527};
QMap<int32_t, MedianItem> datas;
};
enum class DetailedType : int8_t {
DT_Matian,
DT_Guaier,
DT_Yangjiao,
DT_Qinquan,
DT_Tongyu,
DT_Liaoyang,
DT_Shixia,
DT_Hanwang,
};
#endif // CONFIG_H