camerauis/cameraapp/generic/src/CamUserSceneSetupItemArray.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 19 Aug 2010 09:36:57 +0300
branchRCL_3
changeset 50 f54ad444594d
parent 0 1ddebce53859
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implements the array of items for the user scene setup list.*
*/


// INCLUDE FILES
#include "CamUserSceneSetupItemArray.h"
#include <aknlists.h>

// ================= MEMBER FUNCTIONS =======================
// ---------------------------------------------------------
// CCamUserSceneSetupItemArray::CCamUserSceneSetupItemArray
// C++ Constructor
// ---------------------------------------------------------
//
CCamUserSceneSetupItemArray::CCamUserSceneSetupItemArray( TInt aGranularity )
: CArrayPtrFlat<CCamUserSceneSetupListItem>( aGranularity )
    {
    }

// ---------------------------------------------------------
// CCamUserSceneSetupItemArray::ConstructL
// 2nd phase Constructor
// ---------------------------------------------------------
//
void CCamUserSceneSetupItemArray::ConstructL()
    {
    }

// ---------------------------------------------------------
// CCamUserSceneSetupItemArray::~CCamUserSceneSetupItemArray
// Destructor
// ---------------------------------------------------------
//
CCamUserSceneSetupItemArray::~CCamUserSceneSetupItemArray()
  {
  ResetAndDestroy();
  }


// ---------------------------------------------------------
// CCamUserSceneSetupItemArray::MdcaCount
// Returns the number of items in the array
// ---------------------------------------------------------
//
TInt CCamUserSceneSetupItemArray::MdcaCount() const
    {
    return Count();
    }

// ---------------------------------------------------------
// CCamUserSceneSetupItemArray::MdcaPoint
// Returns the text for the aIndex-th item in the array.
// ---------------------------------------------------------
//
TPtrC16 CCamUserSceneSetupItemArray::MdcaPoint( TInt aIndex ) const
    {
    return At( aIndex )->ListBoxText();
	}


// End of File