AntiClipSettings/DataStructure.h

34 lines
925 B
C
Raw Permalink Normal View History

2024-08-26 16:46:41 +08:00
#ifndef __DATASTRUCTURE_H__
2024-08-16 16:24:15 +08:00
#define __DATASTRUCTURE_H__
#include <QObject>
#include <QQmlEngine>
2024-09-11 14:18:56 +08:00
constexpr int ImageWidth = 576;
constexpr int ImageHeight = 320;
enum class ImageFormat : int {
Jpeg = 0,
YUV, // nv21 576x320
None, // 新增枚举需要放在这上面
};
std::ostream &operator<<(std::ostream &os, const ImageFormat &format);
2024-08-16 16:24:15 +08:00
struct NetworkInfomation {
Q_GADGET
QML_NAMED_ELEMENT(networkInfomation)
Q_PROPERTY(bool dhcp MEMBER dhcp)
Q_PROPERTY(QString ip MEMBER ip)
Q_PROPERTY(QString netmask MEMBER netmask)
Q_PROPERTY(QString gateway MEMBER gateway)
2024-08-22 10:48:28 +08:00
Q_PROPERTY(QString dns MEMBER dns)
2024-08-16 16:24:15 +08:00
public:
bool dhcp;
2024-08-21 16:03:49 +08:00
QString ip;
2024-08-16 16:24:15 +08:00
QString netmask;
QString gateway;
QString dns = "8.8.8.8"; // dns被屏蔽现在默认赋值 8.8.8.8 以通过校验
2024-08-16 16:24:15 +08:00
};
Q_DECLARE_METATYPE(NetworkInfomation)
#endif // __DATASTRUCTURE_H__