|
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 * Logs application "App List" view class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_App_CLogsAppListView_H__ |
|
21 #define __Logs_App_CLogsAppListView_H__ |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include "CLogsBaseView.h" // App view super class |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class CLogsAppListControlContainer; |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * Logs application "App List" view class implementation. |
|
43 */ |
|
44 class CLogsAppListView : public CLogsBaseView |
|
45 { |
|
46 public: // interface |
|
47 /** |
|
48 * Standard creation function. Creates and returns a new object of this |
|
49 * class. |
|
50 * |
|
51 * @return The new view object. |
|
52 */ |
|
53 static CLogsAppListView* NewL(); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 ~CLogsAppListView(); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * Default constructor |
|
64 */ |
|
65 CLogsAppListView(); |
|
66 |
|
67 /** |
|
68 * Constructor, second phase. |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 private: // from CAknView |
|
73 /** |
|
74 * Returns the ID of the view. |
|
75 * @return view id |
|
76 */ |
|
77 TUid Id() const; |
|
78 |
|
79 /** |
|
80 * HandleClientRectChange. Handles the view rectangle changes. |
|
81 */ |
|
82 void HandleClientRectChange(); |
|
83 |
|
84 /** |
|
85 * Called by the framework when this view is activated. |
|
86 * |
|
87 * @param aPrevViewId This is ID for previous view. |
|
88 * @param aCustomMessageId ID of the custom message. Not used. |
|
89 * @param aCustomMessage custom message. Not used. |
|
90 */ |
|
91 void DoActivateL(const TVwsViewId& aPrevViewId, |
|
92 TUid aCustomMessageId, |
|
93 const TDesC8& aCustomMessage); |
|
94 |
|
95 /** |
|
96 * Called by the framework when this view is deactivated. |
|
97 */ |
|
98 void DoDeactivate(); |
|
99 |
|
100 public: // from MEikCommandObserver |
|
101 /** |
|
102 * HandleCommandL. Generic view commands. |
|
103 * |
|
104 * @param aCommandId This is an id for command. |
|
105 */ |
|
106 void HandleCommandL(TInt aCommand); |
|
107 |
|
108 |
|
109 private: // data |
|
110 |
|
111 /// Own: This view's control container |
|
112 CLogsAppListControlContainer* iContainer; |
|
113 |
|
114 /// Own: highlighted position |
|
115 TInt iSelectedLine; |
|
116 }; |
|
117 |
|
118 |
|
119 #endif // __Logs_App_CLogsAppListView_H__ |
|
120 |
|
121 |
|
122 // End of File |