|
1 /* |
|
2 * Copyright (c) 2003 - 2006 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 CVpnManagementUiServerView class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __VPNMANAGEMENTUISERVERVIEW_H__ |
|
21 #define __VPNMANAGEMENTUISERVERVIEW_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <aknview.h> |
|
25 #include "vpnmanagementuiviewid.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CVpnManagementUiServerContainer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CVpnManagementUiServerView view class. |
|
36 * |
|
37 * @lib vpnmanagementui.lib |
|
38 */ |
|
39 class CVpnManagementUiServerView : public CAknView |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CVpnManagementUiServerView(); |
|
47 |
|
48 /** |
|
49 * NewL |
|
50 */ |
|
51 static class CVpnManagementUiServerView* NewL(const TRect& aRect, CVpnUiLoader& aLoader); |
|
52 |
|
53 /** |
|
54 * NewLC |
|
55 */ |
|
56 static class CVpnManagementUiServerView* NewLC(const TRect& aRect, CVpnUiLoader& aLoader); |
|
57 |
|
58 /** |
|
59 * Returns server view id |
|
60 */ |
|
61 TUid Id() const; |
|
62 |
|
63 /** |
|
64 * Handles ClientRectChange |
|
65 */ |
|
66 void HandleClientRectChange(); |
|
67 |
|
68 /** |
|
69 * Returns iServerContainer |
|
70 */ |
|
71 CCoeControl* Container(); |
|
72 |
|
73 /** |
|
74 * Handles Softkey and Options list commands |
|
75 */ |
|
76 void HandleCommandL(TInt aCommand); |
|
77 |
|
78 /** |
|
79 * Sets appropriate MSK for view |
|
80 */ |
|
81 void SetMiddleSoftKeyL(TBool aDrawNow); |
|
82 |
|
83 |
|
84 public: // data |
|
85 |
|
86 /** |
|
87 * To get hold of VpnUiLoader |
|
88 */ |
|
89 CVpnUiLoader& iLoader; |
|
90 |
|
91 |
|
92 |
|
93 private: // functions |
|
94 |
|
95 /** |
|
96 * Constructor. |
|
97 */ |
|
98 CVpnManagementUiServerView(CVpnUiLoader& aLoader); |
|
99 |
|
100 /** |
|
101 * Symbian OS default constructor. |
|
102 */ |
|
103 void ConstructL(); |
|
104 |
|
105 /** |
|
106 * From AknView, |
|
107 * Updates the view when opening it |
|
108 */ |
|
109 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
110 const TDesC8& aCustomMessage); |
|
111 |
|
112 /** |
|
113 * From AknView, |
|
114 * Saves focus position when closing view |
|
115 */ |
|
116 void DoDeactivate(); |
|
117 |
|
118 /** |
|
119 * Updates Options list with correct items depending on |
|
120 * whether the listbox is empty or if it has any marked items |
|
121 */ |
|
122 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
123 |
|
124 /** |
|
125 * Sets MSK |
|
126 */ |
|
127 void SetMiddleSoftKeyLabelL(TInt aResourceId, TInt aCommandId); |
|
128 |
|
129 |
|
130 private: // Data |
|
131 |
|
132 /** |
|
133 * To get access to policy server list in Policy server view |
|
134 */ |
|
135 CVpnManagementUiServerContainer* iServerContainer; |
|
136 |
|
137 /** |
|
138 * To store the position of the focus in the Policy server view |
|
139 */ |
|
140 TInt iCurrentPosition; |
|
141 |
|
142 /** |
|
143 * Stores top item in the listbox |
|
144 */ |
|
145 TInt iTopItem; |
|
146 |
|
147 }; |
|
148 |
|
149 |
|
150 #endif // __VPNMANAGEMENTUISERVERVIEW_H__ |