mobilemessaging/unieditor/model/inc/UniSmilModel.inl
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2005 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 *       CUniSmilModel, Storage for Smil presentation data.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // ---------------------------------------------------------
       
    22 // CUniSmilModel::Layout
       
    23 //
       
    24 // Accessor
       
    25 // ---------------------------------------------------------
       
    26 //
       
    27 inline TUniLayout CUniSmilModel::Layout() const
       
    28     {
       
    29     return iSlideLayout;    
       
    30     }
       
    31 
       
    32 // ---------------------------------------------------------
       
    33 // CUniSmilModel::SlideCount
       
    34 // ---------------------------------------------------------
       
    35 //
       
    36 inline TInt CUniSmilModel::SlideCount() const
       
    37     {
       
    38     return iSlideArray->Count();
       
    39     }
       
    40 
       
    41 // ---------------------------------------------------------
       
    42 // CUniSmilModel::SetScreenSize
       
    43 // ---------------------------------------------------------
       
    44 //
       
    45 inline void CUniSmilModel::SetScreenSize( const TSize& aScreenSize )
       
    46     {
       
    47     iScreenSize = aScreenSize;
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // CUniSmilModel::MaxSlideCount
       
    52 // ---------------------------------------------------------
       
    53 //
       
    54 inline TInt CUniSmilModel::MaxSlideCount() const
       
    55     {
       
    56     return iMaxSlideCount;
       
    57     }
       
    58         
       
    59 // ---------------------------------------------------------
       
    60 // CUniSmilModel::SetMaxSlideCount
       
    61 // ---------------------------------------------------------
       
    62 //
       
    63 inline void CUniSmilModel::SetMaxSlideCount( TInt aSlideCount )
       
    64     {
       
    65     iMaxSlideCount = aSlideCount;
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------
       
    69 // CUniSmilModel::MaxSlideCountReached
       
    70 // ---------------------------------------------------------
       
    71 //
       
    72 inline TBool CUniSmilModel::MaxSlideCountReached() const
       
    73     {
       
    74     if ( iMaxSlideCount > 0 &&
       
    75          iSlideArray->Count() >= iMaxSlideCount )
       
    76         {
       
    77         return ETrue;
       
    78         }
       
    79     else
       
    80         {
       
    81         return EFalse;
       
    82         }
       
    83     }