1 /* |
|
2 * Copyright (c) 2005-2007 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: XDM GS plugin, UI(CAknView) interface header |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef GS_XDMPLUGIN_H |
|
22 #define GS_XDMPLUGIN_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <aknview.h> |
|
26 #include <eikclb.h> |
|
27 #include <ConeResLoader.h> |
|
28 |
|
29 #include "XDMPlugin.hrh" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CXDMPluginContainer; |
|
33 class CXDMPluginSLContainer; |
|
34 class CAknViewAppUi; |
|
35 class CSettingsData; |
|
36 |
|
37 /** |
|
38 * This UID is used for both the view UID and the ECOM plugin implementation |
|
39 * UID. |
|
40 */ |
|
41 //const TUid KGSXDMPluginUid = { 0x10207429 }; |
|
42 |
|
43 // CLASS DECLARATION |
|
44 |
|
45 /** |
|
46 * CXDMPlugin view class (CAknView). |
|
47 * |
|
48 * This is XDM GS plugin. |
|
49 */ |
|
50 class CXDMPlugin |
|
51 { |
|
52 |
|
53 public: // Constructors and destructor |
|
54 |
|
55 /** |
|
56 * Symbian OS two-phased constructor |
|
57 * @return |
|
58 */ |
|
59 static CXDMPlugin* NewL( TAny* aInitParams ); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 ~CXDMPlugin(); |
|
65 |
|
66 /** |
|
67 * Load the SettingsView with specified XDM set and type of loading |
|
68 * The types are EEditExisting, ENewDefault, ENewFromExisting |
|
69 */ |
|
70 void LoadSettingsViewL(TXDMSettingsViewType aType, TDesC& aXDMSetName); |
|
71 |
|
72 /** |
|
73 * Loads the Main View where list of XDM sets are visible |
|
74 */ |
|
75 void LoadMainViewL(); |
|
76 |
|
77 /** |
|
78 * Manual resource change method |
|
79 * @param aType ype of resource |
|
80 */ |
|
81 void HandleResourceChangeManual(TInt aType); |
|
82 |
|
83 /** |
|
84 * Hides MSK if not needed |
|
85 */ |
|
86 void UpdateMSK(); |
|
87 |
|
88 public: // From CAknView |
|
89 |
|
90 /** |
|
91 * This function is used for identifying the plugin |
|
92 */ |
|
93 TUid Id() const; |
|
94 |
|
95 /** |
|
96 * See CAknView |
|
97 */ |
|
98 //void HandleClientRectChange(); |
|
99 void HandleViewRectChange(); |
|
100 |
|
101 /** |
|
102 * See CAknView |
|
103 */ |
|
104 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
105 TUid aCustomMessageId, |
|
106 const TDesC8& aCustomMessage ); |
|
107 /** |
|
108 * See CAknView |
|
109 */ |
|
110 void DoDeactivate(); |
|
111 |
|
112 /** |
|
113 * See CAknView |
|
114 */ |
|
115 void HandleCommandL( TInt aCommand ); |
|
116 |
|
117 |
|
118 |
|
119 protected: |
|
120 |
|
121 /** |
|
122 * C++ default constructor. |
|
123 */ |
|
124 CXDMPlugin( ); |
|
125 |
|
126 /** |
|
127 * Symbian OS default constructor. |
|
128 */ |
|
129 void ConstructL(); |
|
130 |
|
131 private: |
|
132 |
|
133 /** |
|
134 * See base classes |
|
135 */ |
|
136 void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane); |
|
137 |
|
138 protected: //Data |
|
139 |
|
140 // Reference to application UI - not owned. |
|
141 CAknViewAppUi* iAppUi; |
|
142 |
|
143 // RConeResourceLoader |
|
144 RConeResourceLoader iResources; |
|
145 |
|
146 // Previous View ID |
|
147 TVwsViewId iPrevViewId; // Previous view. |
|
148 |
|
149 private: |
|
150 |
|
151 // Pointer to the main list container - owned |
|
152 CXDMPluginContainer* iMainListContainer; |
|
153 |
|
154 // Pointer to the setting list container - owned. |
|
155 CXDMPluginSLContainer* iSettingListContainer; |
|
156 |
|
157 // Pointer to the current container - not owned. |
|
158 CCoeControl* iCurrentContainer; |
|
159 }; |
|
160 |
|
161 #endif // GS_XDMPLUGIN_H |
|