1/* 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#ifndef WEBRTC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_INTERFACE_TB_CAPTURE_DEVICE_H_ 12#define WEBRTC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_INTERFACE_TB_CAPTURE_DEVICE_H_ 13 14#include <string> 15 16#include "webrtc/modules/video_capture/include/video_capture_factory.h" 17 18class TbInterfaces; 19 20class TbCaptureDevice 21{ 22public: 23 TbCaptureDevice(TbInterfaces& Engine); 24 ~TbCaptureDevice(void); 25 26 int captureId; 27 void ConnectTo(int videoChannel); 28 void Disconnect(int videoChannel); 29 std::string device_name() const; 30 31private: 32 TbInterfaces& ViE; 33 webrtc::VideoCaptureModule* vcpm_; 34 std::string device_name_; 35}; 36 37#endif // WEBRTC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_INTERFACE_TB_CAPTURE_DEVICE_H_ 38