1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/include/CC_LineInfo.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,152 @@ 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 +#pragma once 1.9 + 1.10 +#include "CC_Common.h" 1.11 +#include <bitset> 1.12 +#include <set> 1.13 +#include <vector> 1.14 + 1.15 +extern "C" 1.16 +{ 1.17 +#include "ccapi_types.h" 1.18 +} 1.19 + 1.20 +namespace CSF 1.21 +{ 1.22 + class ECC_API CC_LineInfo 1.23 + { 1.24 + public: 1.25 + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CC_LineInfo) 1.26 + protected: 1.27 + CC_LineInfo() { } 1.28 + 1.29 + public: 1.30 + //Base class needs dtor to be declared as virtual 1.31 + virtual ~CC_LineInfo() {}; 1.32 + 1.33 + /** 1.34 + Get the line Name 1.35 + 1.36 + @return string - line Name 1.37 + */ 1.38 + virtual std::string getName() = 0; 1.39 + 1.40 + /** 1.41 + Get the line DN Number 1.42 + @return string - line DN 1.43 + */ 1.44 + virtual std::string getNumber() = 0; 1.45 + 1.46 + /** 1.47 + Get the physical button number on which this line is configured 1.48 + 1.49 + @return cc_uint32_t - button number 1.50 + */ 1.51 + virtual cc_uint32_t getButton() = 0; 1.52 + 1.53 + /** 1.54 + Get the Line Type 1.55 + 1.56 + @return cc_line_feature_t - line featureID ( Line ) 1.57 + */ 1.58 + virtual cc_line_feature_t getLineType() = 0; 1.59 + 1.60 + /** 1.61 + 1.62 + @return bool - true if phone is currently registered with CM. 1.63 + */ 1.64 + virtual bool getRegState() = 0; 1.65 + 1.66 + /** 1.67 + Get the CFWDAll status for the line 1.68 + 1.69 + @return bool - isForwarded 1.70 + */ 1.71 + virtual bool isCFWDActive() = 0; 1.72 + 1.73 + /** 1.74 + Get the CFWDAll destination 1.75 + 1.76 + @return string - cfwd target 1.77 + */ 1.78 + virtual std::string getCFWDName() = 0; 1.79 + 1.80 + /** 1.81 + Get calls on line 1.82 + 1.83 + @param [in] line - line 1.84 + @return vector<CC_CallPtr> 1.85 + */ 1.86 + virtual std::vector<CC_CallPtr> getCalls (CC_LinePtr linePtr) = 0; 1.87 + 1.88 + /** 1.89 + Get calls on line by state 1.90 + 1.91 + @param [in] line - line 1.92 + @param [in] state - state 1.93 + 1.94 + @return vector<CC_CallPtr> 1.95 + */ 1.96 + virtual std::vector<CC_CallPtr> getCallsByState (CC_LinePtr linePtr, cc_call_state_t state) = 0; 1.97 + 1.98 + /** 1.99 + Get the MWI Status 1.100 + 1.101 + @return cc_uint32_t - MWI status (boolean 0 => no MWI) 1.102 + */ 1.103 + virtual bool getMWIStatus() = 0; 1.104 + 1.105 + /** 1.106 + Get the MWI Type 1.107 + 1.108 + @return cc_uint32_t - MWI Type 1.109 + */ 1.110 + virtual cc_uint32_t getMWIType() = 0; 1.111 + 1.112 + /** 1.113 + Get the MWI new msg count 1.114 + 1.115 + @return cc_uint32_t - MWI new msg count 1.116 + */ 1.117 + virtual cc_uint32_t getMWINewMsgCount() = 0; 1.118 + 1.119 + /** 1.120 + Get the MWI old msg count 1.121 + 1.122 + @return cc_uint32_t - MWI old msg count 1.123 + */ 1.124 + virtual cc_uint32_t getMWIOldMsgCount() = 0; 1.125 + 1.126 + /** 1.127 + Get the MWI high priority new msg count 1.128 + 1.129 + @return cc_uint32_t - MWI new msg count 1.130 + */ 1.131 + virtual cc_uint32_t getMWIPrioNewMsgCount() = 0; 1.132 + 1.133 + /** 1.134 + Get the MWI high priority old msg count 1.135 + 1.136 + @return cc_uint32_t - MWI old msg count 1.137 + */ 1.138 + virtual cc_uint32_t getMWIPrioOldMsgCount() = 0; 1.139 + 1.140 + /** 1.141 + has capability - is the feature allowed 1.142 + 1.143 + @param [in] capability - capability being queried to see if it's available 1.144 + @return bool - is Allowed 1.145 + */ 1.146 + virtual bool hasCapability(ccapi_call_capability_e capability) = 0; 1.147 + 1.148 + /** 1.149 + get Allowed Feature set 1.150 + 1.151 + @return cc_return_t - bitset of Line Capabilities. 1.152 + */ 1.153 + virtual std::bitset<CCAPI_CALL_CAP_MAX> getCapabilitySet() = 0; 1.154 + }; 1.155 +};