142 */ |
153 */ |
143 void SetInitialAttributeL( |
154 void SetInitialAttributeL( |
144 const TDesC& aAttrName, |
155 const TDesC& aAttrName, |
145 const TDesC& aAttrValue, |
156 const TDesC& aAttrValue, |
146 TBool aLocalized ); // Set attribute value. |
157 TBool aLocalized ); // Set attribute value. |
147 |
158 |
148 /** |
159 /** |
149 * Method to set iNative for apps. |
160 * Method to set iNative for apps. |
150 */ |
161 */ |
151 IMPORT_C void SetNative( TBool aNative ); |
162 IMPORT_C void SetAppType( TAppType aNative ); |
152 |
163 |
153 /** |
164 /** |
154 * Method to get iNative for apps. |
165 * Method to get iNative for apps. |
155 * @return ETrue if app is native. |
166 * @return ETrue if app is native. |
156 */ |
167 */ |
157 IMPORT_C TBool GetNative() const; |
168 IMPORT_C TAppType GetAppType() const; |
158 |
169 |
159 |
170 |
160 /** |
171 /** |
161 * Remove attribute. |
172 * Remove attribute. |
162 * @param aAttrName Name. |
173 * @param aAttrName Name. |
163 */ |
174 */ |
164 IMPORT_C void RemoveAttribute( const TDesC& aAttrName ); |
175 IMPORT_C void RemoveAttribute( const TDesC& aAttrName ); |
195 /** |
206 /** |
196 * Get type identifier. |
207 * Get type identifier. |
197 * @return Type identifier. |
208 * @return Type identifier. |
198 */ |
209 */ |
199 const TDesC& TypeIdentifier(); |
210 const TDesC& TypeIdentifier(); |
200 |
211 |
201 /** |
212 /** |
202 * Updates flags with hidden flag from central repository if nececerry. |
213 * Updates flags with hidden flag from central repository if nececerry. |
203 * @param aFlags flags. |
214 * @param aFlags flags. |
204 */ |
215 */ |
205 void UpdateCrHiddenFlagL( TUint32& aFlags ) const; |
216 void UpdateCrHiddenFlagL( TUint32& aFlags ) const; |
206 |
217 |
207 /** |
218 /** |
208 * Parses descriptor containing folders hidden in central repository. |
219 * Parses descriptor containing folders hidden in central repository. |
209 * @param aHiddenFolders descriptor containing folders hidden in central repository. |
220 * @param aHiddenFolders descriptor containing folders hidden in central repository. |
210 * @param aHiddenFoldersArray array to fill with names of folders hidden in central repository. |
221 * @param aHiddenFoldersArray array to fill with names of folders hidden in central repository. |
211 */ |
222 */ |
212 void ParseHiddenFoldersL( |
223 void ParseHiddenFoldersL( |
213 const TDesC& aHiddenFolders, |
224 const TDesC& aHiddenFolders, |
214 RArray<TPtrC>& aHiddenFoldersArray ) const; |
225 RArray<TPtrC>& aHiddenFoldersArray ) const; |
215 |
226 |
216 /** |
227 /** |
217 * Checks wether folder name is in Central Repository. |
228 * Checks wether folder name is in Central Repository. |
218 * @param aFolderName descriptor containing name of a folder. |
229 * @param aFolderName descriptor containing name of a folder. |
219 * @return ETrue if folder is in array, EFalse otherwise. |
230 * @return ETrue if folder is in array, EFalse otherwise. |
220 */ |
231 */ |
221 TBool IsInCrL( const TDesC& aFolderName ) const; |
232 TBool IsInCrL( const TDesC& aFolderName ) const; |
222 |
233 |
223 |
234 |
224 |
235 |
225 private: // data |
236 private: // data |
226 |
237 |
227 TInt iId; ///< ID. |
238 TInt iId; ///< ID. |
228 CMenuEng& iEng; ///< Engine. DO NOT USE! Only needed to check ID-generator. |
239 CMenuEng& iEng; ///< Engine. DO NOT USE! Only needed to check ID-generator. |
229 RBuf iType; /// Type. Own. |
240 RBuf iType; /// Type. Own. |
230 RMenuEngObjectAttrArray iAttributes; ///< Attributes. Own. |
241 RMenuEngObjectAttrArray iAttributes; ///< Attributes. Own. |
231 TUint32 iFlags; ///< Flags. |
242 TUint32 iFlags; ///< Flags. |
232 TBool iNative; ///< app is not of midlet/java type |
243 TAppType iAppType; ///< app type |
233 |
244 |
234 }; |
245 }; |
235 |
246 |
236 #endif // __MENUENGOBJECT_H__ |
247 #endif // __MENUENGOBJECT_H__ |