|
1 /* |
|
2 * Copyright (c) 2005-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: Declaration of the CSecModUIPlugin class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSECMODUIPLUGIN_H |
|
21 #define CSECMODUIPLUGIN_H |
|
22 |
|
23 // Includes |
|
24 #include <aknview.h> |
|
25 #include <eikclb.h> |
|
26 #include <ConeResLoader.h> |
|
27 |
|
28 #include <gsplugininterface.h> |
|
29 |
|
30 // Forward declarations |
|
31 class CSecModUIModel; |
|
32 class CSecModUIPluginContainer; |
|
33 class CAknViewAppUi; |
|
34 |
|
35 // Constants |
|
36 |
|
37 /** |
|
38 * Used for both the view UID and the ECOM plugin implementation UID. |
|
39 */ |
|
40 const TUid KSecModUIPluginUid = { 0x101F8668 }; |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * @since Series60_3.1 |
|
46 */ |
|
47 class CSecModUIPlugin : public CGSPluginInterface |
|
48 { |
|
49 |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Symbian OS two-phased constructor |
|
54 * @return |
|
55 */ |
|
56 static CSecModUIPlugin* NewL( TAny* aInitParams ); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 ~CSecModUIPlugin(); |
|
62 |
|
63 public: // From CAknView |
|
64 |
|
65 /** |
|
66 * See base class. |
|
67 * |
|
68 * This function is used also for identifying the plugin so be sure to |
|
69 * return correct UID. |
|
70 */ |
|
71 TUid Id() const; |
|
72 |
|
73 /** |
|
74 * See base class. |
|
75 */ |
|
76 void HandleClientRectChange(); |
|
77 |
|
78 /** |
|
79 * See base class. |
|
80 */ |
|
81 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
82 TUid aCustomMessageId, |
|
83 const TDesC8& aCustomMessage ); |
|
84 |
|
85 /** |
|
86 * See base class. |
|
87 */ |
|
88 void DoDeactivate(); |
|
89 |
|
90 /** |
|
91 * See base class. |
|
92 */ |
|
93 void GetCaptionL( TDes& aCaption ) const; |
|
94 |
|
95 /** |
|
96 * See base class. |
|
97 */ |
|
98 TBool Visible() const; |
|
99 |
|
100 private: // New |
|
101 |
|
102 /** |
|
103 * C++ default constructor. |
|
104 */ |
|
105 CSecModUIPlugin(); |
|
106 |
|
107 /** |
|
108 * Symbian OS default constructor. |
|
109 */ |
|
110 void ConstructL(); |
|
111 |
|
112 /** |
|
113 * Leaving part of Visible() member. |
|
114 */ |
|
115 TBool DoIsVisibleL() const; |
|
116 |
|
117 private: // Data |
|
118 |
|
119 // Pointer to application UI |
|
120 CAknViewAppUi* iAppUi; |
|
121 |
|
122 // Resouce loader. |
|
123 RConeResourceLoader iResourceLoader; |
|
124 |
|
125 CSecModUIModel* iSecUiModel; |
|
126 |
|
127 // Pointer to the container |
|
128 CSecModUIPluginContainer* iContainer; |
|
129 |
|
130 //Previous view (Security view) |
|
131 TVwsViewId iPrevViewId; |
|
132 |
|
133 CEikonEnv* iEikEnv; |
|
134 }; |
|
135 |
|
136 #endif // CSECMODUIPLUGIN_H |
|
137 // End of File |