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(TBoolaPreloaded)

Create a CAttributeObject for the output file

Parameters

TBool aPreloadedETrue to query all attribute values before returning the attribute object

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

voidConstructL(const TDesC &aFileName,
const TDesC8 &aMimeType,
const TOutputTypeaOutputType
)[private]

Parameters

const TDesC & aFileName
const TDesC8 & aMimeType
const TOutputType aOutputType

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Write the CSupplierOutputFile object to a stream

Parameters

RWriteStream & aStreamThe stream to write to.

FileName()

IMPORT_C TPtrCFileName()const

Finds out the name of the file.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

MimeTypeL()

IMPORT_C TPtrC8MimeTypeL()

The mime type of the output file.

NewL(const TDesC &, const TOutputType)

IMPORT_C CSupplierOutputFile *NewL(const TDesC &aFileName,
const TOutputTypeaOutputType
)[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 & aFileNameThe name of the file produced
const TOutputType aOutputTypeThe type of output file produced

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

IMPORT_C CSupplierOutputFile *NewL(const TDesC &aFileName,
const TOutputTypeaOutputType,
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 & aFileNameThe name of the file produced
const TOutputType aOutputTypeThe type of output file produced
const TDesC8 & aMimeTypeThe 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 & aStreamA stream containing a CSupplierOutputFile

OutputType()

IMPORT_C TOutputTypeOutputType()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]