camerauis/cameraapp/generic/src/CamUserSceneSetupItemArray.cpp
changeset 0 1ddebce53859
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Implements the array of items for the user scene setup list.*
       
    15 */
       
    16 
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "CamUserSceneSetupItemArray.h"
       
    20 #include <aknlists.h>
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 // ---------------------------------------------------------
       
    24 // CCamUserSceneSetupItemArray::CCamUserSceneSetupItemArray
       
    25 // C++ Constructor
       
    26 // ---------------------------------------------------------
       
    27 //
       
    28 CCamUserSceneSetupItemArray::CCamUserSceneSetupItemArray( TInt aGranularity )
       
    29 : CArrayPtrFlat<CCamUserSceneSetupListItem>( aGranularity )
       
    30     {
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------
       
    34 // CCamUserSceneSetupItemArray::ConstructL
       
    35 // 2nd phase Constructor
       
    36 // ---------------------------------------------------------
       
    37 //
       
    38 void CCamUserSceneSetupItemArray::ConstructL()
       
    39     {
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------
       
    43 // CCamUserSceneSetupItemArray::~CCamUserSceneSetupItemArray
       
    44 // Destructor
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 CCamUserSceneSetupItemArray::~CCamUserSceneSetupItemArray()
       
    48   {
       
    49   ResetAndDestroy();
       
    50   }
       
    51 
       
    52 
       
    53 // ---------------------------------------------------------
       
    54 // CCamUserSceneSetupItemArray::MdcaCount
       
    55 // Returns the number of items in the array
       
    56 // ---------------------------------------------------------
       
    57 //
       
    58 TInt CCamUserSceneSetupItemArray::MdcaCount() const
       
    59     {
       
    60     return Count();
       
    61     }
       
    62 
       
    63 // ---------------------------------------------------------
       
    64 // CCamUserSceneSetupItemArray::MdcaPoint
       
    65 // Returns the text for the aIndex-th item in the array.
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 TPtrC16 CCamUserSceneSetupItemArray::MdcaPoint( TInt aIndex ) const
       
    69     {
       
    70     return At( aIndex )->ListBoxText();
       
    71 	}
       
    72 
       
    73 
       
    74 // End of File