TCCC Agent API
Public Member Functions | List of all members
tccc::ITCCCDeviceCollection Class Referenceabstract

#include <ITCCCDeviceManager.h>

Public Member Functions

virtual uint32_t getCount ()=0
 设备数量
 
virtual const char * getDeviceName (uint32_t index)=0
 设备名字 (UTF-8),index 为设备索引,值为 [0,getCount)。返回值为设备名称 (UTF-8)
 
virtual const char * getDevicePID (uint32_t index)=0
 设备唯一标识 (UTF-8) index 为设备索引,值为 [0,getCount)
 
virtual const char * getDeviceProperties (uint32_t index)=0
 
virtual void release ()=0
 释放设备列表,请不要使用 delete 释放资源 !!!
 

Detailed Description

设备信息列表(仅适用于桌面平台)

此结构体的作用相当于 std::vector<ITCCCDeviceInfo>,用于解决不同版本的 STL 容器的二进制兼容问题。

Member Function Documentation

◆ getDeviceProperties()

virtual const char * tccc::ITCCCDeviceCollection::getDeviceProperties ( uint32_t  index)
pure virtual

设备信息(json格式)

Note
  • 示例:{"SupportedResolution":[{"width":640,"height":480},{"width":320,"height":240}]} param index 设备索引,值为 [0,getCount),return 返回 json 格式的设备信息

The documentation for this class was generated from the following file: