vtuis/lcvtplugin/inc/common/tlcvtstates.inl
branchRCL_3
changeset 35 779871d1e4f4
parent 34 f15ac8e65a02
child 37 590f6f022902
equal deleted inserted replaced
34:f15ac8e65a02 35:779871d1e4f4
     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:  LC VT states class inline methods.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // TLcVtStates::MediaState
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 const TLcVtMediaState& TLcVtStates::MediaState() const
       
    24     {
       
    25     return iMediaState;
       
    26     }
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // TVtUiStates::AudioState
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 const TLcVtAudioState& TLcVtStates::AudioState() const
       
    33     {
       
    34     return iAudioState;
       
    35     }
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // TLcVtStates::SetCLIReceived
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 void TLcVtStates::SetCLIReceived( TBool aSet )
       
    42     {
       
    43     aSet ? SetFlag( EIsCLIReceived ) : ClearFlag( EIsCLIReceived );
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // TLcVtStates::IsCLIReceived
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 TBool TLcVtStates::IsCLIReceived() const
       
    51     {
       
    52     return IsFlag( EIsCLIReceived );
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // TLcVtStates::SetLayoutChangeNeeded
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 void TLcVtStates::SetLayoutChangeNeeded( TBool aSet )
       
    60     {
       
    61     aSet ? SetFlag( EIsLayoutChangeNeeded ) :
       
    62         ClearFlag( EIsLayoutChangeNeeded );
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // TLcVtStates::IsLayoutChangeNeeded
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 TBool TLcVtStates::IsLayoutChangeNeeded() const
       
    70     {
       
    71     return IsFlag( EIsLayoutChangeNeeded );
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // TLcVtStates::SetDeviceLockOn
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 void TLcVtStates::SetDeviceLockOn( TBool aSet )
       
    79     {
       
    80     aSet ? SetFlag( EIsDeviceLockOn ) :
       
    81         ClearFlag( EIsDeviceLockOn );
       
    82     }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // TLcVtStates::IsDeviceLockOn
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 TBool TLcVtStates::IsDeviceLockOn() const
       
    89     {
       
    90     return IsFlag( EIsDeviceLockOn );
       
    91     }
       
    92 
       
    93 // -----------------------------------------------------------------------------
       
    94 // TLcVtStates::SetDetailsReceived
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 void TLcVtStates::SetDetailsReceived( TBool aSet )
       
    98     {
       
    99     aSet ? SetFlag( EDetailsReceived ) :
       
   100         ClearFlag( EDetailsReceived );
       
   101     }
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // TLcVtStates::IsDetailsReceived
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 TBool TLcVtStates::IsDetailsReceived() const
       
   108     {
       
   109     return IsFlag( EDetailsReceived );
       
   110     }
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 // TLcVtStates::SetWaitingForFirstFrame
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 void TLcVtStates::SetWaitingForFirstFrame( TBool aSet )
       
   117     {
       
   118     aSet ? SetFlag( EWaitingForFirstFrame ) :
       
   119         ClearFlag( EWaitingForFirstFrame );
       
   120     }
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // TLcVtStates::IsWaitingForFirstFrame
       
   124 // -----------------------------------------------------------------------------
       
   125 //
       
   126 TBool TLcVtStates::IsWaitingForFirstFrame() const
       
   127     {
       
   128     return IsFlag( EWaitingForFirstFrame );
       
   129     }
       
   130 
       
   131 // -----------------------------------------------------------------------------
       
   132 // TLcVtStates::SetUseSQCif
       
   133 // -----------------------------------------------------------------------------
       
   134 //
       
   135 void TLcVtStates::SetUseSQCif( TBool aSet )
       
   136     {
       
   137     aSet ? SetFlag( EUseSQCif ) :
       
   138         ClearFlag( EUseSQCif );
       
   139     }
       
   140 
       
   141 // -----------------------------------------------------------------------------
       
   142 // TLcVtStates::IsUseSQCif
       
   143 // -----------------------------------------------------------------------------
       
   144 //
       
   145 TBool TLcVtStates::IsUseSQCif() const
       
   146     {
       
   147     return IsFlag( EUseSQCif );
       
   148     }
       
   149 
       
   150 // -----------------------------------------------------------------------------
       
   151 // TLcVtStates::SetThisApplicationForeground
       
   152 // -----------------------------------------------------------------------------
       
   153 //
       
   154 void TLcVtStates::SetThisApplicationForeground( TBool aSet )
       
   155     {
       
   156     aSet ? SetFlag( EIsThisApplicationForeground ) :
       
   157         ClearFlag( EIsThisApplicationForeground );
       
   158     }
       
   159 
       
   160 // -----------------------------------------------------------------------------
       
   161 // TLcVtStates::IsThisApplicationForeground
       
   162 // -----------------------------------------------------------------------------
       
   163 //
       
   164 TBool TLcVtStates::IsThisApplicationForeground() const
       
   165     {
       
   166     return IsFlag( EIsThisApplicationForeground );
       
   167     }
       
   168 
       
   169 // -----------------------------------------------------------------------------
       
   170 // TLcVtStates::SetDisableBlindSetting
       
   171 // -----------------------------------------------------------------------------
       
   172 //
       
   173 void TLcVtStates::SetDisableBlindSetting( TBool aSet )
       
   174     {
       
   175     aSet ? SetFlag( EIsDisableBlindSetting ) :
       
   176         ClearFlag( EIsDisableBlindSetting );
       
   177     }
       
   178 
       
   179 // -----------------------------------------------------------------------------
       
   180 // TLcVtStates::IsDisableBlindSetting
       
   181 // -----------------------------------------------------------------------------
       
   182 //
       
   183 TBool TLcVtStates::IsDisableBlindSetting() const
       
   184     {
       
   185     return IsFlag( EIsDisableBlindSetting );
       
   186     }
       
   187 
       
   188 // -----------------------------------------------------------------------------
       
   189 // TLcVtStates::SetExecShowCameraInUse
       
   190 // -----------------------------------------------------------------------------
       
   191 //
       
   192 void TLcVtStates::SetExecShowCameraInUse( TBool aSet )
       
   193     {
       
   194     aSet ? SetFlag( EExecShowCameraInUse ) :
       
   195         ClearFlag( EExecShowCameraInUse );
       
   196     }
       
   197 
       
   198 // -----------------------------------------------------------------------------
       
   199 // TLcVtStates::IsExecShowCameraInUse
       
   200 // -----------------------------------------------------------------------------
       
   201 //
       
   202 TBool TLcVtStates::IsExecShowCameraInUse() const
       
   203     {
       
   204     return IsFlag( EExecShowCameraInUse );
       
   205     }
       
   206 
       
   207 // -----------------------------------------------------------------------------
       
   208 // TLcVtStates:::SetWaitingCall
       
   209 // -----------------------------------------------------------------------------
       
   210 //
       
   211 void TLcVtStates::SetWaitingCall( TBool aSet )
       
   212     {
       
   213     aSet ? SetFlag( EIsWaitingCall ) :
       
   214         ClearFlag( EIsWaitingCall );
       
   215     }
       
   216 
       
   217 // -----------------------------------------------------------------------------
       
   218 // TLcVtStates::IsWaitingCall
       
   219 // -----------------------------------------------------------------------------
       
   220 //
       
   221 TBool TLcVtStates::IsWaitingCall() const
       
   222     {
       
   223     return IsFlag( EIsWaitingCall );
       
   224     }
       
   225 
       
   226 // -----------------------------------------------------------------------------
       
   227 // TLcVtStates::SetExecState
       
   228 // -----------------------------------------------------------------------------
       
   229 //
       
   230 void TLcVtStates::SetExecState( const TLcVtExecState aState )
       
   231     {
       
   232     iExecState = aState;
       
   233     }
       
   234 // -----------------------------------------------------------------------------
       
   235 // TLcVtStates::ExecState
       
   236 // -----------------------------------------------------------------------------
       
   237 //
       
   238 TLcVtStates::TLcVtExecState TLcVtStates::ExecState() const
       
   239     {
       
   240     return iExecState;
       
   241     }
       
   242