1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/src/softphonewrapper/CC_SIPCCLineInfo.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 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_SIPCC_LINEINFO_H 1.9 +#define _CC_SIPCC_LINEINFO_H 1.10 + 1.11 +#include "CC_LineInfo.h" 1.12 + 1.13 +#include "common/Wrapper.h" 1.14 + 1.15 +namespace CSF 1.16 +{ 1.17 + DECLARE_NS_PTR(CC_SIPCCLineInfo); 1.18 + class CC_SIPCCLineInfo : public CC_LineInfo 1.19 + { 1.20 + public: 1.21 + ~CC_SIPCCLineInfo (); 1.22 + 1.23 + private: 1.24 + cc_lineinfo_ref_t lineinfo; 1.25 + CC_SIPCCLineInfo (cc_lineinfo_ref_t lineinfo); 1.26 + CSF_DECLARE_WRAP(CC_SIPCCLineInfo, cc_lineinfo_ref_t); 1.27 + 1.28 + public: 1.29 + virtual std::string getName(); 1.30 + virtual std::string getNumber(); 1.31 + virtual cc_uint32_t getButton(); 1.32 + virtual cc_line_feature_t getLineType(); 1.33 + virtual bool getRegState(); 1.34 + virtual bool isCFWDActive(); 1.35 + virtual std::string getCFWDName(); 1.36 + virtual std::vector<CC_CallPtr> getCalls (CC_LinePtr linePtr); 1.37 + virtual std::vector<CC_CallPtr> getCallsByState (CC_LinePtr linePtr, cc_call_state_t state); 1.38 + virtual bool getMWIStatus(); 1.39 + virtual cc_uint32_t getMWIType(); 1.40 + virtual cc_uint32_t getMWINewMsgCount(); 1.41 + virtual cc_uint32_t getMWIOldMsgCount(); 1.42 + virtual cc_uint32_t getMWIPrioNewMsgCount(); 1.43 + virtual cc_uint32_t getMWIPrioOldMsgCount(); 1.44 + virtual bool hasCapability(ccapi_call_capability_e capability); 1.45 + virtual std::bitset<CCAPI_CALL_CAP_MAX> getCapabilitySet(); 1.46 + }; 1.47 +}; 1.48 + 1.49 + 1.50 +#endif