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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUISTATUSPANEHANDLER_H |
|
21 #define MUSUISTATUSPANEHANDLER_H |
|
22 |
|
23 |
|
24 #include "musuinavimediadecorator.h" |
|
25 |
|
26 #include <akntabgrp.h> // Tab group |
|
27 #include <akntitle.h> // Title pane |
|
28 #include <akncontext.h> // Context pane |
|
29 #include <AknIndicatorContainer.h> // Indicator container |
|
30 #include <aknEditStateIndicator.h> |
|
31 #include <aknnavide.h> // CAknNavigationDecorator |
|
32 |
|
33 |
|
34 class CAknNavigationControlContainer; |
|
35 class CAknVolumePopup; |
|
36 |
|
37 /** |
|
38 * Handles status, title and contextpane operations. |
|
39 * |
|
40 * @lib musui.exe |
|
41 */ |
|
42 class CMusUiStatusPaneHandler : public CBase |
|
43 { |
|
44 |
|
45 public: // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 */ |
|
50 static CMusUiStatusPaneHandler* NewL( CEikonEnv& aEikonEnv ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CMusUiStatusPaneHandler(); |
|
56 |
|
57 private: |
|
58 |
|
59 /** |
|
60 * C++ default constructor. |
|
61 */ |
|
62 CMusUiStatusPaneHandler( CEikonEnv& aEikonEnv ); |
|
63 |
|
64 /** |
|
65 * Symbian 2nd-phase constructor. |
|
66 */ |
|
67 void ConstructL(); |
|
68 |
|
69 |
|
70 public: // New functions |
|
71 |
|
72 /** |
|
73 * Sets statuspane icons. |
|
74 * |
|
75 * @param aIconId ID of icon from .mbg file. |
|
76 * @param aIconMaskId ID of icon mask from .mbg file. |
|
77 */ |
|
78 void SetStatusPaneIconsL( TInt32 aIconId, TInt32 aIconMaskId ); |
|
79 |
|
80 /** |
|
81 * Sets statuspane icons. |
|
82 * |
|
83 */ |
|
84 void SetStatusPaneIconsL( CFbsBitmap* aBitmap ); |
|
85 |
|
86 /** |
|
87 * Hides navi-pane decorators and clears text |
|
88 */ |
|
89 void ClearNaviPaneL(); |
|
90 |
|
91 /** |
|
92 * Sets title-pane text |
|
93 * |
|
94 * @param aTitle Title text |
|
95 */ |
|
96 void SetTitleL( const TDesC& aTitle ); |
|
97 |
|
98 /** |
|
99 * Sets title-pane text |
|
100 * |
|
101 */ |
|
102 void SetTitleFromResourceL( TInt aResourceId ); |
|
103 |
|
104 /** |
|
105 * Get the current volume setting. |
|
106 * |
|
107 * @return Current volume. |
|
108 */ |
|
109 TInt GetVolumeControlValue() const; |
|
110 |
|
111 /** |
|
112 * Activates volume control. |
|
113 * |
|
114 * @return Volume controller. |
|
115 */ |
|
116 void ActivateVolumeControlL( TInt aVolume, TBool aOnlyIfVisible ); |
|
117 |
|
118 /** |
|
119 * Activate media navi pane. |
|
120 */ |
|
121 void ActivateNaviPaneMediaL(); |
|
122 |
|
123 /** |
|
124 * |
|
125 */ |
|
126 void ShowNaviPaneIconL( TMusUiNaviMediaDecorator aIcon ); |
|
127 |
|
128 /** |
|
129 * Set text in media navi pane. |
|
130 * |
|
131 * @param aLabel New label of media navi pane control |
|
132 */ |
|
133 void SetLeftLabelL( const TDesC& aLabel ); |
|
134 |
|
135 /** |
|
136 * Set text in media navi pane. |
|
137 * |
|
138 * @param aLabel New label of media navi pane control |
|
139 */ |
|
140 void SetRightLabelL( const TDesC& aLabel ); |
|
141 |
|
142 /** |
|
143 * Create media navi pane. |
|
144 */ |
|
145 CAknNavigationDecorator* CreateMediaNaviL(); |
|
146 |
|
147 /** |
|
148 * Get Volume popup control pointer |
|
149 * @return pointer of VolumePopup control |
|
150 */ |
|
151 CAknVolumePopup* GetVolumePopup() const; |
|
152 |
|
153 |
|
154 private: // data |
|
155 |
|
156 CEikonEnv& iEikonEnvironment; |
|
157 |
|
158 // UI controls |
|
159 CAknNavigationControlContainer* iNaviPane; |
|
160 CAknTitlePane* iTitlePane; |
|
161 CAknContextPane* iContextPane; |
|
162 CAknNavigationDecorator* iNaviPaneText; |
|
163 CAknVolumePopup* iVolumePopup; |
|
164 // Navi pane media control |
|
165 CAknNavigationDecorator* iMediaControl; |
|
166 }; |
|
167 |
|
168 #endif // MUSUISTATUSPANEHANDLER_H |
|
169 |
|
170 // end of file |
|