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: Base class definitions for different AppMngr2 list views |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_APPMNGR2LISTVIEW_H |
|
20 #define C_APPMNGR2LISTVIEW_H |
|
21 |
|
22 #include <aknview.h> // CAknView |
|
23 |
|
24 class CAppMngr2ListContainer; |
|
25 class CAppMngr2Model; |
|
26 class CAppMngr2InfoBase; |
|
27 class CAknTitlePane; |
|
28 class CAknWaitDialog; |
|
29 class CAknInfoPopupNoteController; |
|
30 |
|
31 |
|
32 class CAppMngr2ListView : public CAknView |
|
33 { |
|
34 public: // constructor and destructor |
|
35 void ConstructL( TInt aResourceId ); |
|
36 ~CAppMngr2ListView(); |
|
37 |
|
38 public: // new functions |
|
39 void RefreshL( TInt aMoreRefreshesExpected ); |
|
40 void UpdateMiddleSoftkeyCommandL(); |
|
41 void CurrentItemSelectedByUser( TBool aMaintainFocus ); |
|
42 |
|
43 public: // from CAknView |
|
44 void HandleViewRectChange(); |
|
45 void HandleCommandL( TInt aCommand ); |
|
46 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
47 |
|
48 protected: // from CAknView |
|
49 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
50 TUid aCustomMessageId, |
|
51 const TDesC8& aCustomMessage ); |
|
52 void DoDeactivate(); |
|
53 |
|
54 protected: // new functions |
|
55 virtual CAppMngr2ListContainer* CreateContainerL() = 0; |
|
56 virtual void SetDefaultMiddleSoftkeyCommandL() = 0; |
|
57 virtual void SetTitleL( CAknTitlePane& aTitlePane ) = 0; |
|
58 |
|
59 protected: // new functions |
|
60 CAppMngr2Model& Model() const; |
|
61 void AddDynamicMenuItemsL( CAppMngr2InfoBase& aCurrentItem, |
|
62 CEikMenuPane* aMenuPane ); |
|
63 void SetMiddleSoftkeyCommandL( TInt aResourceId, TInt aCommandId ); |
|
64 |
|
65 protected: // constructor |
|
66 CAppMngr2ListView(); |
|
67 |
|
68 protected: // data |
|
69 CAppMngr2ListContainer* iContainer; |
|
70 |
|
71 private: // data |
|
72 TInt iMiddleSoftkeyCommandId; |
|
73 CAknInfoPopupNoteController* iInfoPopup; |
|
74 TBool iMaintainFocus; |
|
75 }; |
|
76 |
|
77 #endif // C_APPMNGR2LISTVIEW_H |
|
78 |
|