|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Concrete resource resolver for common phoneapp resources. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPHONERESOURCERESOLVERBASE_H |
|
21 #define __CPHONERESOURCERESOLVERBASE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "mphoneresourceresolver.h" |
|
26 #include "tphonetouchbuttonconfig.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CEikonEnv; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * Concrete resource resolver for common phoneapp resources. |
|
34 */ |
|
35 class CPhoneResourceResolverBase : |
|
36 public CBase, |
|
37 public MPhoneResourceResolver |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Base constructor. Should be called from the ConstructL of |
|
43 * the deriving class. |
|
44 * @param None |
|
45 * @return None |
|
46 */ |
|
47 IMPORT_C void BaseConstructL(); |
|
48 |
|
49 /** |
|
50 * Virtual Destructor |
|
51 * @param None |
|
52 * @return None |
|
53 */ |
|
54 IMPORT_C virtual ~CPhoneResourceResolverBase(); |
|
55 |
|
56 public: // From MPAResourceResolver |
|
57 |
|
58 /** |
|
59 * Resolve resource id of given resource. |
|
60 * @param aEnumUid: Uid of enumeration which contains needed |
|
61 * resource definition. |
|
62 * @param aResource: ID of needed resource ( from enumeration ). |
|
63 * @return Resource id. |
|
64 */ |
|
65 IMPORT_C TInt ResolveResourceID( const TInt& aResource ) const; |
|
66 |
|
67 protected: // Constructors and destructor |
|
68 /** |
|
69 * Private constructor. |
|
70 * @param None |
|
71 * @return None |
|
72 */ |
|
73 IMPORT_C CPhoneResourceResolverBase(); |
|
74 |
|
75 /** |
|
76 * Checkes whether a certain feature is on / or not. |
|
77 * @param aFeatureId |
|
78 * @return TBool supported /not supported |
|
79 */ |
|
80 IMPORT_C virtual TBool IsTelephonyFeatureSupported( TInt aFeatureId ) const; |
|
81 |
|
82 protected: |
|
83 TInt iResourceOffset; |
|
84 |
|
85 private: |
|
86 // Feature variation |
|
87 enum TVariationFlags |
|
88 { |
|
89 //Flag to indicate whether on screen dialer is supported. |
|
90 EOnscreenDialer = 1, |
|
91 //Flag to indicate whether on touch call handling is supported. |
|
92 ETouchCallHandling = 2, |
|
93 //Flag to indicate whether videocallmenu is supported. |
|
94 EVideoCallMenu = 4 |
|
95 }; |
|
96 TInt iVariationFlags; |
|
97 |
|
98 CEikonEnv& iEnv; |
|
99 |
|
100 TInt iCUIResourceOffset; |
|
101 TInt iPTCHResourceOffset; |
|
102 |
|
103 // Touch button config |
|
104 TPhoneTouchButtonConfig iTouchButtonConfig; |
|
105 }; |
|
106 |
|
107 #endif // __CPHONERESOURCERESOLVERBASE_H |
|
108 |
|
109 // End of File |