equal
deleted
inserted
replaced
41 * @lib ?library |
41 * @lib ?library |
42 * @since Series 60 v2.8 |
42 * @since Series 60 v2.8 |
43 */ |
43 */ |
44 |
44 |
45 |
45 |
46 NONSHARABLE_CLASS( CBuffStorage ) : public CActive |
46 NONSHARABLE_CLASS( CBuffStorage ) : public CBase |
47 { |
47 { |
48 public: // Constructors and destructor |
48 public: // Constructors and destructor |
49 |
49 |
50 |
50 |
51 /** |
51 /** |
100 protected: // Functions from base classes |
100 protected: // Functions from base classes |
101 |
101 |
102 |
102 |
103 private: // From CActive |
103 private: // From CActive |
104 |
104 |
105 /** |
|
106 * Cancels the timer. |
|
107 * @param |
|
108 * @return |
|
109 */ |
|
110 void DoCancel(); |
|
111 |
|
112 /** |
|
113 * Handles an active object’s request completion event. |
|
114 * @param |
|
115 * @return |
|
116 */ |
|
117 void RunL(); |
|
118 |
|
119 /** |
|
120 * Persist received chunk |
|
121 * @since Series 60 v2.8 |
|
122 * @param aBuf new chunk to be added |
|
123 * @return EFalse if content-length had to be updated. |
|
124 */ |
|
125 void DoBufferingWriteL(const TDesC8& aBuf); |
105 void DoBufferingWriteL(const TDesC8& aBuf); |
126 void DoNonbufferingWriteL(const TDesC8& aBuf); |
106 void DoNonbufferingWriteL(const TDesC8& aBuf); |
127 |
107 |
128 private: |
108 private: |
129 /** |
109 /** |
152 TPtr8 *iWritePtr; |
132 TPtr8 *iWritePtr; |
153 TInt iBufferSize; |
133 TInt iBufferSize; |
154 |
134 |
155 // For stalling condition handling |
135 // For stalling condition handling |
156 TInt iLastWriteErrorCode; |
136 TInt iLastWriteErrorCode; |
157 CActiveSchedulerWait* iWait; |
|
158 |
137 |
159 // References to CHttpStorage data |
138 // References to CHttpStorage data |
160 RFile*& iFile; |
139 RFile*& iFile; |
161 TInt32& iDownloadedSize; // How much data actually written to finally |
140 TInt32& iDownloadedSize; // How much data actually written to finally |
162 TInt32& iBufferedSize; // How much data received over the air (but not necessarily all in file yet) |
141 TInt32& iBufferedSize; // How much data received over the air (but not necessarily all in file yet) |