aknslistboxbackgroundcontrolcontext.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : AknsListBoxBackgroundControlContext.h
00004 *  Part of     : Avkon Skins / Skin Library
00005 *  Interface   : ?Interface_category, ?Interface_name
00006 *  Description : Defines a concrete public class 
00007 *                CAknsListBoxBackgroundControlContext.
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 AKNSLISTBOXBACKGROUNDCONTROLCONTEXT_H
00023 #define AKNSLISTBOXBACKGROUNDCONTROLCONTEXT_H
00024 
00025 //  INCLUDES
00026 #include <AknsBasicBackgroundControlContext.h>
00027 
00028 // CLASS DECLARATION
00029 
00043 NONSHARABLE_CLASS(CAknsListBoxBackgroundControlContext) : 
00044     public CAknsBasicBackgroundControlContext
00045     {
00046     public:  // Constructors and destructor
00047         
00069         IMPORT_C static CAknsListBoxBackgroundControlContext* NewL(
00070             const TAknsItemID& aImageID, const TRect& aRect, 
00071             const TBool aParentAbsolute, const TAknsItemID& aTiledBitmapID,
00072             const TRect& aTiledRect );
00073         
00077         virtual ~CAknsListBoxBackgroundControlContext();
00078 
00079     public: // New functions
00080         
00088         IMPORT_C void SetTiledBitmap( const TAknsItemID& aID );
00089 
00097         IMPORT_C void SetTiledRect( const TRect& aRect );
00098 
00106         IMPORT_C void SetBottomBitmap( const TAknsItemID& aID );
00107 
00115         IMPORT_C void SetBottomRect( const TRect& aRect );
00116 
00117     public: // From MAknsControlContext
00118 
00122         TBool IsCompatibleWithType( const TAknsControlContextType aType ) const;
00123 
00136         TInt UpdateContext();
00137         
00138     protected:
00139 
00143         CAknsListBoxBackgroundControlContext();
00144 
00148         void ConstructL( const TRect& aRect, const TBool aParentAbsolute,
00149             const TAknsItemID& aImageID,
00150             const TAknsItemID& aTiledBitmapID, const TRect& aTiledRect );
00151     
00152     protected:  // Data
00153         
00157         TAknsBackground* iTiledLayout;
00158 
00162         TAknsBackground* iBottomLayout;
00163 
00164     };
00165 
00166 // AKNSLISTBOXBACKGROUNDCONTROLCONTEXT_H
00167 #endif
00168             
00169 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top