mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-02-06 21:48:24 +08:00
25 lines
580 B
C++
25 lines
580 B
C++
#pragma once
|
|
|
|
#include "Common/PropertyHelper.h"
|
|
#include "TaoModel/TaoListItemBase.h"
|
|
#include <QObject>
|
|
class DeviceAddItem : public TaoListItemBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
AUTO_PROPERTY(QString, name, "")
|
|
AUTO_PROPERTY(QString, address, "")
|
|
AUTO_PROPERTY(QString, modelString, "")
|
|
AUTO_PROPERTY(bool, online, false)
|
|
|
|
public:
|
|
explicit DeviceAddItem(QObject *parent = nullptr);
|
|
virtual ~DeviceAddItem() override;
|
|
|
|
bool match(const QString &key) override;
|
|
quint32 toIPv4Address() const { return m_ipv4Address; }
|
|
|
|
private:
|
|
quint32 m_ipv4Address = 0;
|
|
};
|