menucontentsrv/enginc/menueng.h
branchRCL_3
changeset 23 ace62b58f4b2
parent 0 79c6a41cd166
child 25 9e077f9a342c
equal deleted inserted replaced
22:1b207dd38b72 23:ace62b58f4b2
   143     /**
   143     /**
   144     * Returns current engine state.
   144     * Returns current engine state.
   145     * @return Current state.
   145     * @return Current state.
   146     */
   146     */
   147 	inline TState State() const;
   147 	inline TState State() const;
   148 	
   148 
   149 	/*
   149 	/*
   150 	* Gets legacy format
   150 	* Gets legacy format
   151 	* @return legacy format
   151 	* @return legacy format
   152 	*/
   152 	*/
   153 	IMPORT_C TBool GetOnceLegacyFormat();
   153 	IMPORT_C TBool GetOnceLegacyFormat();
   262     * @return Modifiable object. Already marked as changed.
   262     * @return Modifiable object. Already marked as changed.
   263     */
   263     */
   264     IMPORT_C CMenuEngObject& ModifiableObjectL( TInt aId,
   264     IMPORT_C CMenuEngObject& ModifiableObjectL( TInt aId,
   265     		TInt aEvent = RMenuNotifier::EItemAttributeChanged );
   265     		TInt aEvent = RMenuNotifier::EItemAttributeChanged );
   266 
   266 
   267     
   267 
   268     /**
   268     /**
   269     * Append new notification to the list of pending notifications.
   269     * Append new notification to the list of pending notifications.
   270     * @param aFolder Folder.
   270     * @param aFolder Folder.
   271     * @param aEvents Events.
   271     * @param aEvents Events.
   272     */
   272     */
   273     IMPORT_C void AppendNotifyL( TInt aFolder, TInt aEvents );
   273     IMPORT_C void AppendNotifyL( TInt aFolder, TInt aEvents );
   274     
   274 
   275     
   275     /**
       
   276     * Checks if object exists and is not hidden nor missing.
       
   277     * @param aId item id.
       
   278     */
   276     IMPORT_C TBool Exist( TInt aId ) const;
   279     IMPORT_C TBool Exist( TInt aId ) const;
   277 
   280 
   278 private:    // from CActive
   281 private:    // from CActive
   279 
   282 
   280     /**
   283     /**
   304 
   307 
   305     /**
   308     /**
   306     * Called when there's an error during parsing / saving.
   309     * Called when there's an error during parsing / saving.
   307     * @param aErrorCode Error code
   310     * @param aErrorCode Error code
   308     */
   311     */
   309     void HandleEngineErrorL( TInt aErrorCode );        
   312     void HandleEngineErrorL( TInt aErrorCode );
   310 
   313 
   311 private:    // types
   314 private:    // types
   312 
   315 
   313     enum TFile /// File selector.
   316     enum TFile /// File selector.
   314         {
   317         {
   491     };
   494     };
   492 
   495 
   493 // -----------------------------------------------------------------------------
   496 // -----------------------------------------------------------------------------
   494 // CMenuEng::State
   497 // CMenuEng::State
   495 // -----------------------------------------------------------------------------
   498 // -----------------------------------------------------------------------------
   496 // 
   499 //
   497 CMenuEng::TState CMenuEng::State() const
   500 CMenuEng::TState CMenuEng::State() const
   498     {
   501     {
   499     return iState;
   502     return iState;
   500     }
   503     }
   501 
   504