camerauis/cameraapp/generic/GsCamcorderPlugin/src/GSCamDefaultNameSettingItem.cpp
branchRCL_3
changeset 24 bac7acad7cb3
parent 0 1ddebce53859
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
       
     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:  Setting item type for CAknEnumeratedItems.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "GSCamDefaultNameSettingItem.h"
       
    21 #include "GSCamdefaultnamesettingpage.h"
       
    22 #include "CamSettingsInternal.hrh"
       
    23 // CONSTANTS
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 // ---------------------------------------------------------------------------
       
    27 // CGSCamDefaultNameSettingItem::CGSCamDefaultNameSettingItem
       
    28 // C++ constructor
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CGSCamDefaultNameSettingItem::CGSCamDefaultNameSettingItem( 
       
    32     TDes&          aNameBase,
       
    33     TCamCameraMode aMode,
       
    34     TInt           aIdentifier,
       
    35     TInt&          aValue,
       
    36     TBool          aCamera )
       
    37 : CAknEnumeratedTextPopupSettingItem( aIdentifier, aValue ),
       
    38   iNameBase( aNameBase ),
       
    39   iMode( aMode ),
       
    40   iCamera ( aCamera )
       
    41     {
       
    42     }
       
    43 
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // CGSCamDefaultNameSettingItem::~CGSCamDefaultNameSettingItem
       
    47 // Destructor.
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 CGSCamDefaultNameSettingItem::~CGSCamDefaultNameSettingItem()
       
    51     {
       
    52     }
       
    53 
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CGSCamDefaultNameSettingItem::CreateSettingPageL
       
    57 // Framework method for constructing the launching setting page.
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 CAknSettingPage* CGSCamDefaultNameSettingItem::CreateSettingPageL()
       
    61     {
       
    62     // Create an instance of our customized setting page.
       
    63     TPtrC settingName = SettingName();
       
    64     return new( ELeave )CGSCamDefaultNameSettingPage(
       
    65         iNameBase,
       
    66         iMode,
       
    67         &settingName,
       
    68         SettingNumber(), 
       
    69         EAknCtPopupSettingList,
       
    70         SettingEditorResourceId(),
       
    71         SettingPageResourceId(),
       
    72         *QueryValue(), iCamera );
       
    73     }