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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AVKONVIEWEXAMPLEVIEW_H |
|
20 #define AVKONVIEWEXAMPLEVIEW_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknview.h> |
|
24 #include "cenrepeditormodel.h" |
|
25 |
|
26 // CONSTANTS |
|
27 // UID of view |
|
28 const TUid KViewId1 = {1}; |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CCenrepEditorView1Container; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CCenrepEditorView1 view class. |
|
37 * |
|
38 */ |
|
39 class CCenrepEditorView1 : public CAknView |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * EPOC default constructor. |
|
45 */ |
|
46 void ConstructL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CCenrepEditorView1(); |
|
52 |
|
53 public: // Functions from base classes |
|
54 |
|
55 /** |
|
56 * From CAknView returns Uid of View |
|
57 * @return TUid uid of the view |
|
58 */ |
|
59 TUid Id() const; |
|
60 |
|
61 /** |
|
62 * From MEikMenuObserver delegate commands from the menu |
|
63 * @param aCommand a command emitted by the menu |
|
64 * @return void |
|
65 */ |
|
66 void HandleCommandL(TInt aCommand); |
|
67 |
|
68 /** |
|
69 * From CAknView reaction if size change |
|
70 * @return void |
|
71 */ |
|
72 void HandleClientRectChange(); |
|
73 |
|
74 |
|
75 CCenrepEditorView1Container * CCenrepEditorView1::Container(); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * From CAknView activate the view |
|
81 * @param aPrevViewId |
|
82 * @param aCustomMessageId |
|
83 * @param aCustomMessage |
|
84 * @return void |
|
85 */ |
|
86 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
87 const TDesC8& aCustomMessage); |
|
88 |
|
89 /** |
|
90 * From CAknView deactivate the view (free resources) |
|
91 * @return void |
|
92 */ |
|
93 void DoDeactivate(); |
|
94 |
|
95 private: // Data |
|
96 CCenrepEditorView1Container* iContainer; |
|
97 }; |
|
98 |
|
99 #endif |
|
100 |
|
101 // End of File |
|