1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/include/CC_Device.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#pragma once 1.9 + 1.10 +#include "CC_Common.h" 1.11 + 1.12 +extern "C" 1.13 +{ 1.14 +#include "ccapi_types.h" 1.15 +} 1.16 + 1.17 +namespace CSF 1.18 +{ 1.19 + 1.20 + class ECC_API CC_Device 1.21 + { 1.22 + public: 1.23 + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CC_Device) 1.24 + protected: 1.25 + CC_Device() {} 1.26 + 1.27 + public: 1.28 + virtual ~CC_Device() {} 1.29 + 1.30 + virtual std::string toString() = 0; 1.31 + 1.32 + virtual CC_DeviceInfoPtr getDeviceInfo () = 0; 1.33 + 1.34 + /** 1.35 + Create a call on the device. Line selection is on the first available line. 1.36 + Lines that have their MNC reached will be skipped. If you have a specific line 1.37 + you want to make a call on (assuming the device has more than available) then 1.38 + you should use CC_Line::createCall() to do that. 1.39 + 1.40 + @return CC_CallPtr - the created call object wrapped in a smart_ptr. 1.41 + */ 1.42 + virtual CC_CallPtr createCall() = 0; 1.43 + 1.44 + virtual void enableVideo(bool enable) = 0; 1.45 + virtual void enableCamera(bool enable) = 0; 1.46 + virtual void setDigestNamePasswd (char *name, char *pw) = 0; 1.47 + 1.48 + private: 1.49 + // Cannot copy - clients should be passing the pointer not the object. 1.50 + CC_Device& operator=(const CC_Device& rhs); 1.51 + CC_Device(const CC_Device&); 1.52 + }; 1.53 +}