|
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 for image/video quality* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GSCAMQUALITYSETTINGITEM_H |
|
21 #define GSCAMQUALITYSETTINGITEM_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknsettingitemlist.h> |
|
25 #include "CamSettingsInternal.hrh" |
|
26 |
|
27 |
|
28 class CCamStaticSettingsModel; |
|
29 |
|
30 /** |
|
31 * Setting item for image/video quality texts |
|
32 * @since 2.8 |
|
33 */ |
|
34 class CGSCamQualitySettingItem : public CAknEnumeratedTextPopupSettingItem |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 /** |
|
38 * C++ constructor |
|
39 * @since 2.8 |
|
40 * @param aMode current mode (video or still image) |
|
41 * @param aIdentifier setting page resource id |
|
42 * @param aValue current name base type |
|
43 */ |
|
44 CGSCamQualitySettingItem( TCamCameraMode aMode, |
|
45 TInt aIdentifier, |
|
46 TInt& aValue, |
|
47 CCamStaticSettingsModel& aModel ); |
|
48 |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 virtual ~CGSCamQualitySettingItem(); |
|
53 |
|
54 protected: // Functions from base classes |
|
55 /** |
|
56 * From CAknEnumeratedTextPopupSettingItem |
|
57 * @since 2.8 |
|
58 * Framework method for constructing the launching setting page. |
|
59 * @return a constructed CAknSettingPage object on the heap |
|
60 */ |
|
61 CAknSettingPage* CreateSettingPageL(); |
|
62 |
|
63 /** |
|
64 * |
|
65 * Virtual method called by framework to complete the construction. |
|
66 * In this class, the two arrays, pointers to which can be obtained by calling |
|
67 * EnumeratedTextArray() and PoppedUpTextArray() are created. |
|
68 * |
|
69 */ |
|
70 void CompleteConstructionL(); |
|
71 |
|
72 private: // Data |
|
73 // The current mode of capture. |
|
74 TCamCameraMode iMode; |
|
75 // Array of supported quality levels |
|
76 RArray<TInt> iSupportedQualitiesArray; |
|
77 |
|
78 CCamStaticSettingsModel& iModel; |
|
79 }; |
|
80 |
|
81 #endif // GSCAMQUALITYSETTINGITEM_H |
|
82 |
|
83 // End of File |