|
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/. */ |
|
4 |
|
5 #pragma once |
|
6 |
|
7 #include "CC_Common.h" |
|
8 |
|
9 extern "C" |
|
10 { |
|
11 #include "ccapi_types.h" |
|
12 } |
|
13 |
|
14 namespace CSF |
|
15 { |
|
16 |
|
17 class ECC_API CC_Device |
|
18 { |
|
19 public: |
|
20 NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CC_Device) |
|
21 protected: |
|
22 CC_Device() {} |
|
23 |
|
24 public: |
|
25 virtual ~CC_Device() {} |
|
26 |
|
27 virtual std::string toString() = 0; |
|
28 |
|
29 virtual CC_DeviceInfoPtr getDeviceInfo () = 0; |
|
30 |
|
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. |
|
36 |
|
37 @return CC_CallPtr - the created call object wrapped in a smart_ptr. |
|
38 */ |
|
39 virtual CC_CallPtr createCall() = 0; |
|
40 |
|
41 virtual void enableVideo(bool enable) = 0; |
|
42 virtual void enableCamera(bool enable) = 0; |
|
43 virtual void setDigestNamePasswd (char *name, char *pw) = 0; |
|
44 |
|
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 } |