equal
deleted
inserted
replaced
|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CHTTPCONTENTWRITER_H__ |
|
17 #define __CHTTPCONTENTWRITER_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <f32file.h> |
|
21 class MHttpDataReceiver; |
|
22 |
|
23 class CHttpFileWriter : public CActive |
|
24 { |
|
25 public: |
|
26 static CHttpFileWriter* New(RFile aFile, MHttpDataReceiver& aReceiver); |
|
27 ~CHttpFileWriter(); |
|
28 |
|
29 void Write(const TDesC8& aData); |
|
30 |
|
31 private: |
|
32 // From CActive |
|
33 |
|
34 void RunL(); |
|
35 void DoCancel(); |
|
36 TInt RunError(TInt aError); |
|
37 |
|
38 CHttpFileWriter(RFile aFile, MHttpDataReceiver& aReceiver); |
|
39 |
|
40 private: |
|
41 RFile iFile; |
|
42 MHttpDataReceiver& iDataReceiver; |
|
43 }; |
|
44 |
|
45 |
|
46 |
|
47 #endif // __CHTTPCONTENTREADER_H__ |