00001 /* 00002 * ============================================================================== 00003 * Name : AknsLayeredBackgroundControlContext.h 00004 * Part of : Avkon Skins / Skin Library 00005 * Interface : ?Interface_category, ?Interface_name 00006 * Description : Defines a concrete public class 00007 * CAknsLayeredBackgroundControlContext. 00008 * Version : ?Version 00009 * 00010 * Copyright © 2002 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================== 00020 */ 00021 00022 #ifndef AKNSLAYEREDBACKGROUNDCONTROLCONTEXT_H 00023 #define AKNSLAYEREDBACKGROUNDCONTROLCONTEXT_H 00024 00025 // INCLUDES 00026 #include <AknsBasicBackgroundControlContext.h> 00027 00028 // CLASS DECLARATION 00029 00041 NONSHARABLE_CLASS(CAknsLayeredBackgroundControlContext) : 00042 public CAknsBasicBackgroundControlContext 00043 { 00044 public: // Constructors and destructor 00045 00064 IMPORT_C static CAknsLayeredBackgroundControlContext* NewL( 00065 const TAknsItemID& aImageID, const TRect& aRect, 00066 const TBool aParentAbsolute, const TInt aNumberOfLayers ); 00067 00071 virtual ~CAknsLayeredBackgroundControlContext(); 00072 00073 public: // New functions 00074 00085 IMPORT_C void SetLayerImage( const TInt aLayer, 00086 const TAknsItemID& aID ); 00087 00098 IMPORT_C void SetLayerRect( const TInt aLayer, 00099 const TRect& aRect ); 00100 00101 public: // From MAknsControlContext 00102 00106 TBool IsCompatibleWithType( const TAknsControlContextType aType ) const; 00107 00108 protected: 00109 00113 CAknsLayeredBackgroundControlContext(); 00114 00118 void ConstructL( const TRect& aRect, const TBool aParentAbsolute, 00119 const TAknsItemID& aImageID, const TInt aNumberOfLayers ); 00120 00121 protected: // Data 00122 00126 TAknsBackground* iLayoutArray; 00127 00131 TInt iLayoutArraySize; 00132 00133 }; 00134 00135 #endif // AKNSLAYEREDBACKGROUNDCONTROLCONTEXT_H 00136 00137 // End of File