|
1 /* |
|
2 * Copyright (c) 2005 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: The MUS application's UI class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUILIVESHARINGVIEWCONTAINER_H |
|
21 #define MUSUILIVESHARINGVIEWCONTAINER_H |
|
22 |
|
23 #include "musuisendviewcontainer.h" |
|
24 #include "musuilevelindicatorobserver.h" |
|
25 |
|
26 |
|
27 /** |
|
28 * |
|
29 * |
|
30 * |
|
31 * @lib musui.exe |
|
32 */ |
|
33 class CMusUiLiveSharingViewContainer : public CMusUiSendViewContainer |
|
34 { |
|
35 |
|
36 public: // constructors and destructor |
|
37 |
|
38 /** |
|
39 * Symbian second-phase constructor. |
|
40 * |
|
41 * @param aView Parent view of container. |
|
42 * @param aRect Frame rectangle for container. |
|
43 * @param aInputParams Packaged data. |
|
44 */ |
|
45 void ConstructL( CMusUiGeneralView* aView, |
|
46 const TRect& aRect ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CMusUiLiveSharingViewContainer(); |
|
52 |
|
53 |
|
54 public: // new functions |
|
55 |
|
56 void SetZoomValues( TInt aMinZoom, TInt aMaxZoom ); |
|
57 |
|
58 void SetBrightnessValues( TInt aMinBrightness, TInt aMaxBrightness ); |
|
59 |
|
60 void SetZoomL( TInt aZoomLevel ); |
|
61 |
|
62 void SetBrightnessL( TInt aBrightnessLevel ); |
|
63 |
|
64 void SetZoomVisible( TBool aVisible ); |
|
65 |
|
66 void SetBrightnessVisible( TBool aVisible ); |
|
67 |
|
68 |
|
69 private: // from base class CCoeControl |
|
70 |
|
71 /** |
|
72 * Returns the number of control contained by this class. |
|
73 * |
|
74 * @return Number of controls contained |
|
75 */ |
|
76 TInt CountComponentControls() const; |
|
77 |
|
78 /** |
|
79 * Returns handle to control pointed by aIndex. |
|
80 * |
|
81 * @param aIndex Wanted control's index [0..n] |
|
82 * @return Handle to wanted control |
|
83 */ |
|
84 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
85 |
|
86 /** |
|
87 * Handles key events. |
|
88 * |
|
89 * @param aEvent The event that occured. |
|
90 * @param aType Type of key event: EEventKey, EEventKeyUp, or |
|
91 * EEventKeyDown. |
|
92 * @return The container's response to event: either |
|
93 * EKeyWasNotConsumed or EKeyWasConsumed. |
|
94 */ |
|
95 TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType ); |
|
96 |
|
97 /** |
|
98 * Handles pointer events. |
|
99 * |
|
100 * @param aEvent The event that occured. |
|
101 */ |
|
102 virtual void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
103 |
|
104 protected: // data |
|
105 |
|
106 /** |
|
107 * ETrue if operator specific functionality is needed |
|
108 */ |
|
109 TBool iOperatorSpecificFunctionality; |
|
110 |
|
111 private: // data |
|
112 |
|
113 }; |
|
114 |
|
115 |
|
116 #endif // MUSUILIVESHARINGVIEWCONTAINER_H |
|
117 |
|
118 // end of file |