messagingapp/msgutils/unidatamodel/unimmsdataplugin/inc/UniSmilModel.inl
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
child 79 2981cb3aa489
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
     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 #include "debugtraces.h"
       
    21 
       
    22 // ---------------------------------------------------------
       
    23 // CUniSmilModel::Layout
       
    24 //
       
    25 // Accessor
       
    26 // ---------------------------------------------------------
       
    27 //
       
    28 inline TUniLayout CUniSmilModel::Layout() const
       
    29     {
       
    30     return iSlideLayout;    
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------
       
    34 // CUniSmilModel::SlideCount
       
    35 // ---------------------------------------------------------
       
    36 //
       
    37 inline TInt CUniSmilModel::SlideCount() const
       
    38     {
       
    39 #ifdef _DEBUG_TRACES_
       
    40     qCritical() << " CUniSmilModel SlideCount start";
       
    41 #endif
       
    42     return iSlideArray->Count();
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------
       
    46 // CUniSmilModel::SetScreenSize
       
    47 // ---------------------------------------------------------
       
    48 //
       
    49 inline void CUniSmilModel::SetScreenSize( const TSize& aScreenSize )
       
    50     {
       
    51     iScreenSize = aScreenSize;
       
    52     }
       
    53 
       
    54 // ---------------------------------------------------------
       
    55 // CUniSmilModel::MaxSlideCount
       
    56 // ---------------------------------------------------------
       
    57 //
       
    58 inline TInt CUniSmilModel::MaxSlideCount() const
       
    59     {
       
    60     return iMaxSlideCount;
       
    61     }
       
    62         
       
    63 // ---------------------------------------------------------
       
    64 // CUniSmilModel::SetMaxSlideCount
       
    65 // ---------------------------------------------------------
       
    66 //
       
    67 inline void CUniSmilModel::SetMaxSlideCount( TInt aSlideCount )
       
    68     {
       
    69     iMaxSlideCount = aSlideCount;
       
    70     }
       
    71 
       
    72 // ---------------------------------------------------------
       
    73 // CUniSmilModel::MaxSlideCountReached
       
    74 // ---------------------------------------------------------
       
    75 //
       
    76 inline TBool CUniSmilModel::MaxSlideCountReached() const
       
    77     {
       
    78     if ( iMaxSlideCount > 0 &&
       
    79          iSlideArray->Count() >= iMaxSlideCount )
       
    80         {
       
    81         return ETrue;
       
    82         }
       
    83     else
       
    84         {
       
    85         return EFalse;
       
    86         }
       
    87     }