media/webrtc/signaling/include/CC_FeatureInfo.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #pragma once
     7 #include "CC_Common.h"
     9 extern "C"
    10 {
    11 #include "ccapi_types.h"
    12 }
    14 namespace CSF
    15 {
    16     class ECC_API CC_FeatureInfo
    17     {
    18     public:
    19         NS_INLINE_DECL_THREADSAFE_REFCOUNTING(CC_FeatureInfo)
    20     protected:
    21         CC_FeatureInfo() { }
    23     public:
    24         //Base class needs dtor to be declared as virtual
    25         virtual ~CC_FeatureInfo() {};
    27         /**
    28            Get the physical button number on which this feature is configured
    30            @return cc_int32_t - button assgn to the feature
    31          */
    32         virtual cc_int32_t getButton() = 0;
    34         /**
    35            Get the featureID
    37            @return cc_int32_t - button assgn to the feature
    38          */
    39         virtual cc_int32_t getFeatureID() = 0;
    41         /**
    42            Get the feature Name
    44            @return string - handle of the feature created
    45          */
    46         virtual std::string getDisplayName() = 0;
    48         /**
    49            Get the speeddial Number
    51            @return string - handle of the feature created
    52          */
    53         virtual std::string getSpeedDialNumber() = 0;
    55         /**
    56            Get the contact
    58            @return string - handle of the feature created
    59          */
    60         virtual std::string getContact() = 0;
    62         /**
    63            Get the retrieval prefix
    65            @return string - handle of the feature created
    66          */
    67         virtual std::string getRetrievalPrefix() = 0;
    69         /**
    70            Get the feature option mask
    72            @return cc_int32_t - button assgn to the feature
    73          */
    74         virtual cc_int32_t getFeatureOptionMask() = 0;
    75     };
    76 };

mercurial