aknsbasicbackgroundcontrolcontext.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : AknsBasicBackgroundControlContext.h
00004 *  Part of     : Avkon Skins / Skin Library
00005 *  Interface   : ?Interface_category, ?Interface_name
00006 *  Description : Defines a public class CAknsBasicBackgroundControlContext.
00007 *  Version     : ?Version
00008 *
00009 *  Copyright © 2002 Nokia Corporation.
00010 *  This material, including documentation and any related 
00011 *  computer programs, is protected by copyright controlled by 
00012 *  Nokia Corporation. All rights are reserved. Copying, 
00013 *  including reproducing, storing, adapting or translating, any 
00014 *  or all of this material requires the prior written consent of 
00015 *  Nokia Corporation. This material also contains confidential 
00016 *  information which may not be disclosed to others without the 
00017 *  prior written consent of Nokia Corporation.
00018 * ==============================================================================
00019 */
00020 
00021 #ifndef AKNSBASICBACKGROUNDCONTROLCONTEXT_H
00022 #define AKNSBASICBACKGROUNDCONTROLCONTEXT_H
00023 
00024 //  INCLUDES
00025 #include <AknsControlContext.h>
00026 
00027 // FORWARD DECLARATIONS
00028 class TAknsBackground;
00029 
00030 // CLASS DECLARATION
00031 
00043 NONSHARABLE_CLASS(CAknsBasicBackgroundControlContext) : public CBase, 
00044     public MAknsControlContext
00045     {
00046     public:  // Constructors and destructor
00047         
00063         IMPORT_C static CAknsBasicBackgroundControlContext* NewL(
00064             const TAknsItemID& aImageID, const TRect& aRect, 
00065             TBool aParentAbsolute );
00066         
00070         virtual ~CAknsBasicBackgroundControlContext();
00071 
00072     public: // New functions
00073         
00081         IMPORT_C void SetBitmap( const TAknsItemID& aID );
00082 
00090         IMPORT_C void SetRect( const TRect& aRect );
00091 
00100         IMPORT_C void SetParentPos( const TPoint& aPos );
00101 
00112         IMPORT_C void SetParentContext( MAknsControlContext* aParentContext );
00113 
00114     public: // Functions from MAknsControlContext
00115         
00119         TInt SupplySkinParameter( TAknsCCParameter aParam );
00120 
00124         TAny* SupplySkinObject( TAknsCCObject aObject );
00125 
00129         TBool IsCompatibleWithType( const TAknsControlContextType aType ) const;
00130         
00131     protected:
00132 
00136         CAknsBasicBackgroundControlContext();
00137 
00141         void ConstructL( const TRect& aRect, TBool aParentAbsolute,
00142             const TAknsItemID& aImageID );
00143     
00144     protected:  // Data
00145         
00146         TAknsBackground* iLayout; //<! Background layout structure.
00147         MAknsControlContext* iParentContext; //<! Parent context (not owned).
00148 
00149     };
00150 
00151 // AKNSBASICBACKGROUNDCONTROLCONTEXT_H
00152 #endif
00153             
00154 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top