vtuis/lcvtplugin/inc/common/tlcvtmediastate.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:  Media state class inline methods.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // TLcVtMediaState::TLcVtMediaState
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 TLcVtMediaState::TLcVtMediaState( MVtEngMedia& aMedia,
       
    24     MVtEngCommandHandler& aCommandHandler  )
       
    25     : iMedia( aMedia ), iCommandHandler( aCommandHandler )
       
    26     {
       
    27     }
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // TLcVtMediaState::IsVideo
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 TBool TLcVtMediaState::IsVideo() const
       
    34     {
       
    35     return IsFlag( EIsVideo );
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // TLcVtMediaState::HasCamera
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 TBool TLcVtMediaState::HasCamera() const
       
    43     {
       
    44     return IsFlag( EHasCamera );
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // TLcVtMediaState::IsFreezeSupported
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 TBool TLcVtMediaState::IsFreezeSupported() const
       
    52     {
       
    53     return IsFlag( EIsFreezeSupported );
       
    54     }
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // TLcVtMediaState::IsFrozen
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 TBool TLcVtMediaState::IsFrozen() const
       
    61     {
       
    62     return IsFlag( EIsFrozen );
       
    63     }
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // TLcVtMediaState::IsSharing
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 TBool TLcVtMediaState::IsSharing() const
       
    70     {
       
    71     return IsFlag( EIsSharing );
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // TLcVtMediaState::IsInitializingShare
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 TBool TLcVtMediaState::IsInitializingShare() const
       
    79     {
       
    80     return IsFlag( EIsInitializingShare );
       
    81     }
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // TLcVtMediaState::IsPrimaryCameraInUse
       
    85 // -----------------------------------------------------------------------------
       
    86 //
       
    87 TBool TLcVtMediaState::IsPrimaryCameraInUse() const
       
    88     {
       
    89     return IsFlag( EIsPrimaryCameraInUse );
       
    90     }
       
    91 
       
    92 // -----------------------------------------------------------------------------
       
    93 // TLcVtMediaState::IsSecondaryCameraInUse
       
    94 // -----------------------------------------------------------------------------
       
    95 //
       
    96 TBool TLcVtMediaState::IsSecondaryCameraInUse() const
       
    97     {
       
    98     return IsFlag( EIsSecondaryCameraInUse );
       
    99     }
       
   100     
       
   101 // -----------------------------------------------------------------------------
       
   102 // TLcVtMediaState::IsNotAbleToShare
       
   103 // -----------------------------------------------------------------------------
       
   104 //
       
   105 TBool TLcVtMediaState::IsNotAbleToShare() const
       
   106     {
       
   107     return IsFlag( EIsNotAbleToShare );
       
   108     }
       
   109 
       
   110 // -----------------------------------------------------------------------------
       
   111 // TLcVtMediaState::HasPrimaryCamera
       
   112 // -----------------------------------------------------------------------------
       
   113 //
       
   114 TBool TLcVtMediaState::HasPrimaryCamera() const
       
   115     {
       
   116     return IsFlag( EHasPrimaryCamera );
       
   117     }
       
   118 
       
   119 // -----------------------------------------------------------------------------
       
   120 // TLcVtMediaState::HasSecondaryCamera
       
   121 // -----------------------------------------------------------------------------
       
   122 //
       
   123 TBool TLcVtMediaState::HasSecondaryCamera() const
       
   124     {
       
   125     return IsFlag( EHasSecondaryCamera );
       
   126     }
       
   127 
       
   128 // -----------------------------------------------------------------------------
       
   129 // TLcVtMediaState::IsContrastSupported
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 TBool TLcVtMediaState::IsContrastSupported() const
       
   133     {
       
   134     return IsFlag( EIsContrastSupported );
       
   135     }
       
   136 
       
   137 // -----------------------------------------------------------------------------
       
   138 // TLcVtMediaState::IsWhiteBalanceSupported
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 TBool TLcVtMediaState::IsWhiteBalanceSupported() const
       
   142     {
       
   143     return IsFlag( EIsWhiteBalanceSupported );
       
   144     }
       
   145 
       
   146 // -----------------------------------------------------------------------------
       
   147 // TLcVtMediaState::IsColorToneSupported
       
   148 // -----------------------------------------------------------------------------
       
   149 //
       
   150 TBool TLcVtMediaState::IsColorToneSupported() const
       
   151     {
       
   152     return IsFlag( EIsColorToneSupported );
       
   153     }
       
   154 
       
   155 // -----------------------------------------------------------------------------
       
   156 // TLcVtMediaState::IsBrightnessSupported
       
   157 // -----------------------------------------------------------------------------
       
   158 //
       
   159 TBool TLcVtMediaState::IsBrightnessSupported() const
       
   160     {
       
   161     return IsFlag( EIsBrightnessSupported );
       
   162     }
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 // TLcVtMediaState::IsVideoPermanentlyStopped
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 TBool TLcVtMediaState::IsVideoPermanentlyStopped() const
       
   169     {
       
   170     return IsFlag( EIsVideoPermanentlyStopped );
       
   171     }