CUpnpIcon Class Reference

class CUpnpIcon : public CBase

Declares CUpnpIcon class

Since
Series60 2.6

Inherits from

Public Member Functions
~CUpnpIcon ()
void AddPropertyL ( CUpnpDescriptionProperty *)
IMPORT_C TFileName BitmapFilename ()
IMPORT_C TInt Depth ()
TPtrC8 DepthTPtrC8 ()
void ExternalizeL ( RWriteStream &)
IMPORT_C const TPtr8 & GetIconBufferPtr ()
IMPORT_C TInt Height ()
TPtrC8 HeightTPtrC8 ()
IMPORT_C void InternalizeL ( RReadStream &)
IMPORT_C const TPtrC8 MimeType ()
IMPORT_C CUpnpIcon * NewL ()
IMPORT_C CUpnpIcon * NewL (const TDesC16 &, const TDesC8 &, const TInt , const TInt , const TInt , const TDesC8 &)
IMPORT_C CUpnpIcon * NewL (const TDesC16 &, const TInt , const TInt , const TInt , const TDesC8 &)
IMPORT_C void SetBitmapFilename (const TDesC &)
void SetDepthL (const TInt )
void SetHeightL (const TInt )
void SetMimeTypeL (const TDesC8 &)
IMPORT_C void SetUrlL (const TDesC8 &)
void SetWidthL (const TInt )
IMPORT_C HBufC8 * ToDes8L ()
IMPORT_C const TPtrC8 Url ()
IMPORT_C TInt Width ()
TPtrC8 WidthTPtrC8 ()
Private Member Functions
CUpnpIcon ()
void ConstructL ()
void ConstructL (const TDesC16 &, const TDesC8 &, const TInt , const TInt , const TInt , const TDesC8 &)
void ConstructL (const TDesC16 &, const TInt , const TInt , const TInt , const TDesC8 &)
void DeleteIconFromFsL ()
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
TFileName iFilename
RPointerArray < CUpnpDescriptionProperty > iProperties
HBufC8 * iSendBuffer
TPtr8 iSendBufferPtr

Constructor & Destructor Documentation

CUpnpIcon()

CUpnpIcon ( ) [private]

C++ default constructor.

~CUpnpIcon()

IMPORT_C ~CUpnpIcon ( ) [virtual]

Destructor. Deletes the element from memory.

Member Functions Documentation

AddPropertyL(CUpnpDescriptionProperty *)

void AddPropertyL ( CUpnpDescriptionProperty * aProperty )
Add description property
Since
Series60 3.2

Parameters

CUpnpDescriptionProperty * aProperty

BitmapFilename()

IMPORT_C TFileName BitmapFilename ( ) const
Get bitmap filename
Since
Series60 2.6

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

ConstructL(const TDesC16 &, const TDesC8 &, const TInt, const TInt, const TInt, const TDesC8 &)

void ConstructL ( const TDesC16 & aPath,
const TDesC8 & aUrl,
const TInt aWidth,
const TInt aHeight,
const TInt aDepth,
const TDesC8 & aMimeType
) [private]

By default Symbian 2nd phase constructor is private.

Parameters

const TDesC16 & aPath icon path
const TDesC8 & aUrl icon url
const TInt aWidth icon width
const TInt aHeight icon height
const TInt aDepth icon depth
const TDesC8 & aMimeType icon mime type

ConstructL(const TDesC16 &, const TInt, const TInt, const TInt, const TDesC8 &)

void ConstructL ( const TDesC16 & aPath,
const TInt aWidth,
const TInt aHeight,
const TInt aDepth,
const TDesC8 & aMimeType
) [private]

By default Symbian 2nd phase constructor is private.

Parameters

const TDesC16 & aPath icon path
const TInt aWidth icon width
const TInt aHeight icon height
const TInt aDepth icon depth
const TDesC8 & aMimeType icon mime type

DeleteIconFromFsL()

void DeleteIconFromFsL ( ) [private]
Deletes icon's file if exists.
Since
Series60 2.6

Depth()

IMPORT_C TInt Depth ( ) const
Returns the color depth of the icon.
Since
Series60 2.6

DepthTPtrC8()

TPtrC8 DepthTPtrC8 ( ) const
Returns color depth of the icon.
Since
Series60 2.6

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const
Deserializes icon
Since
Series60 3.2

Parameters

RWriteStream & aStream

GetIconBufferPtr()

IMPORT_C const TPtr8 & GetIconBufferPtr ( ) const
Returns the icon buffer
Since
Series60 2.6

Height()

IMPORT_C TInt Height ( ) const
Returns the height of the icon.
Since
Series60 2.6

HeightTPtrC8()

TPtrC8 HeightTPtrC8 ( ) const
Returns height of the icon.
Since
Series60 2.6

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream )
Serializes icon
Since
Series60 3.2

Parameters

RReadStream & aStream

MimeType()

IMPORT_C const TPtrC8 MimeType ( ) const
Returns the mime type.
Since
Series60 2.6

NewL()

IMPORT_C CUpnpIcon * NewL ( ) [static]

Two-phased constructor. returns a pointer to the new element.

NewL(const TDesC16 &, const TDesC8 &, const TInt, const TInt, const TInt, const TDesC8 &)

IMPORT_C CUpnpIcon * NewL ( const TDesC16 & aPath,
const TDesC8 & aUrl,
const TInt aWidth,
const TInt aHeight,
const TInt aDepth,
const TDesC8 & aMimeType
) [static]

Two-phased constructor. returns a pointer to the new element.

Parameters

const TDesC16 & aPath icon path
const TDesC8 & aUrl icon url
const TInt aWidth icon width
const TInt aHeight icon height
const TInt aDepth icon depth
const TDesC8 & aMimeType icon mime type

NewL(const TDesC16 &, const TInt, const TInt, const TInt, const TDesC8 &)

IMPORT_C CUpnpIcon * NewL ( const TDesC16 & aPath,
const TInt aWidth,
const TInt aHeight,
const TInt aDepth,
const TDesC8 & aMimeType
) [static]

Two-phased constructor. returns a pointer to the new element.

Parameters

const TDesC16 & aPath icon path
const TInt aWidth icon width
const TInt aHeight icon height
const TInt aDepth icon depth
const TDesC8 & aMimeType icon mime type

SetBitmapFilename(const TDesC &)

IMPORT_C void SetBitmapFilename ( const TDesC & aName )
Set bitmap filename
Since
Series60 2.6

Parameters

const TDesC & aName the bitmap filename (path?)

SetDepthL(const TInt)

void SetDepthL ( const TInt aDepth )
Sets icon depth
Since
Series60 2.6

Parameters

const TInt aDepth icon depth

SetHeightL(const TInt)

void SetHeightL ( const TInt aHeight )
Sets icon height
Since
Series60 2.6

Parameters

const TInt aHeight icon height

SetMimeTypeL(const TDesC8 &)

void SetMimeTypeL ( const TDesC8 & aMimeType )
Sets icon mime type
Since
Series60 2.6

Parameters

const TDesC8 & aMimeType icon mime type

SetUrlL(const TDesC8 &)

IMPORT_C void SetUrlL ( const TDesC8 & aUrl )
Sets icon url
Since
Series60 2.6

Parameters

const TDesC8 & aUrl icon url

SetWidthL(const TInt)

void SetWidthL ( const TInt aWidth )
Sets icon width
Since
Series60 2.6

Parameters

const TInt aWidth icon width

ToDes8L()

IMPORT_C HBufC8 * ToDes8L ( ) const
Since
Series60 3.2

Url()

IMPORT_C const TPtrC8 Url ( ) const
Returns the url address.
Since
Series60 2.6

Width()

IMPORT_C TInt Width ( ) const
Returns the width of the icon.
Since
Series60 2.6

WidthTPtrC8()

TPtrC8 WidthTPtrC8 ( ) const
Returns the width of the icon.
Since
Series60 2.6

Member Data Documentation

TFileName iFilename

TFileName iFilename [private]

RPointerArray< CUpnpDescriptionProperty > iProperties

RPointerArray < CUpnpDescriptionProperty > iProperties [private]

HBufC8 * iSendBuffer

HBufC8 * iSendBuffer [private]

TPtr8 iSendBufferPtr

TPtr8 iSendBufferPtr [private]