#ifndef CONFIG_H #define CONFIG_H #include #include #include 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 datas; }; struct Config { int port{9527}; QMap 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