vtuis/lcvtplugin/inc/common/tlcvtaudiostate.inl
branchRCL_3
changeset 24 f15ac8e65a02
equal deleted inserted replaced
23:890b5dd735f8 24:f15ac8e65a02
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Audio state class inline methods.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // TLcVtAudioState::TLcVtAudioState
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 TLcVtAudioState::TLcVtAudioState( CVtEngModel& aModel )
       
    24 : iModel( aModel )
       
    25     {
       
    26     }
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // TLcVtAudioState::IsAudio
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 TBool TLcVtAudioState::IsAudio() const
       
    33     {
       
    34     return IsFlag( EIsAudio );
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // TLcVtAudioState::CanActivateBtHf
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 TBool TLcVtAudioState::CanActivateBtHf() const
       
    42     {
       
    43     return IsFlag( ECanActivateBtHf );
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // TLcVtAudioState::CanDeactivateBtHf
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 TBool TLcVtAudioState::CanDeactivateBtHf() const
       
    51     {
       
    52     return IsFlag( ECanDeactivateBtHf );
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // TLcVtAudioState::CanActivateLoudspeaker
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 TBool TLcVtAudioState::CanActivateLoudspeaker() const
       
    60     {
       
    61     return IsFlag( ECanActivateLoudspeaker );
       
    62     }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // TLcVtAudioState::CanDeactivateLoudspeaker
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 TBool TLcVtAudioState::CanDeactivateLoudspeaker() const
       
    69     {
       
    70     return IsFlag( ECanDeactivateLoudspeaker );
       
    71     }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // TLcVtAudioState::IsAudioPermanentlyStopped
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 TBool TLcVtAudioState::IsAudioPermanentlyStopped() const
       
    78     {
       
    79     return IsFlag( EIsAudioPermanentlyStopped );
       
    80     }