CThumbnailObjectSource Class Reference

class CThumbnailObjectSource : public CBase

Object source for thumbnails.

Class for encapsulating the data source for objects.

Since
S60 v5.0

Inherits from

Public Member Functions
~CThumbnailObjectSource ()
IMPORT_C CFbsBitmap * Bitmap ()
IMPORT_C TDesC8 * Buffer ()
void ConstructL (const TDesC &, const TDesC &, TThumbnailId )
void ConstructL ( CFbsBitmap *, const TDesC &)
void ConstructL ( TDesC8 *, const TDesC &, const TDesC &)
IMPORT_C RFile64 & FileHandle ()
IMPORT_C CFbsBitmap * GetBitmapOwnership ()
IMPORT_C TDesC8 * GetBufferOwnership ()
IMPORT_C TThumbnailId Id ()
IMPORT_C const TDesC8 & MimeType ()
IMPORT_C CThumbnailObjectSource * NewL (const TDesC &, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewL (const RFile64 &, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewL ( CFbsBitmap *, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewL ( TDesC8 *, TDesC &, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewL (const TDesC &, TThumbnailId , const TDesC &)
IMPORT_C CThumbnailObjectSource * NewLC (const TDesC &, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewLC (const RFile64 &, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewLC ( CFbsBitmap *, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewLC ( TDesC8 *, TDesC &, const TDesC &)
IMPORT_C CThumbnailObjectSource * NewLC (const TDesC &, TThumbnailId , const TDesC &)
IMPORT_C const TDesC & Uri ()
Private Member Functions
CThumbnailObjectSource ()
void ConstructL (const TDesC &, const TDesC &)
void ConstructL (const RFile64 &, const TDesC &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
CFbsBitmap * iBitmap
TDesC8 * iBuffer
RFile64 iFile
HBufC8 * iMimeType
TThumbnailId iThumbnailId
HBufC * iUri

Constructor & Destructor Documentation

CThumbnailObjectSource()

CThumbnailObjectSource ( ) [private]

C++ default constructor

Since
S60 v5.0

~CThumbnailObjectSource()

~CThumbnailObjectSource ( ) [virtual]

Destructor

Since
S60 v5.0

Member Functions Documentation

Bitmap()

IMPORT_C CFbsBitmap * Bitmap ( )

Returns source bitmap.

Since
S60 v5.0

Buffer()

IMPORT_C TDesC8 * Buffer ( )

Returns source buffer.

Since
S60 v5.0

ConstructL(const TDesC &, const TDesC &)

void ConstructL ( const TDesC & aUri,
const TDesC & aMimeType
) [private]

Symbian 2nd phase constructor can leave.

Since
S60 v5.0

Parameters

const TDesC & aUri Object URI or a full path to a file in the file system.
const TDesC & aMimeType MIME type. Optional, but should be specified if known.

ConstructL(const RFile64 &, const TDesC &)

void ConstructL ( const RFile64 & aFile,
const TDesC & aMimeType
) [private]

Symbian 2nd phase constructor can leave.

Since
S60 v5.0

Parameters

const RFile64 & aFile File handle.
const TDesC & aMimeType MIME type. Optional, but should be specified if known.

ConstructL(const TDesC &, const TDesC &, TThumbnailId)

void ConstructL ( const TDesC & aUri,
const TDesC & aMimeType,
TThumbnailId aThumbnailId
)

Symbian 2nd phase constructor can leave.

Since
S60 v5.0

Parameters

const TDesC & aUri
const TDesC & aMimeType MimeType.
TThumbnailId aThumbnailId ThumbnailId

ConstructL(CFbsBitmap *, const TDesC &)

void ConstructL ( CFbsBitmap * aBitmap,
const TDesC & aUri
)

Symbian 2nd phase constructor can leave.

Since
S60 v5.0

Parameters

CFbsBitmap * aBitmap Bitmap.
const TDesC & aUri

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

void ConstructL ( TDesC8 * aBuffer,
const TDesC & aMimeType,
const TDesC & aUri
)

Symbian 2nd phase constructor can leave.

Since
S60 v5.0

Parameters

TDesC8 * aBuffer Buffer.
const TDesC & aMimeType MIME type. Optional, but should be specified if known.
const TDesC & aUri

FileHandle()

IMPORT_C RFile64 & FileHandle ( )

Returns file handle.

Since
S60 v5.0

GetBitmapOwnership()

IMPORT_C CFbsBitmap * GetBitmapOwnership ( )

Gets ownership of bitmap from source object. After that Bitmap() returns NULL.

Since
S60 v5.0

GetBufferOwnership()

IMPORT_C TDesC8 * GetBufferOwnership ( )

Gets ownership of buffer from source object. After that Buffer() returns NULL.

Since
S60 v5.0

Id()

IMPORT_C TThumbnailId Id ( )

Gets ThumbnailId.

Since
S60 v5.0

MimeType()

IMPORT_C const TDesC8 & MimeType ( )

Gets MIME type.

Since
S60 v5.0

NewL(const TDesC &, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewL ( const TDesC & aUri,
const TDesC & aMimeType =  KNullDesC
) [static]
Construct a new CThumbnailObjectSource referring to an URI.
Since
S60 v5.0

Parameters

const TDesC & aUri Object URI or a full path to a file in the file system.
const TDesC & aMimeType =  KNullDesC MIME type. Optional, but should be specified if known.

NewL(const RFile64 &, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewL ( const RFile64 & aFile,
const TDesC & aMimeType =  KNullDesC
) [static]

Construct a new CThumbnailObjectSource referring to a file handle. The file handle must refer to an open file and it must remain valid until this object source is deleted.

Since
S60 v5.0

Parameters

const RFile64 & aFile File handle.
const TDesC & aMimeType =  KNullDesC MIME type. Optional, but should be specified if known.

NewL(CFbsBitmap *, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewL ( CFbsBitmap * aBitmap,
const TDesC & aUri
) [static]

Construct a new CThumbnailObjectSource referring to a buffer containing an image.

Since
S60 v5.0

Parameters

CFbsBitmap * aBitmap
const TDesC & aUri Object URI or a full path to a file in the file system.

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

IMPORT_C CThumbnailObjectSource * NewL ( TDesC8 * aBuffer,
TDesC & aMimeType,
const TDesC & aUri
) [static]

Construct a new CThumbnailObjectSource referring to a buffer containing an image.

Since
S60 v5.0

Parameters

TDesC8 * aBuffer Buffer.
TDesC & aMimeType
const TDesC & aUri Object URI or a full path to a file in the file system.

NewL(const TDesC &, TThumbnailId, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewL ( const TDesC & aUri,
TThumbnailId aThumbnailId = 0,
const TDesC & aMimeType =  KNullDesC
) [static]
Construct a new CThumbnailObjectSource referring to an URI.
Since
S60 v5.0

Parameters

const TDesC & aUri Object URI or a full path to a file in the file system.
TThumbnailId aThumbnailId = 0
const TDesC & aMimeType =  KNullDesC MIME type. Optional, but should be specified if known.

NewLC(const TDesC &, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewLC ( const TDesC & aUri,
const TDesC & aMimeType =  KNullDesC
) [static]
Construct a new CThumbnailObjectSource referring to an URI.
Since
S60 v5.0

Parameters

const TDesC & aUri Object URI or a full path to a file in the file system.
const TDesC & aMimeType =  KNullDesC MIME type. Optional, but should be specified if known.

NewLC(const RFile64 &, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewLC ( const RFile64 & aFile,
const TDesC & aMimeType =  KNullDesC
) [static]

Construct a new CThumbnailObjectSource referring to a file handle. The file handle must refer to an open file and it must remain valid until this object source is deleted.

Since
S60 v5.0

Parameters

const RFile64 & aFile File handle.
const TDesC & aMimeType =  KNullDesC MIME type. Optional, but should be specified if known.

NewLC(CFbsBitmap *, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewLC ( CFbsBitmap * aBitmap,
const TDesC & aUri
) [static]

Construct a new CThumbnailObjectSource referring to a buffer containing an image.

Since
S60 v5.0

Parameters

CFbsBitmap * aBitmap
const TDesC & aUri Object URI or a full path to a file in the file system.

NewLC(TDesC8 *, TDesC &, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewLC ( TDesC8 * aBuffer,
TDesC & aMimeType,
const TDesC & aUri
) [static]

Construct a new CThumbnailObjectSource referring to a buffer containing an image.

Since
S60 v5.0

Parameters

TDesC8 * aBuffer Buffer.
TDesC & aMimeType MIME type. Optional, but should be specified if known.
const TDesC & aUri Object URI or a full path to a file in the file system.

NewLC(const TDesC &, TThumbnailId, const TDesC &)

IMPORT_C CThumbnailObjectSource * NewLC ( const TDesC & aUri,
TThumbnailId aThumbnailId = 0,
const TDesC & aMimeType =  KNullDesC
) [static]
Construct a new CThumbnailObjectSource referring to an URI.
Since
S60 v5.0

Parameters

const TDesC & aUri Object URI or a full path to a file in the file system.
TThumbnailId aThumbnailId = 0
const TDesC & aMimeType =  KNullDesC MIME type. Optional, but should be specified if known.

Uri()

IMPORT_C const TDesC & Uri ( )

Returns source uri.

Since
S60 v5.0

Member Data Documentation

CFbsBitmap * iBitmap

CFbsBitmap * iBitmap [private]

Bitmap

TDesC8 * iBuffer

TDesC8 * iBuffer [private]

Buffer

RFile64 iFile

RFile64 iFile [private]

File

HBufC8 * iMimeType

HBufC8 * iMimeType [private]

Mime type

TThumbnailId iThumbnailId

TThumbnailId iThumbnailId [private]

ThumbnailId

HBufC * iUri

HBufC * iUri [private]

Uri