class CNcdPurchaseDetails : public CBase |
A default implementation for the MNcdPurchaseDetails interface.
ncdutils_20019119.dll
MNcdPurchaseDetails The number of DownloadedFiles must always match the number of DownloadInfos. DownloadFiles are added/removed automatically if necessary when the details are saved to purchase history
The number of InstallInfos must be equal to or lesser than the number of DownloadInfos. Excess InstallInfos are removed when the details are saved to purchase history
Private Member Functions | |
---|---|
CNcdPurchaseDetails () | |
void | ConstructL () |
void | CreateAttributesL () |
IMPORT_C void | AddDownloadInfoL | ( | MNcdPurchaseDownloadInfo * | aDownloadInfo | ) |
Add download info
MNcdPurchaseDownloadInfo * aDownloadInfo | A download info. Ownership is transferred if the operation is successful. |
IMPORT_C void | AddDownloadedFileL | ( | const TDesC & | aDownloadedFile | ) |
Add file name for a downloaded file.
Leave |
System wide error code. |
const TDesC & aDownloadedFile | Filename |
IMPORT_C void | AddInstallInfoL | ( | MNcdPurchaseInstallInfo * | aInstallInfo | ) |
Add file installation info.
Leave |
System wide error code. |
MNcdPurchaseInstallInfo * aInstallInfo | File installation info. Ownership is transferred if the operation is successful. |
TInt32 | AttributeInt32 | ( | TPurchaseAttribute | aAttribute | ) | const |
TPurchaseAttribute aAttribute |
const TDesC & | AttributeString | ( | TPurchaseAttribute | aAttribute | ) | const |
TPurchaseAttribute aAttribute |
void | CreateAttributesL | ( | ) | [private] |
Creates attributes if they haven't been created yet
IMPORT_C CNcdPurchaseDownloadInfo & | DownloadInfo | ( | TInt | aIndex | ) |
Download info getter
TInt aIndex |
IMPORT_C void | ExternalizeAttributesL | ( | RWriteStream & | aStream | ) | const |
Externalizes attributes to a stream
RWriteStream & aStream | Write stream |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Leave |
System wide error code. |
RWriteStream & aStream | Write stream. |
IMPORT_C void | InsertDownloadInfoL | ( | MNcdPurchaseDownloadInfo * | aDownloadInfo, |
TInt | aIndex | |||
) |
Insert download info
MNcdPurchaseDownloadInfo * aDownloadInfo | A download info. Ownership is transferred if the operation is successful. |
TInt aIndex |
IMPORT_C void | InsertDownloadedFileL | ( | const TDesC & | aDownloadedFile, |
TInt | aIndex | |||
) |
Insert file name for a downloaded file.
Leave |
System wide error code. |
IMPORT_C void | InsertInstallInfoL | ( | MNcdPurchaseInstallInfo * | aInstallInfo, |
TInt | aIndex | |||
) |
Insert file installation info.
Leave |
System wide error code. |
MNcdPurchaseInstallInfo * aInstallInfo | File installation info. Ownership is transferred if the operation is successful. |
TInt aIndex |
IMPORT_C CNcdPurchaseInstallInfo & | InstallInfo | ( | TInt | aIndex | ) |
Install info getter
TInt aIndex | Index |
IMPORT_C void | InternalizeAttributesL | ( | RReadStream & | aStream | ) |
Internalizes attributes from a stream
RReadStream & aStream | Read stream |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Leave |
System wide error code. |
RReadStream & aStream | Read stream. |
IMPORT_C CNcdPurchaseDetails * | NewL | ( | ) | [static] |
Constructor.
Leave |
System wide error code. |
IMPORT_C CNcdPurchaseDetails * | NewL | ( | const MNcdPurchaseDetails & | aDetails | ) | [static] |
Copy constructor.
Leave |
System wide error code. |
const MNcdPurchaseDetails & aDetails | Details object to copy information from. |
IMPORT_C CNcdPurchaseDetails * | NewLC | ( | ) | [static] |
Constructor. Leaves pointer on cleanup stack.
Leave |
System wide error code. |
IMPORT_C CNcdPurchaseDetails * | NewLC | ( | const MNcdPurchaseDetails & | aDetails | ) | [static] |
Copy constructor. Leaves pointer on cleanup stack.
Leave |
System wide error code. |
const MNcdPurchaseDetails & aDetails | Details object to copy information from. |
IMPORT_C void | RemoveDownloadInfo | ( | TInt | aIndex | ) |
Remove download info
TInt aIndex | Index |
IMPORT_C void | RemoveDownloadedFile | ( | TInt | aIndex | ) |
Remove a file name
TInt aIndex |
IMPORT_C void | RemoveInstallInfo | ( | TInt | aIndex | ) |
Remove install info
TInt aIndex | Index |
IMPORT_C void | ReplaceDownloadedFileL | ( | TInt | aIndex, |
const TDesC & | aDownloadedFile | |||
) |
Replaces a file name of the downloaded file.
Leave |
System wide error code. |
IMPORT_C void | SetAttributeL | ( | TPurchaseAttribute | aAttribute, |
TInt32 | aValue | |||
) |
Integer attribute setter
TPurchaseAttribute aAttribute | |
TInt32 aValue |
IMPORT_C void | SetAttributeL | ( | TPurchaseAttribute | aAttribute, |
const TDesC & | aValue | |||
) |
String attribute setter
TPurchaseAttribute aAttribute | |
const TDesC & aValue |
IMPORT_C void | SetCatalogSourceName | ( | HBufC * | aCatalogSourceName | ) |
Set catalog source name.
HBufC * aCatalogSourceName | Catalog source name. Ownership is transferred. |
IMPORT_C void | SetCatalogSourceNameL | ( | const TDesC & | aCatalogSourceName | ) |
Set catalog source name.
Leave |
System wide error code. |
const TDesC & aCatalogSourceName | Catalog source name. |
IMPORT_C void | SetClientUid | ( | TUid | aClientUid | ) |
Set client UID.
TUid aClientUid | Client UID. |
IMPORT_C void | SetDescription | ( | HBufC * | aDescription | ) |
Set description.
HBufC * aDescription | Description. Ownership is transferred. |
IMPORT_C void | SetDescriptionL | ( | const TDesC & | aDescription | ) |
Set description.
Leave |
System wide error code. |
const TDesC & aDescription | Description. |
IMPORT_C void | SetDownloadAccessPoint | ( | HBufC * | aAccessPoint | ) |
Set access point used in download process.
HBufC * aAccessPoint | Access point. Ownership is transferred. |
IMPORT_C void | SetDownloadAccessPointL | ( | const TDesC & | aAccessPoint | ) |
Set access point used in download process.
Leave |
System wide error code. |
const TDesC & aAccessPoint | Access point. |
IMPORT_C void | SetDownloadInfoL | ( | const TArray < MNcdPurchaseDownloadInfo * > & | aDownloadInfo | ) |
Set download infos.
const TArray < MNcdPurchaseDownloadInfo * > & aDownloadInfo | Download infos. Ownership is not transferred, copies will be taken. |
IMPORT_C void | SetDownloadedFiles | ( | CDesCArray * | aDownloadedFiles | ) |
Set file name(s) of the downloaded file(s).
CDesCArray * aDownloadedFiles | Array of file names. Ownership is transferred. |
IMPORT_C void | SetDownloadedFilesL | ( | const MDesCArray & | aDownloadedFiles | ) |
Set file name(s) of the downloaded file(s).
Leave |
System wide error code. |
const MDesCArray & aDownloadedFiles | Array of file names. Ownership is not transferred, copies will be taken. |
IMPORT_C void | SetEntityId | ( | HBufC * | aEntityId | ) |
Set entity ID.
HBufC * aEntityId | Entity ID. Ownership is transferred. |
IMPORT_C void | SetEntityIdL | ( | const TDesC & | aEntityId | ) |
Set entity ID.
Leave |
System wide error code. |
const TDesC & aEntityId | Entity ID. |
IMPORT_C void | SetFinalPrice | ( | HBufC * | aFinalPrice | ) |
Set final price.
HBufC * aFinalPrice | Final price. Ownership is transferred. |
IMPORT_C void | SetFinalPriceL | ( | const TDesC & | aFinalPrice | ) |
Set final price.
Leave |
System wide error code. |
const TDesC & aFinalPrice | Final price. |
IMPORT_C void | SetHasIcon | ( | TBool | aHasIcon | ) |
Setter for HasIcon flag.
TBool aHasIcon | flag value. |
IMPORT_C void | SetIcon | ( | HBufC8 * | aIcon | ) |
Set icon.
HBufC8 * aIcon | Icon data. Ownership is transferred. |
IMPORT_C void | SetIconL | ( | const TDesC8 & | aIcon | ) |
Set icon.
Leave |
System wide error code. |
const TDesC8 & aIcon | Icon data. |
IMPORT_C void | SetInstallInfoL | ( | const TArray < MNcdPurchaseInstallInfo * > & | aInstallInfo | ) |
Set file installation infos.
Leave |
System wide error code. |
const TArray < MNcdPurchaseInstallInfo * > & aInstallInfo | File installation info array. Ownership is not transferred, copies will be taken. |
IMPORT_C void | SetItemName | ( | HBufC * | aItemName | ) |
Set item name.
HBufC * aItemName | Item name. Ownership is transferred. |
IMPORT_C void | SetItemNameL | ( | const TDesC & | aItemName | ) |
Set item name.
Leave |
System wide error code. |
const TDesC & aItemName | Item name. |
IMPORT_C void | SetItemPurpose | ( | TUint | aItemPurpose | ) |
Set item purpose.
TUint aItemPurpose | Item purpose. Bit field of TNcdItemPurpose flags. |
IMPORT_C void | SetItemType | ( | TItemType | aItemType | ) |
Set item type.
TItemType aItemType | Item type. |
IMPORT_C void | SetLastOperationErrorCode | ( | TInt | aError | ) |
Set the last operation error code.
TInt aError | The error code. |
IMPORT_C void | SetLastOperationTime | ( | const TTime & | aTime | ) |
Set the last operation time. This should be universal time.
const TTime & aTime | The universal time. |
IMPORT_C void | SetLastUniversalOperationTime | ( | ) |
Set the last operation time to the current universal time.
IMPORT_C void | SetNamespace | ( | HBufC * | aNamespace | ) |
Set namespace.
HBufC * aNamespace | Namespace. Ownership is transferred. |
IMPORT_C void | SetNamespaceL | ( | const TDesC & | aNamespace | ) |
Set namespace.
Leave |
System wide error code. |
const TDesC & aNamespace | Namespace. |
IMPORT_C void | SetOriginNodeId | ( | HBufC * | aOriginNodeId | ) |
Set the origin node id.
HBufC * aOriginNodeId | The id. |
IMPORT_C void | SetOriginNodeIdL | ( | const TDesC & | aOriginNodeId | ) |
Set the origin node id.
const TDesC & aOriginNodeId | The id. |
IMPORT_C void | SetPaymentMethodName | ( | HBufC * | aPaymentMethodName | ) |
Set payment method name.
HBufC * aPaymentMethodName | Payment method name. Ownership is transferred. |
IMPORT_C void | SetPaymentMethodNameL | ( | const TDesC & | aPaymentMethodName | ) |
Set payment method name.
Leave |
System wide error code. |
const TDesC & aPaymentMethodName | Payment method name. |
IMPORT_C void | SetPurchaseOptionId | ( | HBufC * | aPurchaseOptionId | ) |
Set purchase option ID.
HBufC * aPurchaseOptionId | Purchase option ID. Ownership is transferred. |
IMPORT_C void | SetPurchaseOptionIdL | ( | const TDesC & | aPurchaseOptionId | ) |
Set purchase option ID.
Leave |
System wide error code. |
const TDesC & aPurchaseOptionId | Purchase option ID. |
IMPORT_C void | SetPurchaseOptionName | ( | HBufC * | aPurchaseOptionName | ) |
Set purchase option name.
HBufC * aPurchaseOptionName | Purchase option name. Ownership is transferred. |
IMPORT_C void | SetPurchaseOptionNameL | ( | const TDesC & | aPurchaseOptionName | ) |
Set purchase option name.
Leave |
System wide error code. |
const TDesC & aPurchaseOptionName | Purchase option name. |
IMPORT_C void | SetPurchaseOptionPrice | ( | HBufC * | aPurchaseOptionPrice | ) |
Set purchase option price.
HBufC * aPurchaseOptionPrice | Purchase option price. Ownership is transferred. |
IMPORT_C void | SetPurchaseOptionPriceL | ( | const TDesC & | aPurchaseOptionPrice | ) |
Set purchase option price.
Leave |
System wide error code. |
const TDesC & aPurchaseOptionPrice | Purchase option price. |
IMPORT_C void | SetPurchaseTime | ( | TTime | aPurchaseTime | ) |
Set time of purchase.
TTime aPurchaseTime | Purchase time. |
IMPORT_C void | SetServerUri | ( | HBufC * | aServerUri | ) |
Set server URI.
HBufC * aServerUri | Server URI. Ownership is transferred. |
IMPORT_C void | SetServerUriL | ( | const TDesC & | aServerUri | ) |
Set server URI.
Leave |
System wide error code. |
const TDesC & aServerUri | Server URI. |
IMPORT_C void | SetTotalContentSize | ( | TInt | aSize | ) |
Set the total content size.
TInt aSize | The size. |
IMPORT_C void | SetVersion | ( | HBufC * | aVersion | ) |
Set version.
HBufC * aVersion | Version. Ownership is transferred. |
IMPORT_C void | SetVersionL | ( | const TDesC & | aVersion | ) |
Set version.
Leave |
System wide error code. |
const TDesC & aVersion | Version. |
RPointerArray < MNcdPurchaseDownloadInfo > | iDownloadInfo | [private] |
RPointerArray < MNcdPurchaseInstallInfo > | iInstallInfo | [private] |
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.