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

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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 #ifndef _CC_SIPCC_LINEINFO_H
     6 #define _CC_SIPCC_LINEINFO_H
     8 #include "CC_LineInfo.h"
    10 #include "common/Wrapper.h"
    12 namespace CSF
    13 {
    14 	DECLARE_NS_PTR(CC_SIPCCLineInfo);
    15     class CC_SIPCCLineInfo : public CC_LineInfo
    16     {
    17     public:
    18         ~CC_SIPCCLineInfo ();
    20     private:
    21         cc_lineinfo_ref_t lineinfo;
    22         CC_SIPCCLineInfo (cc_lineinfo_ref_t lineinfo);
    23         CSF_DECLARE_WRAP(CC_SIPCCLineInfo, cc_lineinfo_ref_t);
    25     public:
    26         virtual std::string getName();
    27         virtual std::string getNumber();
    28         virtual cc_uint32_t getButton();
    29         virtual cc_line_feature_t getLineType();
    30         virtual bool getRegState();
    31         virtual bool isCFWDActive();
    32         virtual std::string getCFWDName();
    33         virtual std::vector<CC_CallPtr> getCalls (CC_LinePtr linePtr);
    34         virtual std::vector<CC_CallPtr> getCallsByState (CC_LinePtr linePtr, cc_call_state_t state);
    35         virtual bool getMWIStatus();
    36         virtual cc_uint32_t getMWIType();
    37         virtual cc_uint32_t getMWINewMsgCount();
    38         virtual cc_uint32_t getMWIOldMsgCount();
    39         virtual cc_uint32_t getMWIPrioNewMsgCount();
    40         virtual cc_uint32_t getMWIPrioOldMsgCount();
    41         virtual bool hasCapability(ccapi_call_capability_e capability);
    42         virtual std::bitset<CCAPI_CALL_CAP_MAX> getCapabilitySet();
    43     };
    44 };
    47 #endif

mercurial