aknsitemid.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : AknsItemID.h
00004 *  Part of     : Avkon Skins / Skin Server
00005 *  Description : Defines the item id class used to identify the skin items.
00006 *  Version     : ?Version
00007 *
00008 *  Copyright © 2002-2007 Nokia Corporation.
00009 *  This material, including documentation and any related
00010 *  computer programs, is protected by copyright controlled by
00011 *  Nokia Corporation. All rights are reserved. Copying,
00012 *  including reproducing, storing, adapting or translating, any
00013 *  or all of this material requires the prior written consent of
00014 *  Nokia Corporation. This material also contains confidential
00015 *  information which may not be disclosed to others without the
00016 *  prior written consent of Nokia Corporation.
00017 * ==============================================================================
00018 */
00019 
00020 #ifndef AKNSITEMID_H
00021 #define AKNSITEMID_H
00022 
00023 //  INCLUDES
00024 #include <e32std.h>
00025 #include <e32base.h>
00026 
00027 // DATA TYPES
00028 
00034 enum TAknsItemType
00035     {
00039     EAknsITUnknown      =0,
00040 
00044     EAknsITBitmap       =1,
00045 
00050     EAknsITMaskedBitmap =2,
00051 
00056     EAknsITColorTable   =3,
00057 
00062     EAknsITImageTable   =4,
00063 
00067     EAknsITImage        =5,
00068 
00072     EAknsITBmpAnim      =6,
00073 
00079     EAknsITString       =7,
00080 
00086     EAknsITEffectQueue  =8,
00087 
00091     EAknsITAnimation    =9
00092     };
00093 
00099 enum TAknsImageAttribute
00100     {
00105     EAknsImageAttributeNone     =0x00,
00106 
00112     EAknsImageAttributeCoords   =0x01,
00113 
00119     EAknsImageAttributeSize     =0x02,
00120 
00126     EAknsImageAttributeStretch  =0x04,
00127 
00132     EAknsImageAttributeTile     =0x08,
00133 
00138     EAknsImageAttributeAlign    =0x10,
00139 
00146     EAknsImageAttributeScale    =0x20,
00147 
00152     EAknsImageAttributeTileX    =0x40,
00153 
00158     EAknsImageAttributeTileY    =0x80,
00159 
00166     EAknsImageAttributeNBC     =0x100
00167     };
00168 
00174 enum TAknsImageAlignment
00175     {
00176     EAknsImageAlignNone     =0x00,
00177     EAknsImageAlignVTop     =0x01,
00178     EAknsImageAlignVBottom  =0x02,
00179     EAknsImageAlignVCenter  =0x04,
00180     EAknsImageAlignHLeft    =0x08,
00181     EAknsImageAlignHRight   =0x10,
00182     EAknsImageAlignHCenter  =0x20,
00183     EAknsImageAlignTL       =EAknsImageAlignVTop|EAknsImageAlignHLeft,
00184     EAknsImageAlignTR       =EAknsImageAlignVTop|EAknsImageAlignHRight,
00185     EAknsImageAlignTC       =EAknsImageAlignVTop|EAknsImageAlignHCenter,
00186     EAknsImageAlignBL       =EAknsImageAlignVBottom|EAknsImageAlignHLeft,
00187     EAknsImageAlignBR       =EAknsImageAlignVBottom|EAknsImageAlignHRight,
00188     EAknsImageAlignBC       =EAknsImageAlignVBottom|EAknsImageAlignHCenter,
00189     EAknsImageAlignCL       =EAknsImageAlignVCenter|EAknsImageAlignHLeft,
00190     EAknsImageAlignCR       =EAknsImageAlignVCenter|EAknsImageAlignHRight,
00191     EAknsImageAlignCC       =EAknsImageAlignVCenter|EAknsImageAlignHCenter,
00192     EAknsImageAlignVMask    =EAknsImageAlignVTop|EAknsImageAlignVBottom|
00193                              EAknsImageAlignVCenter,
00194     EAknsImageAlignHMask    =EAknsImageAlignHLeft|EAknsImageAlignHRight|
00195                              EAknsImageAlignHCenter
00196     };
00197 
00198 
00199 // FORWARD DECLARATIONS
00200 
00201 class CFbsBitmap;
00202 
00203 // CLASS DECLARATION
00204 
00216 class TAknsItemID
00217     {
00218     public: // New functions
00219 
00227         inline void Set( const TInt aMajor, const TInt aMinor );
00228 
00237         inline void Set( const TUid aMajor, const TInt aMinor );
00238 
00244         inline void Set( const TAknsItemID& aID );
00245 
00266         IMPORT_C static TInt LinearOrder(
00267             const TAknsItemID& aFirst, const TAknsItemID& aSecond );
00268 
00269     public: // Data
00270 
00271         TInt iMajor;    
00272         TInt iMinor;    
00273 
00274     };
00275 
00276 // DATA TYPES (continued)
00277 
00281 typedef RArray<TAknsItemID> RAknsItemIDArray;
00282 
00283 // FUNCTION PROTOTYPES
00284 
00296 inline TBool operator==( const TAknsItemID& aFirst, const TAknsItemID& aSecond );
00297 
00309 inline TBool operator!=( const TAknsItemID& aFirst, const TAknsItemID& aSecond );
00310 
00311 // INLINED MEMBERS
00312 
00313 #include "AknsItemID.inl"
00314 
00315 // AKNSITEMID_H
00316 #endif
00317 
00318 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top