|
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/. */ |
|
4 |
|
5 #pragma once |
|
6 |
|
7 #include "CC_Common.h" |
|
8 |
|
9 extern "C" |
|
10 { |
|
11 #include "ccapi_types.h" |
|
12 } |
|
13 |
|
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() { } |
|
22 |
|
23 public: |
|
24 //Base class needs dtor to be declared as virtual |
|
25 virtual ~CC_FeatureInfo() {}; |
|
26 |
|
27 /** |
|
28 Get the physical button number on which this feature is configured |
|
29 |
|
30 @return cc_int32_t - button assgn to the feature |
|
31 */ |
|
32 virtual cc_int32_t getButton() = 0; |
|
33 |
|
34 /** |
|
35 Get the featureID |
|
36 |
|
37 @return cc_int32_t - button assgn to the feature |
|
38 */ |
|
39 virtual cc_int32_t getFeatureID() = 0; |
|
40 |
|
41 /** |
|
42 Get the feature Name |
|
43 |
|
44 @return string - handle of the feature created |
|
45 */ |
|
46 virtual std::string getDisplayName() = 0; |
|
47 |
|
48 /** |
|
49 Get the speeddial Number |
|
50 |
|
51 @return string - handle of the feature created |
|
52 */ |
|
53 virtual std::string getSpeedDialNumber() = 0; |
|
54 |
|
55 /** |
|
56 Get the contact |
|
57 |
|
58 @return string - handle of the feature created |
|
59 */ |
|
60 virtual std::string getContact() = 0; |
|
61 |
|
62 /** |
|
63 Get the retrieval prefix |
|
64 |
|
65 @return string - handle of the feature created |
|
66 */ |
|
67 virtual std::string getRetrievalPrefix() = 0; |
|
68 |
|
69 /** |
|
70 Get the feature option mask |
|
71 |
|
72 @return cc_int32_t - button assgn to the feature |
|
73 */ |
|
74 virtual cc_int32_t getFeatureOptionMask() = 0; |
|
75 }; |
|
76 }; |