camerauis/cameraapp/generic/src/CamDefaultNameSettingItem.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:39:00 +0200
branchRCL_3
changeset 10 8c55c525d5d7
parent 0 1ddebce53859
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* 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:  Setting item type for CAknEnumeratedItems.*
*/



// INCLUDE FILES
#include "CamDefaultNameSettingItem.h"
#include "Camdefaultnamesettingpage.h"

// CONSTANTS

// ============================ MEMBER FUNCTIONS ===============================
// ---------------------------------------------------------------------------
// CCamDefaultNameSettingItem::CCamDefaultNameSettingItem
// C++ constructor
// ---------------------------------------------------------------------------
//
CCamDefaultNameSettingItem::CCamDefaultNameSettingItem( 
    TDes&          aNameBase,
    TCamCameraMode aMode,
    TInt           aIdentifier,
    TInt&          aValue )
: CAknEnumeratedTextPopupSettingItem( aIdentifier, aValue ),
  iNameBase( aNameBase ),
  iMode( aMode )
    {
    }


// ---------------------------------------------------------------------------
// CCamDefaultNameSettingItem::~CCamDefaultNameSettingItem
// Destructor.
// ---------------------------------------------------------------------------
//
CCamDefaultNameSettingItem::~CCamDefaultNameSettingItem()
    {
    }


// ---------------------------------------------------------------------------
// CCamDefaultNameSettingItem::CreateSettingPageL
// Framework method for constructing the launching setting page.
// ---------------------------------------------------------------------------
//
CAknSettingPage* CCamDefaultNameSettingItem::CreateSettingPageL()
    {
    // Create an instance of our customized setting page.

    TPtrC settingName = SettingName();
    return new( ELeave )CCamDefaultNameSettingPage(
        iNameBase,
        iMode,
        &settingName,
        SettingNumber(), 
        EAknCtPopupSettingList,
        SettingEditorResourceId(),
        SettingPageResourceId(),
        *QueryValue() );
    }