AntiClipSettings/DataStructure.h

23 lines
524 B
C
Raw Normal View History

2024-08-16 16:24:15 +08:00
#ifndef __DATASTRUCTURE_H__
#define __DATASTRUCTURE_H__
#include <QObject>
#include <QQmlEngine>
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)
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;
};
Q_DECLARE_METATYPE(NetworkInfomation)
#endif // __DATASTRUCTURE_H__