|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CAINNERLOCALIZATION_H__ |
|
19 #define __CAINNERLOCALIZATION_H__ |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 /** |
|
24 * Class represents Content Arsenal entry |
|
25 */ |
|
26 NONSHARABLE_CLASS( CCaLocalizationEntry ): public CBase |
|
27 { |
|
28 |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Destructor. |
|
33 */ |
|
34 virtual ~CCaLocalizationEntry( ); |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 * @return The created object. |
|
39 */ |
|
40 IMPORT_C static CCaLocalizationEntry* NewL( ); |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @return The created object. |
|
45 */ |
|
46 IMPORT_C static CCaLocalizationEntry* NewLC( ); |
|
47 |
|
48 // GETTERS |
|
49 /** |
|
50 * Gets entry id. |
|
51 * @return Entry id. |
|
52 */ |
|
53 IMPORT_C TInt GetRowId( ) const; |
|
54 |
|
55 /** |
|
56 * Gets entry id. |
|
57 * @return Entry id. |
|
58 */ |
|
59 IMPORT_C TInt GetTextId( ) const; |
|
60 |
|
61 /** |
|
62 * Gets entry text. |
|
63 * @return Entry text. |
|
64 */ |
|
65 IMPORT_C const RBuf& GetAttributeName( ) const; |
|
66 |
|
67 /** |
|
68 * Gets entry text. |
|
69 * @return Entry text. |
|
70 */ |
|
71 IMPORT_C const RBuf& GetStringId( ) const; |
|
72 |
|
73 /** |
|
74 * Gets entry text. |
|
75 * @return Entry text. |
|
76 */ |
|
77 IMPORT_C const RBuf& GetTableName( ) const; |
|
78 |
|
79 /** |
|
80 * Gets LocalizedString |
|
81 * @return LocalizedString |
|
82 */ |
|
83 IMPORT_C const RBuf& GetLocalizedString() const; |
|
84 |
|
85 /** |
|
86 * Gets GetQmFilename |
|
87 * @return GetQmFilename |
|
88 */ |
|
89 IMPORT_C const RBuf& GetQmFilename() const; |
|
90 |
|
91 // SETTERS |
|
92 |
|
93 /** |
|
94 */ |
|
95 IMPORT_C void SetQmFilenameL( const TDesC& aQmFilename ); |
|
96 |
|
97 /** |
|
98 |
|
99 */ |
|
100 IMPORT_C void SetRowId( TUint aRowId ); |
|
101 |
|
102 /** |
|
103 Sets localization id |
|
104 */ |
|
105 IMPORT_C void SetTextId( TUint aId ); |
|
106 |
|
107 |
|
108 /** |
|
109 * Sets the entry text. |
|
110 * @param aText Entry text. |
|
111 */ |
|
112 IMPORT_C void SetAttributeNameL( const TDesC& aAttribName ); |
|
113 |
|
114 /** |
|
115 * Sets the entry text. |
|
116 * @param aText Entry text. |
|
117 */ |
|
118 IMPORT_C void SetStringIdL( const TDesC& aStringId ); |
|
119 |
|
120 /** |
|
121 * Sets the entry text. |
|
122 * @param aText Entry text. |
|
123 */ |
|
124 IMPORT_C void SetTableNameL( const TDesC& aTableName ); |
|
125 |
|
126 /** |
|
127 * Sets the Localized String |
|
128 * @param aLocalName LocalizedString |
|
129 */ |
|
130 IMPORT_C void SetLocalizedStringL( const TDesC& aLocalName ); |
|
131 |
|
132 |
|
133 |
|
134 /* * |
|
135 * Externalizes object to the stream |
|
136 * @param aStream a write stream |
|
137 |
|
138 IMPORT_C void ExternalizeL( RWriteStream& aStream ) const; |
|
139 |
|
140 * |
|
141 * Internalizes stream to the object |
|
142 * @param aStream a read stream |
|
143 |
|
144 IMPORT_C void InternalizeL( RReadStream& aStream );*/ |
|
145 |
|
146 private: |
|
147 |
|
148 /** |
|
149 * Second phased constructor. |
|
150 */ |
|
151 void ConstructL( ); |
|
152 |
|
153 /** |
|
154 * Constructor |
|
155 */ |
|
156 CCaLocalizationEntry( ); |
|
157 |
|
158 private: |
|
159 // data |
|
160 /*, |
|
161 |
|
162 |
|
163 |
|
164 |
|
165 /* |
|
166 * Unique identifier of the localization entry. |
|
167 */ |
|
168 TInt iId; |
|
169 |
|
170 /* |
|
171 * Unique identifier of the entry to update. |
|
172 */ |
|
173 TInt iRowId; |
|
174 |
|
175 /* |
|
176 * Name of table to update. |
|
177 * Own. |
|
178 */ |
|
179 RBuf iTableName; |
|
180 |
|
181 /* |
|
182 * Name of attribute (column) to update. |
|
183 * Own. |
|
184 */ |
|
185 RBuf iAttribName; |
|
186 |
|
187 /* |
|
188 * String it to translate. |
|
189 * Own. |
|
190 */ |
|
191 RBuf iStringId; |
|
192 |
|
193 /* |
|
194 * Translated string. |
|
195 * Own. |
|
196 */ |
|
197 RBuf iLocalName; |
|
198 |
|
199 /* |
|
200 * Qm filename. |
|
201 * Own. |
|
202 */ |
|
203 RBuf iQmFilename; |
|
204 |
|
205 }; |
|
206 |
|
207 #endif // __CAINNERLOCALIZATION_H__ |