|
1 /* |
|
2 * Copyright (c) 2006 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: Used to decorate the control on the navi pane |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 ////////////////////////////////////////////////////////////////////////////// |
|
20 // |
|
21 // -----> CSvgtDecoratorControl(definition) |
|
22 // |
|
23 ////////////////////////////////////////////////////////////////////////////// |
|
24 |
|
25 #ifndef SVGTDECORATORCONTROL_H |
|
26 #define SVGTDECORATORCONTROL_H |
|
27 |
|
28 |
|
29 #include <eikbctrl.h> |
|
30 #include <barsread.h> |
|
31 |
|
32 class CAknStylusPopUpMenu; |
|
33 class CAknNavigationControlContainer; |
|
34 class CEikImage; |
|
35 class CEikLabel; |
|
36 class CGulIcon; |
|
37 |
|
38 enum TSvgtDecoratorControlId |
|
39 { |
|
40 EMuteImageCtrlId, |
|
41 ETextCtrlId, |
|
42 ELastCtrl |
|
43 }; |
|
44 |
|
45 class CSvgtDecoratorControl : public CEikBorderedControl |
|
46 { |
|
47 public: //class methods |
|
48 |
|
49 /** |
|
50 * default constructor. |
|
51 */ |
|
52 CSvgtDecoratorControl(); |
|
53 |
|
54 /** |
|
55 * Twon phase constructor. |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 ~CSvgtDecoratorControl(); |
|
63 |
|
64 /** |
|
65 * Sets the visibility of the mute icon in the navi pane. |
|
66 * @since 3.2 |
|
67 * @param aVolumeMuted whether to show the mute icon in the navi pane (True/False); |
|
68 */ |
|
69 void ShowVolumeMutedIcon( TBool aVolumeMuted ); |
|
70 |
|
71 /** |
|
72 * Sets the progress text in the navi pane. |
|
73 * @since 3.2 |
|
74 * @param aText Progress text; |
|
75 */ |
|
76 void SetTextL( const TDesC& aText); |
|
77 |
|
78 protected: //From CCoeControl |
|
79 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
80 |
|
81 private: //From CCoeControl |
|
82 void Draw(const TRect& aRect) const; |
|
83 |
|
84 TInt CountComponentControls() const; |
|
85 |
|
86 CCoeControl* ComponentControl(TInt aIndex) const; |
|
87 |
|
88 void SizeChanged(); |
|
89 |
|
90 private: |
|
91 CEikImage* iImg; |
|
92 CEikLabel* iLabel; |
|
93 CGulIcon* iMutedIcon; |
|
94 CAknNavigationControlContainer* iNaviPane; |
|
95 }; |
|
96 |
|
97 |
|
98 #endif //SVGTDECORATORCONTROL_H |