CCodDownload Class Reference
class CCodDownload : public CBase
|
Descriptor-based download. Supported descriptor types:
-
text/x-co-desc (Nokia COD)
-
application/vnd.oma.dd+xml (OMA DD)
-
multipart/related, where the first part is one of the two above.
Public Member Functions
|
|
~CCodDownload
()
|
IMPORT_C
TInt
|
ActiveDownload
()
|
IMPORT_C
TPtrC
|
GetDestFilePath
(
TInt
)
|
IMPORT_C
TPtrC
|
GetPath
()
|
IMPORT_C
HBufC8
*
|
GetPostResponseUrlL
()
|
IMPORT_C
TPtrC
|
Name
()
|
IMPORT_C
CCodDownload
*
|
NewL
(const
TDesC8
&, const
TDesC8
&,
MCodDownloadObserver
&, CEikonEnv *)
|
IMPORT_C
CCodDownload
*
|
NewL
(const
TDesC8
&, const
TDesC8
&,
MCodDownloadObserver
&, CEikonEnv *, const
TDesC8
*, const
TDesC16
*)
|
IMPORT_C
CCodDownload
*
|
NewL
(const
TInt
, const
TUid
, const
TDesC8
&,
MCodDownloadObserver
&, CEikonEnv *)
|
IMPORT_C
HBufC8
*
|
NextUrlL
()
|
IMPORT_C void
|
Pause
()
|
IMPORT_C const
TCodDownloadProgress
&
|
Progress
()
|
IMPORT_C
TBool
|
RemovableMedia
()
|
IMPORT_C void
|
ServiceFlowL
()
|
IMPORT_C void
|
SetCodDlAttached
(const
TBool
)
|
IMPORT_C void
|
SetUserData
(
TAny
*)
|
IMPORT_C void
|
StartL
(const CAiwGenericParamList *)
|
IMPORT_C void
|
Stop
()
|
IMPORT_C
TPtrC8
|
Type
()
|
IMPORT_C
HBufC8
*
|
UpdatedDDUriL
()
|
IMPORT_C
HBufC8
*
|
UpdatedDownloadDataL
()
|
IMPORT_C
HBufC8
*
|
UpdatedTrackDataL
(
TInt
&)
|
IMPORT_C
TAny
*
|
UserData
()
|
Constructor & Destructor Documentation
CCodDownload()
CCodDownload
|
(
|
)
|
[private]
|
~CCodDownload()
IMPORT_C
|
~CCodDownload
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ActiveDownload()
IMPORT_C
TInt
|
ActiveDownload
|
(
|
)
|
|
GetDestFilePath(TInt)
IMPORT_C
TPtrC
|
GetDestFilePath
|
(
|
TInt
|
aMOIndex
|
)
|
const
|
Get Destination file name
Parameters
TInt
aMOIndex
|
media object index between 1 to 'n'
|
GetPath()
IMPORT_C
TPtrC
|
GetPath
|
(
|
)
|
const
|
Get path of saved content (or empty string). Available in ESucceeded state only.
GetPostResponseUrlL()
IMPORT_C
HBufC8
*
|
GetPostResponseUrlL
|
(
|
)
|
const
|
Name()
Get name attribute. This may be empty string, if attribute is empty or not available. Do not store pointer (data may change as download proceeds).
NewL(const TDesC8 &, const TDesC8 &, MCodDownloadObserver &, CEikonEnv *)
Two-phased constructor. Leaves on failure.
Parameters
const
TDesC8
& aBuf
|
The descriptor.
|
const
TDesC8
& aType
|
Descriptor data type.
|
MCodDownloadObserver
& aObserver
|
Observer.
|
CEikonEnv * aEikEnv
|
Eikon environment or NULL. Can be NULL if download does not require UI functionality. If download needs UI but NULL is passed here, the download fails with EFailedPermanent KErrCancel.
|
NewL(const TDesC8 &, const TDesC8 &, MCodDownloadObserver &, CEikonEnv *, const TDesC8 *, const TDesC16 *)
Two-phased constructor. Leaves on failure. This one supports multipart/related where the first part of the multipart is the descriptor.
Parameters
const
TDesC8
& aBuf
|
Data buffer (descriptor or multipart).
|
const
TDesC8
& aType
|
Data type.
|
MCodDownloadObserver
& aObserver
|
Observer.
|
CEikonEnv * aEikEnv
|
Eikon environment or NULL. Can be NULL if download does not require UI functionality. If download needs UI but NULL is passed here, the download fails with EFailedPermanent KErrCancel.
|
const
TDesC8
* aMultipartBoundary
|
Multipart boundary or NULL. Required for processing multipart.
|
const
TDesC16
* aMultipartUrl
|
Multipart URL or NULL. Required for processing multipart.
|
NewL(const TInt, const TUid, const TDesC8 &, MCodDownloadObserver &, CEikonEnv *)
Two-phased constructor. Leaves on failure.
Parameters
const
TInt
aDownloadId
|
Download ID.
|
const
TUid
aDlUid
|
App UID.
|
const
TDesC8
& aType
|
Descriptor data type.
|
MCodDownloadObserver
& aObserver
|
Observer.
|
CEikonEnv * aEikEnv
|
Eikon environment or NULL. Can be NULL if download does not require UI functionality. If download needs UI but NULL is passed here, the download fails with EFailedPermanent KErrCancel.
|
NextUrlL()
IMPORT_C
HBufC8
*
|
NextUrlL
|
(
|
)
|
const
|
RemovableMedia()
IMPORT_C
TBool
|
RemovableMedia
|
(
|
)
|
const
|
Check if downloading to removable media. Available after EAccept event.
ServiceFlowL()
IMPORT_C void
|
ServiceFlowL
|
(
|
)
|
|
Perform service flow after a succesful or failed download. This consists of zero, one or both of
SetCodDlAttached(const TBool)
IMPORT_C void
|
SetCodDlAttached
|
(
|
const
TBool
|
aValue
|
)
|
|
Set COD download attached
Parameters
const
TBool
aValue
|
If equals ETrue - download is attached
|
SetUserData(TAny *)
IMPORT_C void
|
SetUserData
|
(
|
TAny
*
|
aUserData
|
)
|
|
Set tansparent user data.
Parameters
TAny
* aUserData
|
User data.
|
StartL(const CAiwGenericParamList *)
IMPORT_C void
|
StartL
|
(
|
const CAiwGenericParamList *
|
aParams
|
)
|
|
Start download. Panics if already active. Restart is OK for completed downloads.
Parameters
const CAiwGenericParamList * aParams
|
Parameters or NULL.
|
Type()
IMPORT_C
TPtrC8
|
Type
|
(
|
)
|
const
|
Get data type of content (or empty string: type may not be available).
UpdatedDDUriL()
IMPORT_C
HBufC8
*
|
UpdatedDDUriL
|
(
|
)
|
const
|
UpdatedDownloadDataL()
IMPORT_C
HBufC8
*
|
UpdatedDownloadDataL
|
(
|
)
|
const
|
Set the CodData stream descriptor.
UpdatedTrackDataL(TInt &)
IMPORT_C
HBufC8
*
|
UpdatedTrackDataL
|
(
|
TInt
&
|
aValue
|
)
|
const
|
Set the stream descriptor for single media object (track).
UserData()
IMPORT_C
TAny
*
|
UserData
|
(
|
)
|
const
|
Get tansparent user data.
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.