|
1 /* |
|
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: File tranfer session |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef M_UPNPFILEDOWNLOADSESSION_H |
|
24 #define M_UPNPFILEDOWNLOADSESSION_H |
|
25 |
|
26 // EXTERNAL INCLUDES |
|
27 #include <e32std.h> |
|
28 #include <f32file.h> |
|
29 |
|
30 // INTERNAL INCLUDES |
|
31 #include "upnpfiletransfersession.h" |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class CUpnpElement; |
|
35 class CUpnpItem; |
|
36 |
|
37 // CLASS DECLARATION |
|
38 /** |
|
39 * AV Controller download session interface. |
|
40 * |
|
41 * @lib upnpavcontrollerclient.lib |
|
42 * @since S60 v3.2 |
|
43 */ |
|
44 class MUPnPFileDownloadSession : public MUPnPFileTransferSession |
|
45 { |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 * Start downloading an item. Original resource will be downloaded. |
|
51 * |
|
52 * @param aItem UPnP item to download |
|
53 * @param aKey identifies the download operation |
|
54 */ |
|
55 virtual void StartDownloadL( const CUpnpItem& aItem, TInt aKey ) = 0; |
|
56 |
|
57 /** |
|
58 * Start downloadin and item. Resource is selected by providing the |
|
59 * desired res-element and. The resource is downloaded to the provided |
|
60 * file. |
|
61 * |
|
62 * @param aResElement points to a resource in the item to download |
|
63 * @param aItem UPnP item to download |
|
64 * @param aFile file handle (download target) |
|
65 * @param aKey identifies the download operation |
|
66 */ |
|
67 virtual void StartDownloadL( const CUpnpElement& aResElement, |
|
68 const CUpnpItem& aItem, RFile& aFile, TInt aKey ) = 0; |
|
69 |
|
70 protected: |
|
71 |
|
72 /** |
|
73 * Protected destructor |
|
74 */ |
|
75 virtual ~MUPnPFileDownloadSession() {}; |
|
76 |
|
77 }; |
|
78 |
|
79 |
|
80 #endif // M_UPNPFILEDOWNLOADSESSION_H |
|
81 |
|
82 // End of file |
|
83 |