音视频通讯SDK API参考手册  Windows 1.6.0
av_device_base.h
1 #ifndef AV_DEVICE_BASE_H_
2 #define AV_DEVICE_BASE_H_
3 
4 #include "av_common.h"
5 
6 namespace tencent {
7 namespace av {
8 
18 class AV_EXPORT AVDevice {
19  public:
22  DEVICE_OPERATION_UNKNOWN = 0,
23  DEVICE_OPERATION_OPEN = 1,
24  DEVICE_OPERATION_CLOSE = 2,
25  };
26 
28  struct Info {
30  Info() {}
31 
33  Info(const Info& other) {
34  string_id = other.string_id;
35  name = other.name;
36  description = other.description;
37  }
38 
39  virtual ~Info() {}
40 
41  std::string string_id;
42  std::string name;
43  std::string description;
44  };
45 
53  virtual const std::string& GetId() const = 0;
54 
64  virtual const std::string& GetType() const = 0;
65 
71  virtual const Info& GetInfo() const = 0;
72 
78  virtual void SetInfo(const Info& info) = 0;
79 
87  virtual bool IsSelected() const = 0;
88 
94  virtual void SetSelect(bool is_select = true) = 0;
95 };
96 
97 } // namespace av
98 } // namespace tencent
99 
100 #endif // #ifndef AV_DEVICE_BASE_H_
Definition: av_audio_ctrl.h:6
Info(const Info &other)
拷贝构造函数。
Definition: av_device_base.h:33
virtual ~Info()
Definition: av_device_base.h:39
设备基本信息。
Definition: av_device_base.h:28
std::string string_id
设备Id,可以作为多个设备间的唯一标识。
Definition: av_device_base.h:41
Info()
默认构造函数。
Definition: av_device_base.h:30
std::string name
设备名称。
Definition: av_device_base.h:42
std::string description
设备描述。
Definition: av_device_base.h:43
音视频设备封装类的基类。
Definition: av_device_base.h:18
DeviceOperation
设备操作类型。
Definition: av_device_base.h:21