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