|
1 /* |
|
2 * Copyright (c) 2002 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 the License "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: Asynchronous initialization of the browser engine |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef VIEWASYNCINIT_H |
|
19 #define VIEWASYNCINIT_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32std.h> |
|
23 #include <e32def.h> |
|
24 #include <e32base.h> |
|
25 #include "MVCView.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CEpoc32View; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Asynchronous initialization of the browser engine |
|
42 * |
|
43 * @lib browserengine.dll |
|
44 * @since 2.6 |
|
45 */ |
|
46 NONSHARABLE_CLASS(CViewAsyncInit) : public CActive |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 */ |
|
53 static CViewAsyncInit* NewL(); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CViewAsyncInit(); |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 public: // Functions from base classes |
|
63 /** |
|
64 * From CActive |
|
65 * @since 2.6 |
|
66 * @param |
|
67 * @return void |
|
68 */ |
|
69 void DoCancel(); |
|
70 |
|
71 /** |
|
72 * From CActive Asynchronous initialization |
|
73 * @since 2.6 |
|
74 * @param |
|
75 * @return void |
|
76 */ |
|
77 void RunL(); |
|
78 |
|
79 /** |
|
80 * From CActive Handle Leave from RunL. |
|
81 * @since 2.6 |
|
82 * @param aError The Leave error code. |
|
83 * @return void |
|
84 */ |
|
85 TInt RunError(TInt aError); |
|
86 |
|
87 private: |
|
88 |
|
89 /** |
|
90 * C++ default constructor. |
|
91 */ |
|
92 CViewAsyncInit(); |
|
93 |
|
94 /** |
|
95 * By default Symbian 2nd phase constructor is private. |
|
96 */ |
|
97 void ConstructL(); |
|
98 |
|
99 // Prohibit copy constructor if not deriving from CBase. |
|
100 // ?classname( const ?classname& ); |
|
101 // Prohibit assigment operator if not deriving from CBase. |
|
102 // ?classname& operator=( const ?classname& ); |
|
103 |
|
104 public: // Data |
|
105 // ?one_line_short_description_of_data |
|
106 //?data_declaration; |
|
107 |
|
108 protected: // Data |
|
109 // ?one_line_short_description_of_data |
|
110 //?data_declaration; |
|
111 |
|
112 private: // Data |
|
113 // A pointer to the view, for the init callback |
|
114 CView* iView; |
|
115 |
|
116 // Reserved pointer for future extension |
|
117 //TAny* iReserved; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // VIEWASYNCINIT_H |
|
122 |
|
123 // End of File |