resourcemgmt/hwresourcesmgr/server/inc/HWRMFmTxCommonData.inl
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * CHWRMFmTxCommonData::Status
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 inline TFmTxState CHWRMFmTxCommonData::Status() const
       
    22     {
       
    23     return iFmTxState;
       
    24     }
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // CHWRMFmTxCommonData::IsRdsInitialised
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 inline TBool CHWRMFmTxCommonData::IsRdsInitialised() const
       
    31     {
       
    32     return iRdsInitialised;
       
    33     }
       
    34     
       
    35 // -----------------------------------------------------------------------------
       
    36 // CHWRMFmTxCommonData::IsFmTxHardwareOn
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 inline TBool CHWRMFmTxCommonData::IsFmTxHardwareOn() const
       
    40     {
       
    41     return ( iFmTxState == EFmTxStateActive || iFmTxState == EFmTxStateInactive || iFmTxState == EFmTxStateScanning ) ? ETrue : EFalse;
       
    42     }
       
    43         
       
    44 // -----------------------------------------------------------------------------
       
    45 // CHWRMFmTxCommonData::IsFmTxHardwareOn
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 inline TBool CHWRMFmTxCommonData::IsFmTxHardwareOn( TFmTxState aState ) const
       
    49     {
       
    50     return ( aState == EFmTxStateActive || aState == EFmTxStateInactive || aState == EFmTxStateScanning ) ? ETrue : EFalse;
       
    51     }
       
    52     
       
    53 // -----------------------------------------------------------------------------
       
    54 // CHWRMFmTxCommonData::Frequency
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 inline TInt CHWRMFmTxCommonData::Frequency() const
       
    58     {
       
    59     return iFmTxFrequency;
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // CHWRMFmTxCommonData::FrequencyRangeUpdated
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 inline TBool CHWRMFmTxCommonData::FrequencyRangeUpdated() const
       
    67     {
       
    68     return iFrequencyRangeUpdated;
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // CHWRMFmTxCommonData::GetRdsTextConverter
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 inline CHWRMFmTxRdsTextConverter* CHWRMFmTxCommonData::GetRdsTextConverter()
       
    76     {
       
    77     return iRdsTextConverter;
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CHWRMFmTxCommonData::RdsData
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 inline TFmTxRdsData CHWRMFmTxCommonData::RdsData() const
       
    85     {
       
    86     return iRdsData;
       
    87     }
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // CHWRMFmTxCommonData::RdsPs
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 inline const TDesC8& CHWRMFmTxCommonData::ConvertedRdsPs() const
       
    94     {
       
    95     return iRdsConvertedPs;
       
    96     }
       
    97     
       
    98 // -----------------------------------------------------------------------------
       
    99 // CHWRMFmTxCommonData::RdsPtyn
       
   100 // -----------------------------------------------------------------------------
       
   101 //
       
   102 inline const TDesC8& CHWRMFmTxCommonData::ConvertedRdsPtyn() const
       
   103     {
       
   104     return iRdsConvertedPtyn;
       
   105     }    
       
   106 
       
   107 // -----------------------------------------------------------------------------
       
   108 // CHWRMFmTxCommonData::PowerSaveTimeout
       
   109 // -----------------------------------------------------------------------------
       
   110 //
       
   111 inline TUint32 CHWRMFmTxCommonData::PowerSaveTimeout() const
       
   112     {
       
   113     return iFmTxPowerSaveTimeout;
       
   114     }    
       
   115 
       
   116 // End of File