#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