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 "CamDefaultNameSettingItem.h" |
|
21 #include "Camdefaultnamesettingpage.h" |
|
22 |
|
23 // CONSTANTS |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 // --------------------------------------------------------------------------- |
|
27 // CCamDefaultNameSettingItem::CCamDefaultNameSettingItem |
|
28 // C++ constructor |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 CCamDefaultNameSettingItem::CCamDefaultNameSettingItem( |
|
32 TDes& aNameBase, |
|
33 TCamCameraMode aMode, |
|
34 TInt aIdentifier, |
|
35 TInt& aValue ) |
|
36 : CAknEnumeratedTextPopupSettingItem( aIdentifier, aValue ), |
|
37 iNameBase( aNameBase ), |
|
38 iMode( aMode ) |
|
39 { |
|
40 } |
|
41 |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // CCamDefaultNameSettingItem::~CCamDefaultNameSettingItem |
|
45 // Destructor. |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 CCamDefaultNameSettingItem::~CCamDefaultNameSettingItem() |
|
49 { |
|
50 } |
|
51 |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CCamDefaultNameSettingItem::CreateSettingPageL |
|
55 // Framework method for constructing the launching setting page. |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 CAknSettingPage* CCamDefaultNameSettingItem::CreateSettingPageL() |
|
59 { |
|
60 // Create an instance of our customized setting page. |
|
61 |
|
62 TPtrC settingName = SettingName(); |
|
63 return new( ELeave )CCamDefaultNameSettingPage( |
|
64 iNameBase, |
|
65 iMode, |
|
66 &settingName, |
|
67 SettingNumber(), |
|
68 EAknCtPopupSettingList, |
|
69 SettingEditorResourceId(), |
|
70 SettingPageResourceId(), |
|
71 *QueryValue() ); |
|
72 } |
|