|
1 /* |
|
2 * Copyright (c) 2007-2008 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: Declatirion of CAcpProviderSpecificView |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ACPPROVIDERSPECIFICVIEW_H |
|
20 #define ACPPROVIDERSPECIFICVIEW_H |
|
21 |
|
22 #include <eikclb.h> |
|
23 #include <aknview.h> |
|
24 |
|
25 #include "acpproviderlistview.h" |
|
26 |
|
27 class CAcpController; |
|
28 class CAcpProviderSpecificContainer; |
|
29 class CAcpQueryView; |
|
30 class CAcpProviderListView; |
|
31 |
|
32 /** |
|
33 * CAcpProviderSpecificView class |
|
34 * Declarition of CAcpProviderSpecificView. |
|
35 * |
|
36 * @lib accountcreationplugin.lib |
|
37 * @since S60 v3.2 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CAcpProviderSpecificView ) : public CAknView |
|
40 { |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * |
|
46 * @param aController for plugins controller |
|
47 */ |
|
48 static CAcpProviderSpecificView* NewL( CAcpController& aController, |
|
49 CAcpProviderListView& aProviderListView ); |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 * |
|
54 * @param aController for plugins controller |
|
55 */ |
|
56 static CAcpProviderSpecificView* NewLC( CAcpController& aController, |
|
57 CAcpProviderListView& aProviderListView ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CAcpProviderSpecificView(); |
|
63 |
|
64 // from base class CAknView |
|
65 |
|
66 /** |
|
67 * From CAknView. |
|
68 * Returns ID of the view. |
|
69 * |
|
70 * @since S60 v3.2 |
|
71 * @return ID of the view. |
|
72 */ |
|
73 TUid Id() const; |
|
74 |
|
75 private: |
|
76 |
|
77 CAcpProviderSpecificView( CAcpController& aController, |
|
78 CAcpProviderListView& aProviderListView ); |
|
79 void ConstructL(); |
|
80 |
|
81 /** |
|
82 * For changing text to the title pane. |
|
83 * |
|
84 * @since S60 v3.2 |
|
85 * @param aText for title pane text |
|
86 */ |
|
87 void SetTitlePaneTextL( const TDesC& aText ) const; |
|
88 |
|
89 // from base class CEikAppUi |
|
90 |
|
91 /** |
|
92 * From CEikAppUi. |
|
93 * Handles command. |
|
94 * |
|
95 * @since S60 v3.2 |
|
96 * @param aCommand Command index. |
|
97 */ |
|
98 void HandleCommandL( TInt aCommand ); |
|
99 |
|
100 // from base class CAknView |
|
101 |
|
102 /** |
|
103 * From CAknView. |
|
104 * Activates the view. |
|
105 * |
|
106 * @since S60 v3.2 |
|
107 * @param aPrevViewId ID of the previous view. Not used. |
|
108 * @param aCustomMessageId ID of custom message. Not used. |
|
109 * @param aCustomMessage Custom message. Not used. |
|
110 */ |
|
111 void DoActivateL( const TVwsViewId& /*aPrevViewId*/, |
|
112 TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/ ); |
|
113 |
|
114 /** |
|
115 * From CAknView. |
|
116 * Deactivates the view. |
|
117 * |
|
118 * @since S60 v3.2 |
|
119 */ |
|
120 void DoDeactivate(); |
|
121 |
|
122 private: // data |
|
123 |
|
124 /** |
|
125 * Handle to Avkon view application UI. |
|
126 * Not own. |
|
127 */ |
|
128 CAknViewAppUi* iUi; |
|
129 |
|
130 /** |
|
131 * Handle to plugins controller. |
|
132 */ |
|
133 CAcpController& iController; |
|
134 |
|
135 /** |
|
136 * Handle to query view. |
|
137 * Not own. |
|
138 */ |
|
139 CAcpQueryView* iQueryView; |
|
140 |
|
141 /** |
|
142 * Handle to provider list view. |
|
143 */ |
|
144 CAcpProviderListView& iProviderListView; |
|
145 |
|
146 /** |
|
147 * Container class for provider specific view. |
|
148 * Own. |
|
149 */ |
|
150 CAcpProviderSpecificContainer* iContainer; |
|
151 |
|
152 /** |
|
153 * Handle dialog utility to show global wait note. |
|
154 * Own. |
|
155 */ |
|
156 CAcpDialog* iDialog; |
|
157 }; |
|
158 |
|
159 #endif // ACPPROVIDERSPECIFICVIEW_H |
|
160 |
|
161 // End of file. |