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