Thu, 15 Jan 2015 15:59:08 +0100
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.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef _CC_SIPCC_LINEINFO_H |
michael@0 | 6 | #define _CC_SIPCC_LINEINFO_H |
michael@0 | 7 | |
michael@0 | 8 | #include "CC_LineInfo.h" |
michael@0 | 9 | |
michael@0 | 10 | #include "common/Wrapper.h" |
michael@0 | 11 | |
michael@0 | 12 | namespace CSF |
michael@0 | 13 | { |
michael@0 | 14 | DECLARE_NS_PTR(CC_SIPCCLineInfo); |
michael@0 | 15 | class CC_SIPCCLineInfo : public CC_LineInfo |
michael@0 | 16 | { |
michael@0 | 17 | public: |
michael@0 | 18 | ~CC_SIPCCLineInfo (); |
michael@0 | 19 | |
michael@0 | 20 | private: |
michael@0 | 21 | cc_lineinfo_ref_t lineinfo; |
michael@0 | 22 | CC_SIPCCLineInfo (cc_lineinfo_ref_t lineinfo); |
michael@0 | 23 | CSF_DECLARE_WRAP(CC_SIPCCLineInfo, cc_lineinfo_ref_t); |
michael@0 | 24 | |
michael@0 | 25 | public: |
michael@0 | 26 | virtual std::string getName(); |
michael@0 | 27 | virtual std::string getNumber(); |
michael@0 | 28 | virtual cc_uint32_t getButton(); |
michael@0 | 29 | virtual cc_line_feature_t getLineType(); |
michael@0 | 30 | virtual bool getRegState(); |
michael@0 | 31 | virtual bool isCFWDActive(); |
michael@0 | 32 | virtual std::string getCFWDName(); |
michael@0 | 33 | virtual std::vector<CC_CallPtr> getCalls (CC_LinePtr linePtr); |
michael@0 | 34 | virtual std::vector<CC_CallPtr> getCallsByState (CC_LinePtr linePtr, cc_call_state_t state); |
michael@0 | 35 | virtual bool getMWIStatus(); |
michael@0 | 36 | virtual cc_uint32_t getMWIType(); |
michael@0 | 37 | virtual cc_uint32_t getMWINewMsgCount(); |
michael@0 | 38 | virtual cc_uint32_t getMWIOldMsgCount(); |
michael@0 | 39 | virtual cc_uint32_t getMWIPrioNewMsgCount(); |
michael@0 | 40 | virtual cc_uint32_t getMWIPrioOldMsgCount(); |
michael@0 | 41 | virtual bool hasCapability(ccapi_call_capability_e capability); |
michael@0 | 42 | virtual std::bitset<CCAPI_CALL_CAP_MAX> getCapabilitySet(); |
michael@0 | 43 | }; |
michael@0 | 44 | }; |
michael@0 | 45 | |
michael@0 | 46 | |
michael@0 | 47 | #endif |