|
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: Location Setting item type for Image settings* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "CamLocationSettingItem.h" |
|
21 #include "CamLocationSettingPage.h" |
|
22 #include "CamUtility.h" |
|
23 #include "CamAppUiBase.h" |
|
24 #include "CamStaticSettingsModel.h" |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 // --------------------------------------------------------------------------- |
|
30 // CCamLocationSettingItem::CCamLocationSettingItem |
|
31 // C++ constructor |
|
32 // --------------------------------------------------------------------------- |
|
33 // |
|
34 CCamLocationSettingItem::CCamLocationSettingItem( |
|
35 TCamCameraMode aMode, |
|
36 TInt aIdentifier, |
|
37 TInt& aValue ) |
|
38 : CAknEnumeratedTextPopupSettingItem( aIdentifier, aValue ), |
|
39 iMode( aMode ) |
|
40 { |
|
41 } |
|
42 |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // CCamLocationSettingItem::~CCamLocationSettingItem |
|
46 // Destructor. |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 CCamLocationSettingItem::~CCamLocationSettingItem() |
|
50 { |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CCamLocationSettingItem::CreateSettingPageL |
|
55 // Framework method for constructing the launching setting page. |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 CAknSettingPage* CCamLocationSettingItem::CreateSettingPageL() |
|
59 { |
|
60 PRINT( _L("Camera => CCamLocationSettingItem::CreateSettingPageL") ); |
|
61 // Create an instance of our customized setting page. |
|
62 TPtrC settingName = SettingName(); |
|
63 CAknSettingPage* page = |
|
64 new( ELeave ) CCamLocationSettingPage( iMode, |
|
65 settingName, |
|
66 SettingNumber(), |
|
67 EAknCtPopupSettingList, |
|
68 SettingEditorResourceId(), |
|
69 SettingPageResourceId(), |
|
70 *QueryValue(), |
|
71 static_cast<CCamAppUiBase*>( CCoeEnv::Static()->AppUi() ) |
|
72 ->AppController() ); |
|
73 PRINT( _L("Camera <= CCamLocationSettingItem::CreateSettingPageL") ); |
|
74 return page; |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // CCamLocationSettingItem::CompleteConstructionL |
|
79 // |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 void CCamLocationSettingItem::CompleteConstructionL() |
|
83 { |
|
84 PRINT( _L("Camera => CCamLocationSettingItem::CompleteConstructionL") ); |
|
85 CAknEnumeratedTextPopupSettingItem::CompleteConstructionL(); |
|
86 // make sure we only have the support items in our test array |
|
87 CArrayPtr<CAknEnumeratedText>* array = EnumeratedTextArray(); |
|
88 PRINT( _L("Camera <= CCamLocationSettingItem::CompleteConstructionL") ); |
|
89 } |
|
90 |
|
91 // End of file |