epoc32/include/gulicon.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 
    17 #if !defined(__GULICON_H__)
    18 #define __GULICON_H__  
    19 
    20 #if !defined(__E32BASE_H__)
    21 #include <e32base.h>
    22 #endif
    23 
    24 class CFbsBitmap;
    25 
    26 class CGulIcon : public CBase
    27 /** Packages two bitmaps, one each for an icon image and its mask. 
    28 
    29 @publishedAll
    30 @released */
    31 	{
    32 public:
    33 	IMPORT_C static CGulIcon* NewLC();
    34 	IMPORT_C static CGulIcon* NewL();
    35 	IMPORT_C static CGulIcon* NewL(CFbsBitmap* aBitmap, CFbsBitmap* aMask=NULL);
    36 	//
    37 	IMPORT_C void SetBitmap(CFbsBitmap* aBitmap);
    38 	IMPORT_C void SetMask(CFbsBitmap* aMask);
    39 	IMPORT_C CFbsBitmap* Bitmap() const;
    40 	IMPORT_C CFbsBitmap* Mask() const;
    41 	IMPORT_C void SetBitmapsOwnedExternally(TBool aOwnedExternally);
    42 	IMPORT_C TBool BitmapsOwnedExternally() const;
    43 	//
    44 	IMPORT_C ~CGulIcon();
    45 private:
    46 	CGulIcon();
    47 private:
    48 	CFbsBitmap* iBitmap;
    49 	CFbsBitmap* iMask;
    50 	TBool iBitmapsOwnedExternally;
    51 	};
    52 
    53 #endif