AntiClipSettings/DataStructure.h
2024-08-21 16:03:49 +08:00

23 lines
524 B
C

#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;
QString ip;
QString netmask;
QString gateway;
};
Q_DECLARE_METATYPE(NetworkInfomation)
#endif // __DATASTRUCTURE_H__