blob: 84d3f77d4693327e38793c83e62cd72c170a2b72 [file] [log] [blame]
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +00001/*
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
andrew@webrtc.org5f6856f2012-10-30 21:58:00 +000016#include "webrtc/modules/video_capture/include/video_capture_factory.h"
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000017
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_