20 |
20 |
21 |
21 |
22 |
22 |
23 // INTERNAL INCLUDES |
23 // INTERNAL INCLUDES |
24 // upnp stack api |
24 // upnp stack api |
|
25 #include <upnpstring.h> |
|
26 |
|
27 // dlnasrv / mediaserver api |
25 #include <upnpitem.h> |
28 #include <upnpitem.h> |
26 #include <upnpelement.h> |
29 #include <upnpelement.h> |
27 #include <upnpstring.h> |
30 |
28 |
31 // dlnasrv / avcontroller api |
29 // upnpframework / avcontroller api |
|
30 #include "upnpavdevice.h" |
32 #include "upnpavdevice.h" |
31 #include "upnpfiletransfersessionobserver.h" |
33 #include "upnpfiletransfersessionobserver.h" |
32 |
34 |
33 // upnpframework / avcontroller helper api |
35 // dlnasrv / avcontroller helper api |
34 #include "upnpconstantdefs.h" // for upnp-specific stuff |
36 #include "upnpconstantdefs.h" // for upnp-specific stuff |
35 #include "upnpitemutility.h" // FindAttributeByName |
37 #include "upnpitemutility.h" // FindAttributeByName |
36 #include "upnpfileutility.h" // FitsInMemory |
38 #include "upnpfileutility.h" // FitsInMemory |
37 |
39 #include "upnppathutility.h" // CreateCopyPath |
38 // avcontroller internal |
40 |
|
41 // dlnasrv / avcontroller internal |
39 #include "upnpfiledownloadsessionimpl.h" |
42 #include "upnpfiledownloadsessionimpl.h" |
40 #include "upnpavcontrollerclient.h" |
43 #include "upnpavcontrollerclient.h" |
41 #include "upnpfiletransferitem.h" |
44 #include "upnpfiletransferitem.h" |
42 |
45 |
43 // EXTERNAL INCLUDES |
46 // EXTERNAL INCLUDES |
250 User::Leave( KErrDiskFull ); |
253 User::Leave( KErrDiskFull ); |
251 } |
254 } |
252 |
255 |
253 item->SetUriL( tmpEl.Value() ); |
256 item->SetUriL( tmpEl.Value() ); |
254 |
257 |
|
258 CUPnPPathUtility* pathUtil = CUPnPPathUtility::NewLC(); |
|
259 HBufC* path = pathUtil->CreateCopyPathL( aItem, tmpEl, EFalse ); |
|
260 CleanupStack::PopAndDestroy( pathUtil ); |
|
261 CleanupStack::PushL( path ); |
|
262 item->SetPathL( *path ); |
|
263 CleanupStack::PopAndDestroy( path ); |
|
264 |
255 // Get the protocolinfo-attribute |
265 // Get the protocolinfo-attribute |
256 const CUpnpAttribute* tmpPInfo = UPnPItemUtility::FindAttributeByName( |
266 const CUpnpAttribute* tmpPInfo = UPnPItemUtility::FindAttributeByName( |
257 tmpEl, KAttributeProtocolInfo ); |
267 tmpEl, KAttributeProtocolInfo ); |
258 if( tmpPInfo ) |
268 if( tmpPInfo ) |
259 { |
269 { |