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