michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "CSFLog.h" michael@0: michael@0: #include "CC_Common.h" michael@0: michael@0: #include "CC_SIPCCFeatureInfo.h" michael@0: #include "CC_SIPCCDeviceInfo.h" michael@0: michael@0: extern "C" michael@0: { michael@0: #include "ccapi_device.h" michael@0: #include "ccapi_feature_info.h" michael@0: } michael@0: michael@0: using namespace std; michael@0: using namespace CSF; michael@0: michael@0: CSF_IMPLEMENT_WRAP(CC_SIPCCFeatureInfo, cc_featureinfo_ref_t); michael@0: michael@0: CC_SIPCCFeatureInfo::CC_SIPCCFeatureInfo (cc_featureinfo_ref_t featureinfo) : featureinfo_ref(featureinfo) michael@0: { michael@0: // CCAPI_Device_retainFeatureInfo(featureinfo); michael@0: } michael@0: michael@0: CC_SIPCCFeatureInfo::~CC_SIPCCFeatureInfo() michael@0: { michael@0: // CCAPI_Feature_releaseFeatureInfo(featureinfo_ref); michael@0: } michael@0: michael@0: cc_int32_t CC_SIPCCFeatureInfo::getButton() michael@0: { michael@0: return CCAPI_featureInfo_getButton(featureinfo_ref); michael@0: } michael@0: michael@0: cc_int32_t CC_SIPCCFeatureInfo::getFeatureID() michael@0: { michael@0: return CCAPI_featureInfo_getFeatureID(featureinfo_ref); michael@0: } michael@0: michael@0: string CC_SIPCCFeatureInfo::getDisplayName() michael@0: { michael@0: return CCAPI_featureInfo_getDisplayName(featureinfo_ref); michael@0: } michael@0: michael@0: string CC_SIPCCFeatureInfo::getSpeedDialNumber() michael@0: { michael@0: return CCAPI_featureInfo_getSpeedDialNumber(featureinfo_ref); michael@0: } michael@0: michael@0: string CC_SIPCCFeatureInfo::getContact() michael@0: { michael@0: return CCAPI_featureInfo_getContact(featureinfo_ref); michael@0: } michael@0: michael@0: string CC_SIPCCFeatureInfo::getRetrievalPrefix() michael@0: { michael@0: return CCAPI_featureInfo_getRetrievalPrefix(featureinfo_ref); michael@0: } michael@0: michael@0: cc_int32_t CC_SIPCCFeatureInfo::getFeatureOptionMask() michael@0: { michael@0: return CCAPI_featureInfo_getFeatureOptionMask(featureinfo_ref); michael@0: }