khronosfws/openmax_al/src/mmf_adaptation/cmmfradiobackendengine.h
changeset 32 94fc26b6e006
parent 31 8dfd592727cb
child 42 1fa3fb47b1e3
equal deleted inserted replaced
31:8dfd592727cb 32:94fc26b6e006
    55 		TInt SetMute(XAboolean aMute);	
    55 		TInt SetMute(XAboolean aMute);	
    56 		TInt GetForcedMonoReception(XAuint32& aForcedMono);
    56 		TInt GetForcedMonoReception(XAuint32& aForcedMono);
    57 		TInt ForceMonoReception(XAuint32 aForcedMono);
    57 		TInt ForceMonoReception(XAuint32 aForcedMono);
    58 		void PlayRadio();		
    58 		void PlayRadio();		
    59 		void StopRadio();		
    59 		void StopRadio();		
    60     XAresult SetRadioAdaptContext(void * adaptcontext);  	
    60         XAresult SetRadioAdaptContext(void * adaptcontext);  	
    61 		XAresult SetPlayerAdaptContext(void * adaptcontext);    					
    61 		XAresult SetPlayerAdaptContext(void * adaptcontext);    					
    62 						
    62 						
    63     /**
    63     /**
    64      * From MRadioPlayerObserver.
    64      * From MRadioPlayerObserver.
    65      * Called when Radio state changed.
    65      * Called when Radio state changed.
   221      * @param aIndex Index to the preset that has changed. Zero means all presets.
   221      * @param aIndex Index to the preset that has changed. Zero means all presets.
   222      */
   222      */
   223     void MrpeoPresetChanged( TPresetChangeEvent aChange, TInt aIndex ); 
   223     void MrpeoPresetChanged( TPresetChangeEvent aChange, TInt aIndex ); 
   224        
   224        
   225 private:
   225 private:
   226 		static CMMFRadioBackendEngine* s_instance;
   226     static CMMFRadioBackendEngine* s_instance;
   227     CMMFRadioBackendEngine();
   227     CMMFRadioBackendEngine();
   228     void ConstructL();
   228     void ConstructL();
       
   229 	XAresult TranslateError(TInt error);    
   229 
   230 
   230 private:      
   231 private:      
   231     CRadioUtility* 					iRadioUtility; 
   232     CRadioUtility* 				iRadioUtility; 
   232     CRadioFmTunerUtility* 	iFmTunerUtility;
   233     CRadioFmTunerUtility* 	    iFmTunerUtility;
   233     CRadioPlayerUtility* 		iPlayerUtility;
   234     CRadioPlayerUtility* 		iRadioPlayerUtility;
   234     TBool										iAutoFlag;
   235     TBool						iForceStereo;
   235     void* 									iRadioAdaptContext;
   236     void* 						iRadioAdaptContext;
   236     void* 									iPlayerAdaptContext;    
   237     void* 						iPlayerAdaptContext;    
   237        
   238        
   238     };
   239     };
   239     
   240     
   240 #else  /* __cplusplus */
   241 #else  /* __cplusplus */
   241 
   242