qt/LedOK/wDevicesManager/ledcard.h

59 lines
1.7 KiB
C
Raw Normal View History

2022-01-04 18:11:48 +08:00
#ifndef LEDCARD_H
#define LEDCARD_H
#include <QObject>
2022-08-25 18:37:24 +08:00
class LedCard : public QObject {
2022-01-04 18:11:48 +08:00
Q_OBJECT
Q_PROPERTY(QString strCardId MEMBER m_strCardId NOTIFY CardIdChanged)
Q_PROPERTY(QString strCardIp MEMBER m_strCardIp NOTIFY CardIpChanged)
Q_PROPERTY(qint32 iCardWidth MEMBER m_iWidth NOTIFY WidthChanged)
Q_PROPERTY(qint32 iCardHeight MEMBER m_iHeight NOTIFY HeightChanged)
Q_PROPERTY(QString strCardRemarkName MEMBER m_strCardRemarkName NOTIFY CardRemarkNameChanged)
public:
LedCard(QObject *p = nullptr);
signals:
void CardIdChanged(const QString &);
void CardIpChanged(const QString &);
void WidthChanged(qint32 t);
void HeightChanged(qint32 t);
void CardRemarkNameChanged(const QString &);
public:
//属性
QString m_strCardId;
QString m_strCardIp;
qint32 m_iWidth = 0;
qint32 m_iHeight = 0;
QString m_strCardRemarkName = "";
QString starterversionName = "";
int starterPort = 0;
QString androidVersion = "";
int iHttpGetId = 0;
int androidHeight = 0;
//int iCardSystemVersion = 0;
int brightness = 255;
int androidWidth = 0;
int lastActive = 0;
QString strIMEI="";
QString HardVersion="0000";
int BrightnessLevel=255;
QString ScreenResolution="";
QString FirmwareVersion="";
QString strXixunplayerVersion="";
int strXixunplayerVersionCode=0;
bool bPassword=false;
void copyLedCardHTTPGetParam(LedCard *p);
void copyLedCardHTTPPostParam(LedCard *p);
bool CompareHTTPGetParam(LedCard *p);
bool CompareHTTPPostParam(LedCard *p);
//状态
bool m_bLockStatus=true;
bool m_bPowerStatus=true;
bool m_bOnLine=true;
};
#endif // LEDCARD_H