1 /* |
|
2 * Copyright (c) 2008 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: Fixed toolbar UI feature class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUIFIXEDTOOLBAR_H |
|
20 #define C_VTUIFIXEDTOOLBAR_H |
|
21 |
|
22 #include "cvtuitoolbarbase.h" |
|
23 |
|
24 /** |
|
25 * CVtUiFixedToolbar |
|
26 * |
|
27 * Toolbar UI feature definition. |
|
28 * |
|
29 * @since S60 3.2 |
|
30 */ |
|
31 class CVtUiFixedToolbar : public CVtUiToolbarBase |
|
32 { |
|
33 public: // public methods |
|
34 |
|
35 /** |
|
36 * Static constructor. |
|
37 * @param aFeatureManager feature manager. |
|
38 */ |
|
39 static CVtUiFixedToolbar* NewL(CVtUiFeatureManager& aFeatureManager ); |
|
40 |
|
41 /** |
|
42 * C++ destructor. |
|
43 */ |
|
44 ~CVtUiFixedToolbar(); |
|
45 |
|
46 public: // from CVtUiToolbarBase |
|
47 |
|
48 /** |
|
49 * @see CVtUiToolbarBase::DoActivateL |
|
50 */ |
|
51 void DoActivateL(); |
|
52 |
|
53 /** |
|
54 * @see CVtUiToolbarBase::DoDeactivateL |
|
55 */ |
|
56 void DoDeactivateL(); |
|
57 |
|
58 /** |
|
59 * @see CVtUiToolbarBase::CreateToolbarButtonsL |
|
60 */ |
|
61 void CreateToolbarButtonsL(); |
|
62 |
|
63 /** |
|
64 * @see CVtUiToolbarBase::PopulateCmdsIdsL |
|
65 */ |
|
66 void PopulateCmdsIdsL(); |
|
67 |
|
68 /** |
|
69 * @see CVtUiToolbarBase::SetToolbarVisibilityAfterLayoutChange |
|
70 */ |
|
71 void SetToolbarVisibilityAfterLayoutChangeL( TBool aVisible ); |
|
72 |
|
73 private: |
|
74 |
|
75 // Hides/shows toolbar |
|
76 void MakeToolbarVisible( const TBool aVisible ); |
|
77 |
|
78 // Dimms/undimms all toolbar buttons |
|
79 void DimToolbarbuttons( TBool aIsDimmed ); |
|
80 |
|
81 // Sets toolbar visible |
|
82 static TInt DoShowToolbarL( TAny* aAny ); |
|
83 |
|
84 // Sets toolbar buttons dimmed |
|
85 static TInt DoDimToolbarButtons( TAny* aAny ); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * C++ constructor |
|
91 */ |
|
92 CVtUiFixedToolbar( CVtUiFeatureManager& aFeatureManager ); |
|
93 |
|
94 /** |
|
95 * 2nd phase constructor |
|
96 */ |
|
97 void ConstructL(); |
|
98 |
|
99 private: // data |
|
100 |
|
101 // for callback usage |
|
102 CIdle* iIdle; |
|
103 }; |
|
104 |
|
105 #endif // C_VTUIFIXEDTOOLBAR_H |
|