1 /* |
|
2 * Copyright (c) 2008 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: Declaration of Manager class for the BtGpsPsy string constants |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_LOCBTNOTIFIERCONSTANTSMANAGER_H |
|
21 #define C_LOCBTNOTIFIERCONSTANTSMANAGER_H |
|
22 |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <f32file.h> |
|
26 |
|
27 |
|
28 /** |
|
29 * Forward Declarations |
|
30 */ |
|
31 class RResourceFile; |
|
32 |
|
33 |
|
34 /** |
|
35 * Manager class for the BtGpsPsy string constants |
|
36 * This class reads all the pre-defined constants |
|
37 * from resource file on construction |
|
38 * |
|
39 * |
|
40 * @since S60 5.1 |
|
41 */ |
|
42 NONSHARABLE_CLASS ( CLocBtNotifierConstantsManager ): public CBase |
|
43 { |
|
44 |
|
45 public: |
|
46 |
|
47 /** |
|
48 * Constructor |
|
49 */ |
|
50 static CLocBtNotifierConstantsManager* NewL(); |
|
51 |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 virtual ~CLocBtNotifierConstantsManager(); |
|
57 |
|
58 private: |
|
59 |
|
60 /** |
|
61 * Second Phase of construction |
|
62 */ |
|
63 void ConstructL(); |
|
64 |
|
65 /** |
|
66 * Private Constructor |
|
67 */ |
|
68 CLocBtNotifierConstantsManager(); |
|
69 |
|
70 /** |
|
71 * Get localisable resource name |
|
72 * This function leaves if no localisable resource is found |
|
73 * @param aFs File Session handle |
|
74 * @return Resource filename |
|
75 */ |
|
76 TFileName* GetLocalisableResourceNameL( RFs& aFs ); |
|
77 |
|
78 /** |
|
79 * Get text from resource file |
|
80 * @param aResourceFile A handle to the localisation resource file |
|
81 * @param aId Resource id as mentioned in rss file |
|
82 * @return Text associated with the resource id mentioned |
|
83 */ |
|
84 HBufC* GetTextL( RResourceFile& aResourceFile, TInt aId ); |
|
85 |
|
86 public: |
|
87 |
|
88 /** |
|
89 * Returns the Battery Low Dialog text |
|
90 * @return BatteryLowDialogText |
|
91 */ |
|
92 TPtr GetBatteryLowDialogText(); |
|
93 |
|
94 /** |
|
95 * Returns the Battery Full Dialog text |
|
96 * @return BatteryFullDialogText |
|
97 */ |
|
98 TPtr GetBatteryFullDialogText(); |
|
99 |
|
100 /** |
|
101 * Returns the Ext. Antenna Connected Dialog text |
|
102 * @return ExtAntennaConnectedDialogText |
|
103 */ |
|
104 TPtr GetExtAntennaConnectedDialogText(); |
|
105 |
|
106 /** |
|
107 * Returns the Ext. Antenna Disconnected Dialog text |
|
108 * @return ExtAntennaDisconnectedDialogText |
|
109 */ |
|
110 TPtr GetExtAntennaDisconnectedDialogText(); |
|
111 |
|
112 /** |
|
113 * Returns the Ext. Power Connected Dialog text |
|
114 * @return ExtPowerConnectedDialogText |
|
115 */ |
|
116 TPtr GetExtPowerConnectedDialogText(); |
|
117 |
|
118 /** |
|
119 * Returns the Ext. Power Disconnected Dialog text |
|
120 * @return ExtPowerDisconnectedDialogText |
|
121 */ |
|
122 TPtr GetExtPowerDisconnectedDialogText(); |
|
123 |
|
124 |
|
125 |
|
126 private: |
|
127 |
|
128 /** |
|
129 * Text for battery low dialog |
|
130 */ |
|
131 HBufC* iBatteryLowDialogText; |
|
132 |
|
133 /** |
|
134 * Text for battery full dialog |
|
135 */ |
|
136 HBufC* iBatteryFullDialogText; |
|
137 |
|
138 /** |
|
139 * Text for ext. antenna connected dialog |
|
140 */ |
|
141 HBufC* iExtAntennaConnectedDialogText; |
|
142 |
|
143 /** |
|
144 * Text for ext. antenna disconnected dialog |
|
145 */ |
|
146 HBufC* iExtAntennaDisconnectedDialogText; |
|
147 |
|
148 /** |
|
149 * Text for ext. power connected dialog |
|
150 */ |
|
151 HBufC* iExtPowerConnectedDialogText; |
|
152 |
|
153 /** |
|
154 * Text for ext. power disconnected dialog |
|
155 */ |
|
156 HBufC* iExtPowerDisconnectedDialogText; |
|
157 |
|
158 |
|
159 |
|
160 }; |
|
161 |
|
162 |
|
163 |
|
164 #endif // C_LOCBTNOTIFIERCONSTANTSMANAGER_H |
|