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: Main view of the application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __DEVENCUI_MAINVIEW_H__ |
|
19 #define __DEVENCUI_MAINVIEW_H__ |
|
20 |
|
21 //INCLUDES |
|
22 |
|
23 //System includes |
|
24 #include <aknview.h> // CAknView |
|
25 #include <centralrepository.h> |
|
26 |
|
27 //User Includes |
|
28 #include "DevEncUiContainerEventCallback.h" |
|
29 #include "DevEncUiDocument.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CDevEncUiEncryptionOperator; |
|
33 class CDevEncUiMainViewContainer; |
|
34 class CDevEncUiMemoryEntity; |
|
35 |
|
36 class CDevEncUiMainView: public CAknView, |
|
37 public MContainerEventCallback |
|
38 { |
|
39 public: |
|
40 // constructors and destructor |
|
41 static CDevEncUiMainView* NewL( RArray<CDevEncUiMemoryEntity*>& aMemEntities, |
|
42 CRepository*& aSettings, |
|
43 TInt& aMmcStatus ); |
|
44 static CDevEncUiMainView* NewLC( RArray<CDevEncUiMemoryEntity*>& aMemEntities, |
|
45 CRepository*& aSettings, |
|
46 TInt& aMmcStatus ); |
|
47 ~CDevEncUiMainView(); |
|
48 CDevEncUiAppUi& GetAppUi(); |
|
49 |
|
50 // from MContainerEventCallback |
|
51 void EncryptionStatusChangeReq( TDevEncUiMemoryType aType ); |
|
52 |
|
53 protected: |
|
54 void DynInitMenuPaneL( TInt aResourceId, |
|
55 CEikMenuPane* aMenuPane ); |
|
56 |
|
57 /** |
|
58 * HandleStatusPaneSizeChange. |
|
59 * Called by the framework when the application status pane |
|
60 * size is changed. |
|
61 */ |
|
62 void HandleStatusPaneSizeChange(); |
|
63 |
|
64 private: |
|
65 // from CAknView |
|
66 TUid Id() const; |
|
67 void HandleCommandL( TInt aCommand ); |
|
68 CDevEncUiMainView( RArray<CDevEncUiMemoryEntity*>& aMemEntities, |
|
69 CRepository*& aSettings, |
|
70 TInt& aMmcStatus ); |
|
71 |
|
72 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
73 TUid aCustomMessageId, |
|
74 const TDesC8& aCustomMessage ); |
|
75 |
|
76 void DoDeactivate(); |
|
77 |
|
78 // constructors |
|
79 void ConstructL(); |
|
80 |
|
81 void HandleMemoryCardEncryptRequestL( CDevEncUiMemoryEntity* aMem ); |
|
82 |
|
83 void DoEncryptionStatusChangeReqL( TDevEncUiMemoryType aType ); |
|
84 |
|
85 TBool DmControlsMemory( TDevEncUiMemoryType aType, |
|
86 TInt aDmControlSetting ); |
|
87 |
|
88 void ErrorNoteL( TInt aResourceId ); |
|
89 |
|
90 // data |
|
91 /** ID of this view */ |
|
92 TUid iId; |
|
93 |
|
94 /** Owned */ |
|
95 CDevEncUiMainViewContainer* iContainer; |
|
96 |
|
97 /** Not owned */ |
|
98 RArray<CDevEncUiMemoryEntity*>& iMemEntities; |
|
99 |
|
100 /** Owned */ |
|
101 CDevEncUiEncryptionOperator* iEncOperator; |
|
102 |
|
103 /** Not owned */ |
|
104 CRepository*& iCrSettings; |
|
105 |
|
106 /** Not owned */ |
|
107 TInt& iMmcStatus; |
|
108 }; |
|
109 |
|
110 #endif // __DEVENCUI_MAINVIEW_H__ |
|
111 |
|
112 // End of File |
|