qt/LedOK/device/ledcard.cpp
2023-04-18 14:14:46 +08:00

49 lines
1.8 KiB
C++

#include "ledcard.h"
LedCard::LedCard(QObject *p) : QObject(p) {
}
void LedCard::copyLedCardHTTPGetParam(LedCard *p)
{
m_strCardId = p->m_strCardId;
m_strCardIp = p->m_strCardIp;
if(p->m_strCardRemarkName!="")
m_strCardRemarkName=p->m_strCardRemarkName;
starterversionName = p->starterversionName ;
starterPort = p->starterPort ;
androidVersion = p->androidVersion ;
iHttpGetId = p->iHttpGetId ;
androidHeight = p->androidHeight ;
androidWidth = p->androidWidth ;
lastActive = p->lastActive ;
}
void LedCard::copyLedCardHTTPPostParam(LedCard *p)
{
strIMEI =p->strIMEI ;
HardVersion =p->HardVersion ;
BrightnessLevel =p->BrightnessLevel ;
ScreenResolution =p->ScreenResolution ;
FirmwareVersion =p->FirmwareVersion ;
}
bool LedCard::CompareHTTPGetParam(LedCard *p) {
//这里只比较httpGet devicelist打算应答
if(m_strCardIp!=p->m_strCardIp) return false;
if(m_strCardRemarkName!=p->m_strCardRemarkName) return false;
if(starterversionName!=p->starterversionName) return false;
if(androidVersion!=p->androidVersion) return false;
if(androidWidth!=p->androidWidth) return false;
if(androidHeight!=p->androidHeight) return false;
return true;
}
bool LedCard::CompareHTTPPostParam(LedCard *p)
{
//这里只比较httpGet devicelist打算应答
if(strIMEI!=p->strIMEI) return false;
if(HardVersion!=p->HardVersion) return false;
if(BrightnessLevel!=p->BrightnessLevel) return false;
if(ScreenResolution!=p->ScreenResolution) return false;
if(FirmwareVersion!=p->FirmwareVersion) return false;
return true;
}