media/webrtc/signaling/include/CC_Device.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #pragma once
     7 #include "CC_Common.h"
     9 extern "C"
    10 {
    11 #include "ccapi_types.h"
    12 }
    14 namespace CSF
    15 {
    17     class ECC_API CC_Device
    18     {
    19     public:
    20         NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CC_Device)
    21     protected:
    22         CC_Device() {}
    24     public:
    25         virtual ~CC_Device() {}
    27         virtual std::string toString() = 0;
    29         virtual CC_DeviceInfoPtr getDeviceInfo () = 0;
    31         /**
    32            Create a call on the device. Line selection is on the first available line.
    33            Lines that have their MNC reached will be skipped. If you have a specific line
    34            you want to make a call on (assuming the device has more than available) then
    35            you should use CC_Line::createCall() to do that.
    37            @return CC_CallPtr - the created call object wrapped in a smart_ptr.
    38          */
    39         virtual CC_CallPtr createCall() = 0;
    41         virtual void enableVideo(bool enable) = 0;
    42         virtual void enableCamera(bool enable) = 0;
    43 		virtual void setDigestNamePasswd (char *name, char *pw) = 0;
    45     private:
    46 		// Cannot copy - clients should be passing the pointer not the object.
    47 		CC_Device& operator=(const CC_Device& rhs);
    48 		CC_Device(const CC_Device&);
    49     };
    50 }

mercurial