|
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: Base class for video preference popups |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUIPREFPOPUPBASE_H |
|
20 #define C_VTUIPREFPOPUPBASE_H |
|
21 |
|
22 |
|
23 #include "cvtuipopupbase.h" |
|
24 |
|
25 class MVtEngCameraPreferences; |
|
26 class CVtUiFeatureManager; |
|
27 /* |
|
28 * CVtUiPrefPopupBase |
|
29 * |
|
30 * Base class for video preference popups |
|
31 * |
|
32 * @since S60 v3.2 |
|
33 */ |
|
34 class CVtUiPrefPopupBase : public CVtUiPopupBase |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 */ |
|
42 ~CVtUiPrefPopupBase(); |
|
43 |
|
44 |
|
45 public: // from CVtUiPopupBase |
|
46 |
|
47 /** |
|
48 * @see CVtUiPopupBase::HandleControlEventL |
|
49 */ |
|
50 void HandleControlEventL( |
|
51 CCoeControl* aControl,TCoeEvent aEventType ); |
|
52 |
|
53 /** |
|
54 * @see CVtUiPopupBase::UpdatePopupL |
|
55 */ |
|
56 void UpdatePopupL(); |
|
57 |
|
58 private: // from base class |
|
59 |
|
60 /** |
|
61 * @see CVtUiPopupBase::OfferKeyEventL |
|
62 */ |
|
63 TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, |
|
64 TEventCode aCode ); |
|
65 |
|
66 protected: // new functions |
|
67 |
|
68 // Does the actual viewfinder adjusting |
|
69 void AdjustVideoL( TInt aValue ); |
|
70 |
|
71 // from base class CVtUiPopupBase::DoActivateL() |
|
72 void DoActivateL(); |
|
73 |
|
74 // Gets current adjustvalue |
|
75 virtual TInt CurrentValue() = 0; |
|
76 |
|
77 protected: |
|
78 |
|
79 /** |
|
80 * Constructor |
|
81 */ |
|
82 CVtUiPrefPopupBase( CVtUiFeatureManager& aFeatureManager, |
|
83 TVtUiBlockListBitField aBitField, TComponentId aComponentId, |
|
84 TInt aCmdId ); |
|
85 |
|
86 /** |
|
87 * 2nd constructor |
|
88 */ |
|
89 void BaseConstructL(); |
|
90 |
|
91 protected: |
|
92 |
|
93 // Pointer to camera preferences |
|
94 MVtEngCameraPreferences* iCameraPref; |
|
95 |
|
96 // Reference to feature manager |
|
97 CVtUiFeatureManager& iFeatureManager; |
|
98 |
|
99 // Engine command id |
|
100 TInt iEngineCommandId; |
|
101 |
|
102 // Current value |
|
103 TInt iCurrent; |
|
104 }; |
|
105 |
|
106 #endif // C_VTUIPREFPOPUPBASE_H |