1 /* |
|
2 * Copyright (c) 2002 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: Container for navi pane decorator. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPROFILENAVIPANECONTAINER_H |
|
21 #define CPROFILENAVIPANECONTAINER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CEikStatusPane; |
|
28 class CProfileEngineHandler; |
|
29 class CAknNavigationControlContainer; |
|
30 class CAknNavigationDecorator; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * Container for navi pane decorator. |
|
35 * |
|
36 * @lib Profileapp.app |
|
37 * @since 2.5 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CProfileNaviPaneContainer ) : public CBase |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * @param aStatusPane An instance of status pane. |
|
46 * @param aEngineHandler An instance of Engine Handler. |
|
47 * @return Returns an instance of CProfileNaviPaneContainer |
|
48 */ |
|
49 IMPORT_C static CProfileNaviPaneContainer* NewL( |
|
50 CEikStatusPane& aStatusPane, |
|
51 CProfileEngineHandler& aEngineHandler ); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CProfileNaviPaneContainer(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 /** |
|
61 * Sets navi pane text. |
|
62 * @param aText Navi pane text. |
|
63 */ |
|
64 IMPORT_C void SetNaviPaneTextL( const TDesC& aText ); |
|
65 |
|
66 /** |
|
67 * Sets active profile name as navi pane text. |
|
68 */ |
|
69 IMPORT_C void SetNaviPaneTextL(); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * C++ constructor. |
|
75 * @param aEngineHandler An instance of Engine Handler. |
|
76 */ |
|
77 CProfileNaviPaneContainer( CProfileEngineHandler& aEngineHandler ); |
|
78 |
|
79 /** |
|
80 * By default Symbian 2nd phase constructor is private. |
|
81 * @param aStatusPane An instance of status pane. |
|
82 */ |
|
83 void ConstructL( CEikStatusPane& aStatusPane ); |
|
84 |
|
85 private: // New functions |
|
86 void Release(); |
|
87 |
|
88 private: // Data |
|
89 |
|
90 // Profile Engine Handler. |
|
91 CProfileEngineHandler& iEngineHandler; |
|
92 |
|
93 // Ref: Pointer to navi pane |
|
94 CAknNavigationControlContainer* iNaviPane; |
|
95 |
|
96 // Own: Navigation decorator. |
|
97 CAknNavigationDecorator* iNaviDecorator; |
|
98 |
|
99 }; |
|
100 |
|
101 |
|
102 #endif // CPROFILENAVIPANECONTAINER_H |
|
103 |
|
104 |
|
105 // End of File |
|