|
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: Declaration of the CSecModUIViewBase class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SECMODUIVIEWBASE_H |
|
20 #define SECMODUIVIEWBASE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknview.h> |
|
24 #include <eiklbo.h> |
|
25 |
|
26 // CONSTANTS |
|
27 enum TCurrentMSK |
|
28 { |
|
29 EEmpty, |
|
30 EChange, |
|
31 EUnblock, |
|
32 EClose |
|
33 }; |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CSecModUIContainerBase; |
|
37 class CSecModUIModel; |
|
38 class CAknNavigationDecorator; |
|
39 |
|
40 // CLASS DECLARATION |
|
41 |
|
42 /** |
|
43 * CSecModUIViewBase view class. |
|
44 * |
|
45 */ |
|
46 class CSecModUIViewBase : public CAknView, public MEikListBoxObserver |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Constructor |
|
52 */ |
|
53 CSecModUIViewBase(CSecModUIModel& aModel); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CSecModUIViewBase(); |
|
59 |
|
60 public: // Functions from CAknView |
|
61 |
|
62 /** |
|
63 * From MEikMenuObserver delegate commands from the menu |
|
64 * @param aCommand a command emitted by the menu |
|
65 * @return void |
|
66 */ |
|
67 virtual void HandleCommandL(TInt aCommand); |
|
68 |
|
69 /** |
|
70 * From CAknView reaction if size change |
|
71 * @return void |
|
72 */ |
|
73 virtual void HandleClientRectChange(); |
|
74 |
|
75 public: // Function from MEikListBoxObserver |
|
76 |
|
77 void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType); |
|
78 |
|
79 protected: |
|
80 |
|
81 virtual void CreateContainerL()=0; |
|
82 |
|
83 virtual void SetTitlePaneL(); |
|
84 |
|
85 virtual void AddNaviPaneLabelL(); |
|
86 |
|
87 virtual void DoAddNaviPaneL(TInt aResource = 0); |
|
88 |
|
89 /** |
|
90 * From CAknView activate the view |
|
91 * @param aPrevViewId |
|
92 * @param aCustomMessageId |
|
93 * @param aCustomMessage |
|
94 * @return void |
|
95 */ |
|
96 virtual void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, |
|
97 const TDesC8& aCustomMessage); |
|
98 |
|
99 /** |
|
100 * From CAknView deactivate the view (free resources) |
|
101 * @return void |
|
102 */ |
|
103 virtual void DoDeactivate(); |
|
104 |
|
105 protected: |
|
106 CSecModUIContainerBase* iContainer; |
|
107 CSecModUIModel& iModel; |
|
108 TVwsViewId iPrevViewId; |
|
109 |
|
110 private: // Data |
|
111 /** |
|
112 * For Navipane |
|
113 */ |
|
114 CAknNavigationDecorator* iNaviDecorator; |
|
115 |
|
116 /** |
|
117 * To store the position of the focus in the Authority view |
|
118 */ |
|
119 TInt iCurrentPosition; |
|
120 |
|
121 /** |
|
122 * Stores top item in the listbox |
|
123 */ |
|
124 TInt iTopItem; |
|
125 }; |
|
126 |
|
127 #endif // SECMODUIVIEWBASE_H |
|
128 |
|
129 // End of File |