|
1 /* |
|
2 * Copyright (c) 2006 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: Implementation of the Browser Control's DataLoadInfo |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef BRCTLDATALOADINFO_H |
|
21 #define BRCTLDATALOADINFO_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <BrCtlInterface.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // DATA TYPES |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 NONSHARABLE_CLASS(CDataLoadInfo) : public CBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CDataLoadInfo* NewL(MBrCtlDataLoadSupplier* aBrCtlDataLoadSupplier, |
|
42 TBool aOwnDataLoadSupplier); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CDataLoadInfo(); |
|
48 |
|
49 private: |
|
50 |
|
51 /** |
|
52 * C++ default constructor. |
|
53 */ |
|
54 CDataLoadInfo(); |
|
55 |
|
56 /** |
|
57 * By default Symbian 2nd phase constructor is private. |
|
58 */ |
|
59 void ConstructL( MBrCtlDataLoadSupplier* aBrCtlDataLoadSupplier, TBool aOwnDataLoadSupplier ); |
|
60 |
|
61 public: // Data |
|
62 MBrCtlDataLoadConsumer* iDataConsumer; |
|
63 MBrCtlDataLoadSupplier* iDataSupplier; |
|
64 TBool iOwnsDataSupplier; |
|
65 }; |
|
66 |
|
67 |
|
68 NONSHARABLE_CLASS(CBrCtlDataLoadSupplier) : public CBase, public MBrCtlDataLoadSupplier |
|
69 { |
|
70 public: // Constructors and destructor |
|
71 |
|
72 /** |
|
73 * Two-phased constructor. |
|
74 */ |
|
75 static CBrCtlDataLoadSupplier* NewL(CDataLoadInfo& aDataLoadInfo); |
|
76 |
|
77 /** |
|
78 * Destructor. |
|
79 */ |
|
80 ~CBrCtlDataLoadSupplier(); |
|
81 |
|
82 public: // New functions |
|
83 |
|
84 /** |
|
85 * Continue with passing the data to the loaders |
|
86 * @since 3.1 |
|
87 * @param aData The data to be loaded |
|
88 * @return void |
|
89 */ |
|
90 void DataLoad(const TDesC8& aData); |
|
91 |
|
92 |
|
93 public: // Functions from base classes |
|
94 /** |
|
95 * From MBrCtlDataLoadSupplier Cancel the load operation |
|
96 * @since 3.1 |
|
97 * @return void |
|
98 */ |
|
99 virtual void CancelLoad(); |
|
100 |
|
101 private: |
|
102 |
|
103 /** |
|
104 * C++ default constructor. |
|
105 */ |
|
106 CBrCtlDataLoadSupplier(CDataLoadInfo& aDataLoadInfo); |
|
107 |
|
108 /** |
|
109 * By default Symbian 2nd phase constructor is private. |
|
110 */ |
|
111 void ConstructL(); |
|
112 |
|
113 private: // Data |
|
114 |
|
115 CDataLoadInfo* iDataLoadInfo; |
|
116 }; |
|
117 |
|
118 #endif // BRCTLDATALOADINFO_H |
|
119 |
|
120 // End of File |