media/webrtc/signaling/src/softphonewrapper/CC_SIPCCLine.h

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:befab7f0e3b4
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 #ifndef _CC_SIPCCLINE_H
6 #define _CC_SIPCCLINE_H
7
8 #include "CC_Line.h"
9 #include <map>
10
11 #include "common/csf_common.h"
12 #include "common/Wrapper.h"
13
14 namespace CSF
15 {
16 DECLARE_NS_PTR(CC_SIPCCLine);
17 class CC_SIPCCLine : public CC_Line
18 {
19 private:
20 CSF_DECLARE_WRAP(CC_SIPCCLine, cc_lineid_t);
21
22 cc_lineid_t lineId;
23 CC_SIPCCLine (cc_lineid_t aLineId) : lineId(aLineId) { }
24
25 public:
26 virtual std::string toString() {
27 std::string result;
28 char tmpString[11];
29 csf_sprintf(tmpString, sizeof(tmpString), "%X", lineId);
30 result = tmpString;
31 return result;
32 };
33 virtual cc_lineid_t getID();
34 virtual CC_LineInfoPtr getLineInfo ();
35 virtual CC_CallPtr createCall ();
36 };
37
38 };
39
40
41 #endif

mercurial