Files
dvr/camera_info.h
2026-02-08 08:58:29 +08:00

31 lines
616 B
C++

#ifndef CAMERA_INFO_H
#define CAMERA_INFO_H
#include <QString>
#include <QJsonObject>
enum CameraType {
IR,
VI
};
class CameraInfo {
public:
static CameraInfo parseFrom(const QJsonObject& json);
CameraType getCameraType() const { return cameraType; }
QString getIP() const { return ip; }
unsigned int getPort() const { return port; }
QString getUsername() const { return username; }
QString getPassword() const { return password; }
private:
CameraType cameraType;
QString ip;
unsigned int port;
QString username;
QString password;
};
#endif // CAMERA_INFO_H