|
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: Photo settings list class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GSCAMPHOTOSETTINGSLIST_H |
|
21 #define GSCAMPHOTOSETTINGSLIST_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <bldvariant.hrh> // for feature definitions |
|
25 #include <aknsettingitemlist.h> // CAknSettingItemList |
|
26 #include <CAknMemorySelectionDialog.h> |
|
27 #include <driveinfo.h> |
|
28 #include "CamStaticSettingsModel.h" |
|
29 #include "GSCamcorderPlugin.hrh" |
|
30 |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CGSCamSettingsModel; |
|
34 class CGSCamcorderPlugin; |
|
35 |
|
36 class CCamWaitDialog; |
|
37 |
|
38 /** |
|
39 * Image settings list class |
|
40 */ |
|
41 class CGSCamPhotoSettingsList : public CAknSettingItemList |
|
42 |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 /** |
|
46 * C++ constructor. |
|
47 * @since 2.1 |
|
48 * @param aController reference to CCcorController |
|
49 */ |
|
50 CGSCamPhotoSettingsList( CCamStaticSettingsModel& aModel ); |
|
51 |
|
52 /** |
|
53 * Symbian 2nd phase constructor |
|
54 * @since 2.1 |
|
55 */ |
|
56 void ConstructL( TBool aLaunchedFromGS, |
|
57 TBool aSecondaryCameraSettings ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CGSCamPhotoSettingsList(); |
|
63 |
|
64 |
|
65 public: // Functions of base classes |
|
66 /** |
|
67 * From CAknSettingItemList |
|
68 * Launch the setting page for the current item by calling |
|
69 * EditItemL on it. |
|
70 */ |
|
71 void EditItemL( TInt aIndex, TBool aCalledFromMenu ); |
|
72 |
|
73 /** |
|
74 * From CCoeControl set the size and position of its component controls. |
|
75 */ |
|
76 void SizeChanged(); |
|
77 |
|
78 |
|
79 private: // Functions from base classes |
|
80 /** |
|
81 * From CAknSettingItemList Handles creating setting items |
|
82 * @param aIdentifier Identifier of the setting item to create |
|
83 */ |
|
84 CAknSettingItem* CreateSettingItemL( TInt aIdentifier ); |
|
85 |
|
86 /** |
|
87 * Returns the current value of a setting for this list. |
|
88 * @since 2.8 |
|
89 * @param aItemId The id of the setting in question |
|
90 * @return the current value. |
|
91 */ |
|
92 TInt ValueOfSetting( TInt aItemId ) const; |
|
93 |
|
94 /** |
|
95 * Returns the array index of a setting for this list. |
|
96 * @since 2.8 |
|
97 * @param aItemId The id of the setting in question |
|
98 * @return the array index. |
|
99 */ |
|
100 TInt IndexOfSetting( TInt aItemId ) const; |
|
101 |
|
102 |
|
103 private: // Data |
|
104 |
|
105 // Store values for the different settings. |
|
106 RPointerArray<TIntSetting> iSettings; |
|
107 TInt iQualityValue; |
|
108 RArray<TInt> iSupportedQualityLevels; |
|
109 TBool iLaunchedFromGS; |
|
110 TBool iSecondaryCameraSettings; |
|
111 |
|
112 // Used to store memory value. Required by the CAknMemorySelectionSettingItemMultiDrive. |
|
113 DriveInfo::TDefaultDrives iMemVal; |
|
114 TDriveNumber iDrive; |
|
115 |
|
116 CCamStaticSettingsModel& iModel; |
|
117 // The default name base. |
|
118 TBuf<KMaxNameBaseLength> iDefaultNameBase; |
|
119 |
|
120 CCamWaitDialog* iWaitDialog; |
|
121 // Index of the setting item which is active |
|
122 TInt iIndex; |
|
123 // Flag to check if the Wait note is active |
|
124 TBool iWaitNoteActive; |
|
125 }; |
|
126 |
|
127 #endif |
|
128 |
|
129 // End of File |