|
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: |
|
15 * GPRS counters view |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_App_CGprsCtView_H__ |
|
21 #define __Logs_App_CGprsCtView_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include "CLogsBaseView.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CGprsCtControlContainer; |
|
29 class CAknView; |
|
30 class MLogsAocUtil; |
|
31 |
|
32 |
|
33 // CLASS DECLARATIONS |
|
34 |
|
35 /** |
|
36 * GPRS counters view |
|
37 */ |
|
38 class CGprsCtView : public CLogsBaseView |
|
39 { |
|
40 public: // interface |
|
41 /** |
|
42 * Creates the new view |
|
43 * |
|
44 * @return The new view object |
|
45 */ |
|
46 static CGprsCtView* NewL(); |
|
47 |
|
48 /** |
|
49 * Destructor |
|
50 */ |
|
51 ~CGprsCtView(); |
|
52 |
|
53 private: |
|
54 /** |
|
55 * 2nd phase of construction |
|
56 */ |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * Constructs and makes visible the Ok Option list |
|
61 */ |
|
62 void OkOptionCtMenuL(); |
|
63 |
|
64 |
|
65 public: // MLogsObserver |
|
66 void StateChangedL( MLogsStateHolder* aHolder ); |
|
67 |
|
68 public: // from MLogsKeyProcessor |
|
69 |
|
70 /** |
|
71 * Overrides the baseclass handler |
|
72 * |
|
73 * @param aIndex The index of the item tapped |
|
74 */ |
|
75 void ProcessPointerEventL( TInt aIndex); |
|
76 |
|
77 public: // from MEikCommandObserver |
|
78 void HandleCommandL( TInt aCommand ); |
|
79 |
|
80 |
|
81 private: // from CAknView |
|
82 /** |
|
83 * Return the view's Id. |
|
84 * |
|
85 * @return ECtViewId |
|
86 */ |
|
87 TUid Id() const; |
|
88 |
|
89 /** |
|
90 * Called by the framework when the view rectangle changes |
|
91 */ |
|
92 void HandleClientRectChange(); |
|
93 |
|
94 /** |
|
95 * Called by the framework when the view is activated. |
|
96 * |
|
97 * @param aPrevViewId Previous view's id |
|
98 * @param aCustonMessageId Custom Message id |
|
99 * @param aCustomMessage Custom message |
|
100 */ |
|
101 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
102 TUid aCustomMessageId, |
|
103 const TDesC8& aCustomMessage ); |
|
104 /** |
|
105 * Called by the framework when the view is deactivated. |
|
106 */ |
|
107 void DoDeactivate(); |
|
108 |
|
109 |
|
110 |
|
111 private: // data |
|
112 /// Own: view's control container |
|
113 CGprsCtControlContainer* iContainer; |
|
114 |
|
115 /// Own: for security query |
|
116 MLogsAocUtil* iAocUtil; |
|
117 }; |
|
118 |
|
119 #endif // __Logs_App_CGprsCtView_H__ |
|
120 |
|
121 // End of File |