phoneapp/phoneuiutils/inc/cphonerecoverysystem.h
changeset 21 92ab7f8d0eab
parent 0 5f000ab63145
child 51 f39ed5e045e0
child 62 5266b1f337bd
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
   124         *
   124         *
   125         * @param aId identifier.
   125         * @param aId identifier.
   126         * @param aState new state.
   126         * @param aState new state.
   127         */
   127         */
   128         void SetState( TRecoveryId aId, 
   128         void SetState( TRecoveryId aId, 
   129         	CTeleRecoverySystem::TRecoveryState aState );
   129             CTeleRecoverySystem::TRecoveryState aState );
   130     
   130     
   131         /**
   131         /**
   132         * Resets pending recovery actions back to waiting.
   132         * Resets pending recovery actions back to waiting.
   133         */
   133         */
   134         void ResetPending();
   134         void ResetPending();
   200         * Adds id to container which holds all the ids this singleton
   200         * Adds id to container which holds all the ids this singleton
   201         * has given out via AddL method.
   201         * has given out via AddL method.
   202         * @param aId - Id to be added in container
   202         * @param aId - Id to be added in container
   203         * @exception -1 (KErrNoSpace) is thrown if there isn't room in the container
   203         * @exception -1 (KErrNoSpace) is thrown if there isn't room in the container
   204         */
   204         */
   205 		void AddIdToContainer( TRecoveryId aId );
   205         void AddIdToContainer( TRecoveryId aId );
   206 		
   206         
   207 		/**
   207         /**
   208 		* Removes given id from the container which holds all the ids this singleton
   208         * Removes given id from the container which holds all the ids this singleton
   209 		* has given out via AddL method.
   209         * has given out via AddL method.
   210 		* @param aId - Id to be removed from container
   210         * @param aId - Id to be removed from container
   211 		*/
   211         */
   212 		void RemoveFromContainer( TRecoveryId aId );
   212         void RemoveFromContainer( TRecoveryId aId );
   213 		
   213         
   214 		/**
   214         /**
   215 		* This is called from destructor. Method removes all the ids from recovery
   215         * This is called from destructor. Method removes all the ids from recovery
   216 		* system that are hold within container. This is done this way because
   216         * system that are hold within container. This is done this way because
   217 		* this singleton object is actually destructed by coeenv before some of
   217         * this singleton object is actually destructed by coeenv before some of
   218 		* object's clients' destructor is called where it would try to remove
   218         * object's clients' destructor is called where it would try to remove
   219 		* id from the recovery system. Now this way we do not leak any resources.
   219         * id from the recovery system. Now this way we do not leak any resources.
   220 		*/
   220         */
   221 		void RemoveAllIdsFromContainer();
   221         void RemoveAllIdsFromContainer();
   222 
   222 
   223 
   223 
   224     private:    // Data  
   224     private:    // Data  
   225            
   225            
   226         // Timer for recovery
   226         // Timer for recovery