brandingserver/Inc/cbsbitmap.h
author hgs
Sun, 11 Apr 2010 15:33:49 +0530
changeset 31 9dbc70490d9a
permissions -rw-r--r--
201014
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  cbsbitmap.h
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#ifndef __CBSBITMAP_H__
hgs
parents:
diff changeset
    22
#define __CBSBITMAP_H__
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
#include <e32std.h>
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
/**
hgs
parents:
diff changeset
    27
 *
hgs
parents:
diff changeset
    28
 */
hgs
parents:
diff changeset
    29
NONSHARABLE_CLASS( CBSBitmap ): public CBase
hgs
parents:
diff changeset
    30
    {
hgs
parents:
diff changeset
    31
	public:
hgs
parents:
diff changeset
    32
		/**
hgs
parents:
diff changeset
    33
		* Two-phased constructor.
hgs
parents:
diff changeset
    34
		* @param aBitmapId the bitmap id
hgs
parents:
diff changeset
    35
		* @param aBitmapMaskId the bitmap mask id
hgs
parents:
diff changeset
    36
		* @param aSkinId the skin id
hgs
parents:
diff changeset
    37
		* @param aSkinMaskId the skin mask id
hgs
parents:
diff changeset
    38
		* @param aBitmapFileId the bitmap file id
hgs
parents:
diff changeset
    39
		*/
hgs
parents:
diff changeset
    40
		IMPORT_C static CBSBitmap* NewL( TInt aBitmapId,
hgs
parents:
diff changeset
    41
								TInt aBitmapMaskId,
hgs
parents:
diff changeset
    42
								TInt aSkinIdMajor,
hgs
parents:
diff changeset
    43
								TInt aSkinIdMinor,
hgs
parents:
diff changeset
    44
								const TDesC8& aBitmapFileId );
hgs
parents:
diff changeset
    45
hgs
parents:
diff changeset
    46
		/**
hgs
parents:
diff changeset
    47
		* Two-phased constructor.
hgs
parents:
diff changeset
    48
		* @see NewL
hgs
parents:
diff changeset
    49
		*/
hgs
parents:
diff changeset
    50
		IMPORT_C static CBSBitmap* NewLC( TInt aBitmapId,
hgs
parents:
diff changeset
    51
								 TInt aBitmapMaskId,
hgs
parents:
diff changeset
    52
								 TInt aSkinIdMajor,
hgs
parents:
diff changeset
    53
								 TInt aSkinIdMinor,
hgs
parents:
diff changeset
    54
								 const TDesC8& aBitmapFileId );
hgs
parents:
diff changeset
    55
hgs
parents:
diff changeset
    56
		// destructor
hgs
parents:
diff changeset
    57
    	IMPORT_C virtual ~CBSBitmap();
hgs
parents:
diff changeset
    58
hgs
parents:
diff changeset
    59
	private:
hgs
parents:
diff changeset
    60
		/**
hgs
parents:
diff changeset
    61
		* @see NewL
hgs
parents:
diff changeset
    62
		*/
hgs
parents:
diff changeset
    63
		CBSBitmap( TInt aBitmapId,
hgs
parents:
diff changeset
    64
				   TInt aBitmapMaskId,
hgs
parents:
diff changeset
    65
				   TInt aSkinIdMajor,
hgs
parents:
diff changeset
    66
				   TInt aSkinIdMinor );
hgs
parents:
diff changeset
    67
hgs
parents:
diff changeset
    68
		/**
hgs
parents:
diff changeset
    69
		* @see NewL
hgs
parents:
diff changeset
    70
		*/
hgs
parents:
diff changeset
    71
    	void ConstructL( const TDesC8& aBitmapFileId );
hgs
parents:
diff changeset
    72
hgs
parents:
diff changeset
    73
	public:
hgs
parents:
diff changeset
    74
		/**
hgs
parents:
diff changeset
    75
		* Getter for bitmap id
hgs
parents:
diff changeset
    76
		* @return the bitmap id
hgs
parents:
diff changeset
    77
		*/
hgs
parents:
diff changeset
    78
		IMPORT_C TInt BitmapId() const;
hgs
parents:
diff changeset
    79
hgs
parents:
diff changeset
    80
		/**
hgs
parents:
diff changeset
    81
		* Getter for bitmap mask id
hgs
parents:
diff changeset
    82
		* @return the bitmap mask id
hgs
parents:
diff changeset
    83
		*/
hgs
parents:
diff changeset
    84
		IMPORT_C TInt BitmapMaskId() const;
hgs
parents:
diff changeset
    85
hgs
parents:
diff changeset
    86
		/**
hgs
parents:
diff changeset
    87
		* Getter for skin id
hgs
parents:
diff changeset
    88
		* @return the skin id
hgs
parents:
diff changeset
    89
		*/
hgs
parents:
diff changeset
    90
		IMPORT_C TInt SkinIdMajor() const;
hgs
parents:
diff changeset
    91
hgs
parents:
diff changeset
    92
		/**
hgs
parents:
diff changeset
    93
		* Getter for skin mask id
hgs
parents:
diff changeset
    94
		* @return the skin mask id
hgs
parents:
diff changeset
    95
		*/
hgs
parents:
diff changeset
    96
		IMPORT_C TInt SkinIdMinor() const;
hgs
parents:
diff changeset
    97
hgs
parents:
diff changeset
    98
		/**
hgs
parents:
diff changeset
    99
		* Getter for bitmap file id
hgs
parents:
diff changeset
   100
		* @return bitmap file id
hgs
parents:
diff changeset
   101
		*/
hgs
parents:
diff changeset
   102
		IMPORT_C const TDesC8& BitmapFileId() const;
hgs
parents:
diff changeset
   103
hgs
parents:
diff changeset
   104
hgs
parents:
diff changeset
   105
	private: // data
hgs
parents:
diff changeset
   106
		TInt	iBitmapId;
hgs
parents:
diff changeset
   107
	    TInt	iBitmapMaskId;
hgs
parents:
diff changeset
   108
	    TInt	iSkinIdMajor;
hgs
parents:
diff changeset
   109
	    TInt	iSkinIdMinor;
hgs
parents:
diff changeset
   110
	    HBufC8*	iBitmapFileId;
hgs
parents:
diff changeset
   111
    };
hgs
parents:
diff changeset
   112
hgs
parents:
diff changeset
   113
#endif      //  __CBSBITMAP_H__
hgs
parents:
diff changeset
   114
hgs
parents:
diff changeset
   115
hgs
parents:
diff changeset
   116
//  END OF FILE
hgs
parents:
diff changeset
   117