|
1 /** @file |
|
2 * Copyright (c) 2007 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 "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: class for receiving HTTP response using Symbian HTTP client |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CUPNPTRANSFERUPLOADER_H |
|
20 #define C_CUPNPTRANSFERUPLOADER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "upnptransferbase.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CHttpUploader; |
|
27 |
|
28 class CUpnpTransferUploader: public CUpnpTransferBase |
|
29 { |
|
30 public: // Constructors and destructor |
|
31 |
|
32 /** |
|
33 * Two-phased constructor. |
|
34 */ |
|
35 static CUpnpTransferUploader* NewLC( MUpnpTransferObserver* aCd ); |
|
36 static CUpnpTransferUploader* NewL( MUpnpTransferObserver* aCd ); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 virtual ~CUpnpTransferUploader(); |
|
42 |
|
43 public: // New functions |
|
44 |
|
45 /** |
|
46 * Method for uploading the file. Creates and enqueues the file |
|
47 * |
|
48 * @since S60 v3.2 |
|
49 */ |
|
50 void UploadFileL(TInt aKey); |
|
51 |
|
52 /** |
|
53 * Empty implementation |
|
54 * |
|
55 */ |
|
56 void DownloadFileL(const TDesC8& aUri, |
|
57 const TDesC& aTargetPath, |
|
58 TInt aKey); |
|
59 |
|
60 /** |
|
61 * Method for uploading the file. Creates and enqueues the file |
|
62 * |
|
63 */ |
|
64 void UploadFileL( const TDesC8& aUri,const TDesC& aTargetPath, |
|
65 const TDesC8& aContentType, TInt aKey); |
|
66 |
|
67 |
|
68 private: |
|
69 /** |
|
70 * C++ default constructor. |
|
71 */ |
|
72 CUpnpTransferUploader( MUpnpTransferObserver* aCd ); |
|
73 |
|
74 /** |
|
75 * By default Symbian 2nd phase constructor is private. |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 private: // Data |
|
80 }; |
|
81 |
|
82 #endif // C_CUPNPTRANSFERUPLOADER_H |
|
83 |
|
84 // End of File |