author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 12:00:00 +0300 | |
branch | RCL_3 |
changeset 93 | b01126ce0bec |
parent 83 | 5456b4e8b3a8 |
child 102 | ba63c83f4716 |
permissions | -rw-r--r-- |
83 | 1 |
/* |
2 |
* Copyright (c) 2009 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 |
* Declares main container view for Widget Manager application. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef WMMAINCONTAINERVIEW_H |
|
20 |
#define WMMAINCONTAINERVIEW_H |
|
21 |
||
22 |
#include <aknview.h> |
|
23 |
||
24 |
class CWmMainContainer; |
|
25 |
class CWmSpBgCleaner; |
|
26 |
class CWmPlugin; |
|
27 |
||
28 |
/** |
|
29 |
* Avkon view class for WmMainContainerView. It is register with the view server |
|
30 |
* by the AppUi. It owns the container control. |
|
31 |
* @class CWmMainContainerView WmMainContainerView.h |
|
32 |
*/ |
|
33 |
NONSHARABLE_CLASS( CWmMainContainerView ) : public CAknView |
|
34 |
{ |
|
35 |
||
36 |
public: // constructors and destructor |
|
37 |
/** |
|
38 |
* Two-phased constructor. |
|
39 |
* |
|
40 |
* @param aWmPlugin wm plugin |
|
41 |
*/ |
|
42 |
static CWmMainContainerView* NewL( CWmPlugin& aWmPlugin ); |
|
43 |
||
44 |
/** |
|
45 |
* Two-phased constructor. |
|
46 |
* |
|
47 |
* @param aWmPlugin wm plugin |
|
48 |
*/ |
|
49 |
static CWmMainContainerView* NewLC( CWmPlugin& aWmPlugin ); |
|
50 |
||
51 |
/** Destructor */ |
|
52 |
virtual ~CWmMainContainerView(); |
|
53 |
||
54 |
||
55 |
public: // from base class CAknView |
|
56 |
/** |
|
57 |
* Returns views id, intended for overriding by sub classes. |
|
58 |
* |
|
59 |
* @see CAknView::Id |
|
60 |
*/ |
|
61 |
TUid Id() const; |
|
62 |
||
63 |
/** |
|
64 |
* Command handling function intended for overriding by sub classes. |
|
65 |
* |
|
66 |
* @see CAknView::HandleCommandL |
|
67 |
*/ |
|
68 |
void HandleCommandL( TInt aCommand ); |
|
69 |
||
70 |
public: |
|
71 |
/** |
|
72 |
* Creates CWmMainContainer |
|
73 |
*/ |
|
74 |
CWmMainContainer* CreateContainerL(); |
|
75 |
||
76 |
/** |
|
77 |
* View deactivation function intended for overriding by sub classes. |
|
78 |
* |
|
79 |
* @see CAknView::DoActivateL |
|
80 |
*/ |
|
81 |
void DoDeactivate(); |
|
93
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
82 |
|
83 | 83 |
private: |
84 |
CWmMainContainerView( CWmPlugin& aWmPlugin ); |
|
85 |
void ConstructL(); |
|
86 |
||
87 |
protected: // from base class CAknView |
|
88 |
/** |
|
89 |
* Avkon view architecture system. |
|
90 |
* |
|
91 |
* @see CAknView::DoActivateL |
|
92 |
*/ |
|
93 |
void DoActivateL( |
|
94 |
const TVwsViewId& aPrevViewId, |
|
95 |
TUid aCustomMessageId, |
|
96 |
const TDesC8& aCustomMessage ); |
|
97 |
||
98 |
protected: // From MEikMenuObserver |
|
99 |
/* |
|
100 |
* Menu observer interface. |
|
101 |
* |
|
102 |
* @see MEikMenuObserver::DynInitMenuPaneL |
|
103 |
*/ |
|
104 |
void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane); |
|
105 |
||
106 |
private: |
|
107 |
||
108 |
/** menu commands */ |
|
109 |
TBool HandleAddMenuItemSelectedL(); |
|
110 |
TBool HandleLaunchMenuItemSelectedL(); |
|
111 |
TBool HandleSearchMenuItemSelectedL(); |
|
112 |
TBool HandleSortAlphaMenuItemSelectedL(); |
|
113 |
TBool HandleUninstallMenuItemSelectedL(); |
|
114 |
TBool HandleHelpMenuItemSelectedL(); |
|
115 |
TBool HandleDetailsMenuItemSelectedL(); |
|
116 |
TBool HandleDeactivateFindPaneL(); |
|
117 |
/** setup title in status pane */ |
|
118 |
void SetTitleL(); |
|
93
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
119 |
/** setup msk icon */ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
120 |
void UpdateMSKIconL(); |
83 | 121 |
|
122 |
private: |
|
123 |
/** |
|
124 |
* the container |
|
125 |
*/ |
|
126 |
CWmMainContainer* iWmMainContainer; |
|
127 |
||
128 |
/** |
|
129 |
* Statuspane background cleaner |
|
130 |
*/ |
|
131 |
CWmSpBgCleaner* iWmSpBgCleaner; |
|
132 |
||
133 |
/** |
|
134 |
* the plugin root (not owned) |
|
135 |
*/ |
|
136 |
CWmPlugin& iWmPlugin; |
|
137 |
}; |
|
138 |
||
139 |
#endif // WMMAINCONTAINERVIEW_H |