63
|
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 |
/**
|
|
101 |
* Early detection of view activation.
|
|
102 |
* Overrides the baseclass implementation calls CAknView::ViewActivatedL().
|
|
103 |
*/
|
|
104 |
void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
|
|
105 |
|
|
106 |
|
|
107 |
public: // from MEikCommandObserver
|
|
108 |
/**
|
|
109 |
* HandleCommandL. Generic view commands.
|
|
110 |
*
|
|
111 |
* @param aCommandId This is an id for command.
|
|
112 |
*/
|
|
113 |
void HandleCommandL(TInt aCommand);
|
|
114 |
|
|
115 |
|
|
116 |
private: // data
|
|
117 |
|
|
118 |
/// Own: This view's control container
|
|
119 |
CLogsAppListControlContainer* iContainer;
|
|
120 |
|
|
121 |
/// Own: highlighted position
|
|
122 |
TInt iSelectedLine;
|
|
123 |
};
|
|
124 |
|
|
125 |
|
|
126 |
#endif // __Logs_App_CLogsAppListView_H__
|
|
127 |
|
|
128 |
|
|
129 |
// End of File
|