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: Decryption view. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __DEVENCUI_DECRVIEW_H__ |
|
19 #define __DEVENCUI_DECRVIEW_H__ |
|
20 |
|
21 //INCLUDES |
|
22 |
|
23 // System includes |
|
24 #include <aknview.h> |
|
25 |
|
26 //User Includes |
|
27 #include "DevEncUiDocument.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CDevEncUiDecrViewContainer; |
|
31 class CDevEncUiMemoryEntity; |
|
32 |
|
33 class CDevEncUiDecrView: public CAknView |
|
34 { |
|
35 public: // constructors and destructor |
|
36 |
|
37 /** |
|
38 * Symbian OS 2 phase constructor. |
|
39 * Constructs the CDevEncUiDecrView using the NewLC method, popping |
|
40 * the constructed object from the CleanupStack before returning it. |
|
41 * |
|
42 * @param aRect The rectangle for this window |
|
43 * @return The newly constructed CDevEncUiDecrView |
|
44 */ |
|
45 static CDevEncUiDecrView* NewL( RArray<CDevEncUiMemoryEntity*>& aMemEntities ); |
|
46 |
|
47 /** |
|
48 * Symbian OS 2 phase constructor. |
|
49 * Constructs the CDevEncUiDecrView using the constructor and ConstructL |
|
50 * method, leaving the constructed object on the CleanupStack before returning it. |
|
51 * |
|
52 * @param aRect The rectangle for this window |
|
53 * @return The newly constructed CDevEncUiDecrView |
|
54 */ |
|
55 static CDevEncUiDecrView* NewLC( RArray<CDevEncUiMemoryEntity*>& aMemEntities ); |
|
56 CDevEncUiDecrViewContainer* Container(); |
|
57 |
|
58 /** |
|
59 * Destructor. Frees up memory. |
|
60 */ |
|
61 ~CDevEncUiDecrView(); |
|
62 CDevEncUiAppUi& GetAppUi(); |
|
63 |
|
64 protected: |
|
65 /** |
|
66 * HandleStatusPaneSizeChange. |
|
67 * Called by the framework when the application status pane |
|
68 * size is changed. |
|
69 */ |
|
70 void HandleStatusPaneSizeChange(); |
|
71 |
|
72 void HandleResourceChangeL( TInt aType ); |
|
73 |
|
74 private: // from CAknView |
|
75 |
|
76 /** |
|
77 * Called by the framework |
|
78 * @return The Uid for this view |
|
79 */ |
|
80 TUid Id() const; |
|
81 |
|
82 /** |
|
83 * From CEikAppUi, takes care of command handling for this view. |
|
84 * @param aCommand command to be handled |
|
85 */ |
|
86 void HandleCommandL( TInt aCommand ); |
|
87 |
|
88 CDevEncUiDecrView( RArray<CDevEncUiMemoryEntity*>& aMemEntities ); |
|
89 |
|
90 /** |
|
91 * Called by the framework when the view is activated. Constructs the |
|
92 * container if necessary, setting this view as its MOP parent, and |
|
93 * adding it to the control stack. |
|
94 */ |
|
95 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
96 TUid aCustomMessageId, |
|
97 const TDesC8& aCustomMessage ); |
|
98 |
|
99 /** |
|
100 * Called by the framework when the view is deactivated. |
|
101 * Removes the container from the control stack and deletes it. |
|
102 */ |
|
103 void DoDeactivate(); |
|
104 |
|
105 private: // constructors |
|
106 |
|
107 /** |
|
108 * Symbian OS 2nd phase constructor. |
|
109 * Uses the superclass constructor to construct the view using the |
|
110 * R_EMCCVIEWSWITCHED_VIEW1 resource. |
|
111 */ |
|
112 void ConstructL(); |
|
113 |
|
114 private: // data |
|
115 /** Owned. What this view will display */ |
|
116 CDevEncUiDecrViewContainer* iContainer; |
|
117 TUid iId; |
|
118 |
|
119 /** Not owned */ |
|
120 RArray<CDevEncUiMemoryEntity*>& iMemEntities; |
|
121 |
|
122 }; |
|
123 |
|
124 #endif // __DEVENCUI_DECRVIEW_H__ |
|
125 |
|
126 // End of File |
|