devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptation.h
branchRCL_3
changeset 12 b74061f7f3d2
parent 8 bc06d8566074
child 23 545d349d14da
equal deleted inserted replaced
11:d5f04de580b7 12:b74061f7f3d2
   227 	 * The adaptor has control of the context.
   227 	 * The adaptor has control of the context.
   228 	 * @return returns True if the adaptor is the entity responsible for calling Commit()
   228 	 * @return returns True if the adaptor is the entity responsible for calling Commit()
   229 	 */
   229 	 */
   230 	virtual TBool AdaptorControlsContext() const = 0;
   230 	virtual TBool AdaptorControlsContext() const = 0;
   231 
   231 
       
   232 	/*
       
   233 	 * Callback indicating that a clash with pre-emption has occurred during the commit cycle
       
   234 	 * and to push the current request that was being processed onto front of queue.
       
   235 	 */
       
   236 
       
   237 	virtual void PreemptionClash() = 0;
       
   238 
       
   239 	/*
       
   240 	 * Callback indicating the clash with pre-emption during the commit cycle was with state change,
       
   241 	 * so the current request that was previously pushed onto the front of queue should be removed
       
   242 	 * without processing.
       
   243 	 */
       
   244 
       
   245 	virtual void PreemptionClashWithStateChange() = 0;
       
   246 
       
   247 	/*
       
   248 	 * Callback to indicate an error has been noticed. This is to be cached until subsequent
       
   249 	 * AsynchronousOperationComplete(), and handled then if needs.
       
   250 	 */
       
   251 	virtual void NotifyError(TInt aError) = 0;
       
   252 
   232 	};
   253 	};
   233 
   254 
   234 
   255 
   235 /**
   256 /**
   236 @publishedAll
   257 @publishedAll
   881 	/*
   902 	/*
   882 	Used to send a stop call when error in buffer
   903 	Used to send a stop call when error in buffer
   883 	*/
   904 	*/
   884 	IMPORT_C void BufferErrorEvent();
   905 	IMPORT_C void BufferErrorEvent();
   885 	
   906 	
       
   907 	/**
       
   908 	* Used rollback the adapror active state to the previous state prior a Commit call
       
   909 	* @return void
       
   910 	*/
       
   911 	IMPORT_C void RollbackAdaptorActiveStateToBeforeCommit();
       
   912 
   886 protected:
   913 protected:
   887 
   914 
   888 	// So that nobody can extend
   915 	// So that nobody can extend
   889 	CMMFDevSoundAdaptation();
   916 	CMMFDevSoundAdaptation();
   890 
   917