1 /* |
|
2 * Copyright (c) 2009 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: This file contains CView class declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef VIEW_H |
|
19 #define VIEW_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <aknview.h> |
|
23 |
|
24 //#include "UIStoreIf.h" |
|
25 #include <stifinternal/UIStoreIf.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 //class CMainMenuContainer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CMainMenuView view class. |
|
36 * |
|
37 */ |
|
38 class CView : public CAknView |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Symbian OS default constructor. |
|
44 */ |
|
45 void ConstructL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CView(); |
|
51 |
|
52 public: // Functions from base classes |
|
53 |
|
54 /** |
|
55 * Returns view´s id. |
|
56 * @return View id. |
|
57 */ |
|
58 virtual TUid Id() const; |
|
59 |
|
60 /** |
|
61 * Handles a command. |
|
62 * @param aCommand A command ID. |
|
63 */ |
|
64 virtual void HandleCommandL( TInt aCommand ); |
|
65 |
|
66 /** |
|
67 * Handles client rect changes. |
|
68 */ |
|
69 virtual void HandleClientRectChange(); |
|
70 |
|
71 private: |
|
72 |
|
73 /** |
|
74 * Initializes view when activated. |
|
75 * @param aPrevViewId Id of the previous view (not used). |
|
76 * @param aCustomMessageId Custom message id (not used). |
|
77 * @param aCustomMessage Custom message (not used). |
|
78 */ |
|
79 virtual void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, |
|
80 const TDesC8& aCustomMessage); |
|
81 |
|
82 /** |
|
83 * Deactivates view. |
|
84 */ |
|
85 virtual void DoDeactivate(); |
|
86 |
|
87 protected: // Data |
|
88 |
|
89 /** |
|
90 * Pointer to UI Store. |
|
91 */ |
|
92 CUIStore* iUIStore; |
|
93 |
|
94 |
|
95 private: // Data |
|
96 |
|
97 }; |
|
98 |
|
99 #endif // VIEW_H |
|
100 |
|
101 // End of File |
|