Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 };