media/webrtc/signaling/src/softphonewrapper/CC_SIPCCFeatureInfo.cpp
author Phil Ringnalda <philringnalda@gmail.com>
Mon, 08 Dec 2014 20:53:07 -0800
changeset 218811 960303b07c909e69db87467d0b499351d65c82af
permissions -rw-r--r--
Backed out 10 changesets (bug 1091242) for Android/b2g non-unified build bustage CLOSED TREE Backed out changeset 7f72b55c5de7 (bug 1091242) Backed out changeset f1501aa24397 (bug 1091242) Backed out changeset 7fde5994aee5 (bug 1091242) Backed out changeset 59b415714087 (bug 1091242) Backed out changeset dadb65fedc08 (bug 1091242) Backed out changeset 21be81424e4e (bug 1091242) Backed out changeset 498fb1dafba5 (bug 1091242) Backed out changeset 8d0653eb85ab (bug 1091242) Backed out changeset c82d484e135a (bug 1091242) Backed out changeset 3e0c8932f1b1 (bug 1091242)

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "CSFLog.h"

#include "CC_Common.h"

#include "CC_SIPCCFeatureInfo.h"
#include "CC_SIPCCDeviceInfo.h"

extern "C"
{
#include "ccapi_device.h"
#include "ccapi_feature_info.h"
}

using namespace std;
using namespace CSF;

CSF_IMPLEMENT_WRAP(CC_SIPCCFeatureInfo, cc_featureinfo_ref_t);

CC_SIPCCFeatureInfo::CC_SIPCCFeatureInfo (cc_featureinfo_ref_t featureinfo) : featureinfo_ref(featureinfo)
{
//    CCAPI_Device_retainFeatureInfo(featureinfo);
}

CC_SIPCCFeatureInfo::~CC_SIPCCFeatureInfo()
{
//    CCAPI_Feature_releaseFeatureInfo(featureinfo_ref);
}

cc_int32_t CC_SIPCCFeatureInfo::getButton()
{
    return CCAPI_featureInfo_getButton(featureinfo_ref);
}

cc_int32_t CC_SIPCCFeatureInfo::getFeatureID()
{
    return CCAPI_featureInfo_getFeatureID(featureinfo_ref);
}

string CC_SIPCCFeatureInfo::getDisplayName()
{
    return CCAPI_featureInfo_getDisplayName(featureinfo_ref);
}

string CC_SIPCCFeatureInfo::getSpeedDialNumber()
{
    return CCAPI_featureInfo_getSpeedDialNumber(featureinfo_ref);
}

string CC_SIPCCFeatureInfo::getContact()
{
    return CCAPI_featureInfo_getContact(featureinfo_ref);
}

string CC_SIPCCFeatureInfo::getRetrievalPrefix()
{
    return CCAPI_featureInfo_getRetrievalPrefix(featureinfo_ref);
}

cc_int32_t CC_SIPCCFeatureInfo::getFeatureOptionMask()
{
    return CCAPI_featureInfo_getFeatureOptionMask(featureinfo_ref);
}