CHnExtBmpIconHolder Class Reference

class CHnExtBmpIconHolder

This is an extended version of CHnIconHolder which holds a CGulIcon that does not own the bitmaps and CLiwBitmapBuffer objects that do.

Such class was needed because some of the bitmaps for icons are obtained from CLiwBitmapBuffer objects and there is no way to transfer ownership of that bitmaps from them. It is not possible to make copies of that bitmaps either, because some of them are not CFbsBitmaps but CAknBitmaps.

Constructor & Destructor Documentation

~CHnExtBmpIconHolder()

~CHnExtBmpIconHolder ( ) [virtual]

Standard C++ virtual destructor.

Member Functions Documentation

CleanBmpBuffer()

void CleanBmpBuffer ( ) [virtual]

Clean both liw bitmap buffer and liw maskbitmap buffer. Allows set new mask and new bitmap for the icon.

SetGulIcon(CGulIcon *, CLiwBitmapBuffer *, CLiwBitmapBuffer *)

IMPORT_C void SetGulIcon ( CGulIcon * aGulIcon,
CLiwBitmapBuffer * aBmpBuffer,
CLiwBitmapBuffer * aMaskBuffer
)

Sets the icon to be stored in this icon holder along with the bitmap buffers. This method should be called only once. If you want to store another icon simply call Close() on this icon holder and then create a new icon holder to store the new icon.

Parameters

CGulIcon * aGulIcon Icon to store in this icon holder.
CLiwBitmapBuffer * aBmpBuffer The buffer that owns the primary bitmap.
CLiwBitmapBuffer * aMaskBuffer The buffer that owns the mask bitmap.

Member Data Documentation

CLiwBitmapBuffer * iBmpBuffer

CLiwBitmapBuffer * iBmpBuffer [private]

Liw bitmap buffer that owns the primary bitmap for the icon. Co-owns ( CLiwBitmapBuffer are ref-counted).

CLiwBitmapBuffer * iMaskBuffer

CLiwBitmapBuffer * iMaskBuffer [private]

Liw bitmap buffer that owns the mask bitmap for the icon. Co-owns ( CLiwBitmapBuffer are ref-counted).