idlehomescreen/xmluirendering/uiengine/inc/xnviewdata.inl
branchRCL_3
changeset 83 5456b4e8b3a8
equal deleted inserted replaced
82:5f0182e07bfb 83:5456b4e8b3a8
       
     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:  Data class to hold view info - inline functions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _XNVIEWDATA_INL_
       
    20 #define _XNVIEWDATA_INL_
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // Returns if active or not
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 inline TBool CXnViewData::Active() const
       
    27     {
       
    28     return ( iFlags.IsSet( EIsActive ) ? ETrue : EFalse );
       
    29     };
       
    30 
       
    31 // ---------------------------------------------------------------------------
       
    32 // Sets viewdata to be initial
       
    33 // ---------------------------------------------------------------------------
       
    34 //
       
    35 inline void CXnViewData::SetInitial() 
       
    36     {
       
    37     iFlags.Set( EIsInitial );
       
    38     };
       
    39 
       
    40 // ---------------------------------------------------------------------------
       
    41 // Returns if initial or not
       
    42 // ---------------------------------------------------------------------------
       
    43 //
       
    44 inline TBool CXnViewData::Initial() const 
       
    45     {
       
    46     return ( iFlags.IsSet( EIsInitial ) ? ETrue : EFalse );
       
    47     };
       
    48 
       
    49 // ---------------------------------------------------------------------------
       
    50 // Sets to use empty widget
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 inline void CXnViewData::SetUseEmptyWidget( TBool aUse )
       
    54     {
       
    55     if( aUse )
       
    56         {
       
    57         iFlags.Set( EUseEmpty );        
       
    58         }
       
    59     else
       
    60         {
       
    61         iFlags.Clear( EUseEmpty );        
       
    62         }    
       
    63     };
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // Returns whether to use empty widget
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 inline TBool CXnViewData::UseEmptyWidget() const
       
    70     {
       
    71     return ( iFlags.IsSet( EUseEmpty ) ? ETrue : EFalse );
       
    72     };
       
    73 
       
    74 #endif // _XNVIEWDATA_INL_