ContentAccess::CSupplierOutputFile Class Reference

class ContentAccess::CSupplierOutputFile : public CBase

Holds the details of an output file produced by CAF.

It stores:

  • The filename

  • The type of file (receipt or content)

  • The mime type of the file

Inherits from

  • ContentAccess::CSupplierOutputFile

Constructor & Destructor Documentation

CSupplierOutputFile()

CSupplierOutputFile ( ) [private]

~CSupplierOutputFile()

~CSupplierOutputFile ( ) [virtual]

Member Functions Documentation

AttributesL(TBool)

IMPORT_C CAttribute & AttributesL ( TBool aPreloaded )

Create a CAttributeObject for the output file

Parameters

TBool aPreloaded ETrue to query all attribute values before returning the attribute object

ConstructL(const TDesC &, const TDesC8 &, const TOutputType)

void ConstructL ( const TDesC & aFileName,
const TDesC8 & aMimeType,
const TOutputType aOutputType
) [private]

Parameters

const TDesC & aFileName
const TDesC8 & aMimeType
const TOutputType aOutputType

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Write the CSupplierOutputFile object to a stream

Parameters

RWriteStream & aStream The stream to write to.

FileName()

IMPORT_C TPtrC FileName ( ) const

Finds out the name of the file.

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream ) [private]

Parameters

RReadStream & aStream

MimeTypeL()

IMPORT_C TPtrC8 MimeTypeL ( )

The mime type of the output file.

NewL(const TDesC &, const TOutputType)

IMPORT_C CSupplierOutputFile * NewL ( const TDesC & aFileName,
const TOutputType aOutputType
) [static]

Create a new CSupplierOutputFile used to describe output files produced by the CAF supply operation

Note:

Receipt files should be generated in localised unicode

Parameters

const TDesC & aFileName The name of the file produced
const TOutputType aOutputType The type of output file produced

NewL(const TDesC &, const TOutputType, const TDesC8 &)

IMPORT_C CSupplierOutputFile * NewL ( const TDesC & aFileName,
const TOutputType aOutputType,
const TDesC8 & aMimeType
) [static]

Create a new CSupplierOutputFile used to describe output files produced by the CAF supply operation

Note:

Receipt files should be generated in localised unicode

Parameters

const TDesC & aFileName The name of the file produced
const TOutputType aOutputType The type of output file produced
const TDesC8 & aMimeType The mime type of the file produced

NewL(RReadStream &)

IMPORT_C CSupplierOutputFile * NewL ( RReadStream & aStream ) [static]

Construct an instance of CSupplierOutputFile by reading from the stream

Parameters

RReadStream & aStream A stream containing a CSupplierOutputFile

OutputType()

IMPORT_C TOutputType OutputType ( ) const

The type of the file, e.g., Content or a Receipt.

Note:

Receipt files should be generated in localised unicode

Member Data Documentation

CAttribute * iAttr

CAttribute * iAttr [private]

HBufC * iFileName

HBufC * iFileName [private]

TBuf8< KMaxDataTypeLength > iMimeType

TBuf8 < KMaxDataTypeLength > iMimeType [private]

TOutputType iOutputType

TOutputType iOutputType [private]