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.
Public Member Functions | |
---|---|
~CHnExtBmpIconHolder () | |
void | CleanBmpBuffer () |
IMPORT_C void | SetGulIcon ( CGulIcon *, CLiwBitmapBuffer *, CLiwBitmapBuffer *) |
Private Attributes | |
---|---|
CLiwBitmapBuffer * | iBmpBuffer |
CLiwBitmapBuffer * | iMaskBuffer |
void | CleanBmpBuffer | ( | ) | [virtual] |
Clean both liw bitmap buffer and liw maskbitmap buffer. Allows set new mask and new bitmap for the icon.
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.
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. |
CLiwBitmapBuffer * | iBmpBuffer | [private] |
Liw bitmap buffer that owns the primary bitmap for the icon. Co-owns ( CLiwBitmapBuffer are ref-counted).
CLiwBitmapBuffer * | iMaskBuffer | [private] |
Liw bitmap buffer that owns the mask bitmap for the icon. Co-owns ( CLiwBitmapBuffer are ref-counted).
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.