年前提交
This commit is contained in:
30
camera_info.h
Normal file
30
camera_info.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user