1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/src/softphonewrapper/CC_SIPCCCallServerInfo.cpp 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 +#include "CSFLog.h" 1.9 +#include "CC_Common.h" 1.10 + 1.11 +#include "CC_SIPCCCallServerInfo.h" 1.12 + 1.13 +extern "C" 1.14 +{ 1.15 +#include "ccapi_device_info.h" 1.16 +} 1.17 + 1.18 +using namespace std; 1.19 +using namespace CSF; 1.20 + 1.21 +CC_SIPCCCallServerInfo::CC_SIPCCCallServerInfo (cc_callserver_ref_t call_serverinfo) : callserverinfo_ref(call_serverinfo) 1.22 +{ 1.23 +} 1.24 + 1.25 +CSF_IMPLEMENT_WRAP(CC_SIPCCCallServerInfo, cc_callserver_ref_t); 1.26 + 1.27 +CC_SIPCCCallServerInfo::~CC_SIPCCCallServerInfo() 1.28 +{ 1.29 +} 1.30 + 1.31 +string CC_SIPCCCallServerInfo::getCallServerName() 1.32 +{ 1.33 + return CCAPI_DeviceInfo_getCallServerName(callserverinfo_ref); 1.34 +} 1.35 + 1.36 +cc_cucm_mode_t CC_SIPCCCallServerInfo::getCallServerMode() 1.37 +{ 1.38 + return CCAPI_DeviceInfo_getCallServerMode(callserverinfo_ref); 1.39 +} 1.40 + 1.41 +cc_ccm_status_t CC_SIPCCCallServerInfo::getCallServerStatus() 1.42 +{ 1.43 + return CCAPI_DeviceInfo_getCallServerStatus(callserverinfo_ref); 1.44 +}