resourceinterfaces/fmtransmittercontrol/src/HWRMFmTxStatusObserver.cpp
branchRCL_3
changeset 21 ccb4f6b3db21
parent 0 4e1aa6a622a0
child 22 8cb079868133
equal deleted inserted replaced
20:1ddbe54d0645 21:ccb4f6b3db21
   201 // CHWRMFmTxStatusObserver::Status
   201 // CHWRMFmTxStatusObserver::Status
   202 // Return FM Tx status
   202 // Return FM Tx status
   203 // -----------------------------------------------------------------------------
   203 // -----------------------------------------------------------------------------
   204 //
   204 //
   205 TFmTxState CHWRMFmTxStatusObserver::Status()
   205 TFmTxState CHWRMFmTxStatusObserver::Status()
   206     {
   206     {    
   207     COMPONENT_TRACE1( _L( "HWRM FM Tx Client - CHWRMFmTxStatusObserver::Status()" ));
       
   208     
       
   209     TInt value(EFmTxStateUnknown);
       
   210     
       
   211     TInt err = RProperty::Get(KPSUidHWRMFmTx, KHWRMFmTxStatus, value);
       
   212     
       
   213     if ( err == KErrNone )
       
   214         {
       
   215 		COMPONENT_TRACE1( _L( "HWRM FM Tx Client - CHWRMFmTxStatusObserver::Status - RPropert::Get ok" ) );        	
       
   216         	
       
   217         iFmTxState = static_cast<TFmTxState>(value);
       
   218         }
       
   219     
       
   220     COMPONENT_TRACE2( _L( "HWRM FM Tx Client - CHWRMFmTxStatusObserver::Status - return 0x%x" ), iFmTxState );
   207     COMPONENT_TRACE2( _L( "HWRM FM Tx Client - CHWRMFmTxStatusObserver::Status - return 0x%x" ), iFmTxState );
   221     
   208     
   222     return iFmTxState;
   209     return iFmTxState;
   223     }
   210     }
   224     
   211