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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/signaling/src/softphonewrapper/CC_SIPCCLine.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     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 +#ifndef _CC_SIPCCLINE_H
     1.9 +#define _CC_SIPCCLINE_H
    1.10 +
    1.11 +#include "CC_Line.h"
    1.12 +#include <map>
    1.13 +
    1.14 +#include "common/csf_common.h"
    1.15 +#include "common/Wrapper.h"
    1.16 +
    1.17 +namespace CSF
    1.18 +{
    1.19 +	DECLARE_NS_PTR(CC_SIPCCLine);
    1.20 +    class CC_SIPCCLine : public CC_Line
    1.21 +    {
    1.22 +    private:
    1.23 +        CSF_DECLARE_WRAP(CC_SIPCCLine, cc_lineid_t);
    1.24 +
    1.25 +        cc_lineid_t lineId;
    1.26 +        CC_SIPCCLine (cc_lineid_t aLineId) : lineId(aLineId) { }
    1.27 +
    1.28 +    public:
    1.29 +        virtual std::string toString() {
    1.30 +            std::string result;
    1.31 +            char tmpString[11];
    1.32 +            csf_sprintf(tmpString, sizeof(tmpString), "%X", lineId);
    1.33 +            result = tmpString;
    1.34 +            return result;
    1.35 +        };
    1.36 +        virtual cc_lineid_t getID();
    1.37 +        virtual CC_LineInfoPtr getLineInfo ();
    1.38 +        virtual CC_CallPtr createCall ();
    1.39 +    };
    1.40 +
    1.41 +};
    1.42 +
    1.43 +
    1.44 +#endif

mercurial