资源简介
室内环境监测系统,为环境数据分析和环境的改善提供数据依据,是智能家居组成的重要部分
代码片段和文件信息
#include “deviceinfo.h“
DeviceInfo::DeviceInfo()
{
}
DeviceInfo::DeviceInfo(const QString &deviceId const QDateTime &dataOccureTime const QString &deviceData const QString &dataHourFlag)
{
m_deviceId = deviceId;
m_dataOccureTime = dataOccureTime;
m_deviceData = deviceData;
m_dataHourFlag = dataHourFlag;
}
DeviceInfo::DeviceInfo(const DeviceInfo &other)
{
this->m_deviceId = other.m_deviceId;
this->m_dataOccureTime = other.m_dataOccureTime;
this->m_deviceData = other.m_deviceData;
this->m_dataHourFlag = other.m_dataHourFlag;
}
DeviceInfo DeviceInfo::operator=(const DeviceInfo &other)
{
if(this == &other)
{
return *this;
}
this->m_deviceId = other.m_deviceId;
this->m_dataOccureTime = other.m_dataOccureTime;
this->m_deviceData = other.m_deviceData;
this->m_dataHourFlag = other.m_dataHourFlag;
return *this;
}
bool DeviceInfo::operator ==(const DeviceInfo &other)
{
if(this->m_deviceId == other.m_deviceId &&
this->m_dataOccureTime == other.m_dataOccureTime)
{
return true;
}
return false;
}
void DeviceInfo::setDeviceID(const QString &deviceId)
{
m_deviceId = deviceId;
}
QString DeviceInfo::getDeviceID() const
{
return m_deviceId;
}
void DeviceInfo::setDataOccureTime(const QDateTime &dataOccureTime)
{
m_dataOccureTime = dataOccureTime;
}
QDateTime DeviceInfo::getDataOccureTime() const
{
return m_dataOccureTime;
}
void DeviceInfo::setDeviceData(const QString &deviceData)
{
m_deviceData = deviceData;
}
QString DeviceInfo::getDeviceData() const
{
return m_deviceData;
}
void DeviceInfo::setDataHourFlag(const QString &dataHourFlag)
{
m_dataHourFlag = dataHourFlag;
}
QString DeviceInfo::getDataHourFlag() const
{
return m_dataHourFlag;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-05-23 11:07 MonitorSystem\
目录 0 2016-01-22 13:53 MonitorSystem\Databa
文件 350208 2016-01-22 13:53 MonitorSystem\Databa
文件 1463 2016-01-18 21:18 MonitorSystem\MonitorSystem.pro
文件 18280 2016-05-23 11:07 MonitorSystem\MonitorSystem.pro.user
文件 18280 2016-03-08 19:54 MonitorSystem\MonitorSystem.pro.user.16
文件 3071 2016-03-14 13:50 MonitorSystem\MonitorSystem.pro.user.3.2-pre1
目录 0 2016-01-18 21:21 MonitorSystem\Qrc\
目录 0 2016-01-17 18:06 MonitorSystem\Qrc\Image\
目录 0 2016-01-14 17:19 MonitorSystem\Qrc\Image\ComboxMsg\
文件 7069 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\background.png
文件 1459 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\closeHover.png
文件 1325 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\closeNormal.png
文件 1444 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\closePressed.png
文件 2262 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\critical.png
文件 2005 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\information.png
文件 2095 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\question.png
文件 2020 2015-06-03 10:34 MonitorSystem\Qrc\Image\ComboxMsg\warning.png
目录 0 2016-01-17 18:06 MonitorSystem\Qrc\Image\CurveGraph\
文件 9017 2016-01-14 16:30 MonitorSystem\Qrc\Image\CurveGraph\refresh.png
目录 0 2016-01-14 15:17 MonitorSystem\Qrc\Image\DHT11Sensor\
文件 4909 2015-06-03 10:34 MonitorSystem\Qrc\Image\DHT11Sensor\addHover.png
文件 4756 2015-06-03 10:34 MonitorSystem\Qrc\Image\DHT11Sensor\addNormal.png
文件 4785 2015-06-03 10:34 MonitorSystem\Qrc\Image\DHT11Sensor\addPressed.png
文件 5861 2016-01-14 15:17 MonitorSystem\Qrc\Image\DHT11Sensor\bellOFF.png
文件 9630 2016-01-14 15:12 MonitorSystem\Qrc\Image\DHT11Sensor\bellON.png
文件 2834 2016-01-14 15:01 MonitorSystem\Qrc\Image\DHT11Sensor\bulbGreen.png
文件 3316 2016-01-14 15:02 MonitorSystem\Qrc\Image\DHT11Sensor\bulbNormal.png
文件 2734 2016-01-14 15:01 MonitorSystem\Qrc\Image\DHT11Sensor\bulbRed.png
文件 4536 2015-06-03 10:34 MonitorSystem\Qrc\Image\DHT11Sensor\subHover.png
文件 4424 2015-06-03 10:34 MonitorSystem\Qrc\Image\DHT11Sensor\subNormal.png
............此处省略118个文件信息
- 上一篇:基于Qt5图形视图框架的俄罗斯方块
- 下一篇:计算结构 CPU
评论
共有 条评论