--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/idlehomescreen/xmluirendering/uiengine/inc/xnbgcontrol.h Thu Dec 17 08:40:49 2009 +0200
@@ -0,0 +1,112 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Background appearance drawer
+*
+*/
+
+
+#ifndef _XNBGCONTROL_H
+#define _XNBGCONTROL_H
+
+// System includes
+#include <e32base.h>
+#include <coecntrl.h>
+
+// User includes
+
+// Forward declarations
+class CAknsLayeredBackgroundControlContext;
+
+/**
+ * Background appearance drawer
+ *
+ * @ingroup group_xnlayoutengine
+ * @lib xn3layoutengine.lib
+ * @since S60 5.0
+ */
+NONSHARABLE_CLASS( CXnBgControl ) : public CCoeControl
+ {
+public:
+ // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CXnBgControl* NewL();
+
+ /**
+ * Two-phased constructor. Leaving on stack
+ */
+ static CXnBgControl* NewLC();
+
+ /**
+ * Destructor
+ */
+ ~CXnBgControl();
+
+private:
+ // private constructors
+
+ /**
+ * Leaving constructor
+ */
+ void ConstructL();
+
+ /**
+ * C++ default constructor
+ */
+ CXnBgControl();
+
+public:
+ // from CCoeControl
+
+ /**
+ * @see CCoeControl
+ */
+ TInt CountComponentControls() const;
+
+ /**
+ * @see CCoeControl
+ */
+ CCoeControl* ComponentControl( TInt aIndex ) const;
+
+ /**
+ * @see CCoeControl
+ */
+ void SizeChanged();
+
+ /**
+ * @see CCoeControl
+ */
+ void Draw( const TRect& aRect ) const;
+
+ /**
+ * @see CCoeControl
+ */
+ void HandlePointerEventL( const TPointerEvent& aPointerEvent );
+
+public:
+ // new functions
+ void SetCompoundControl( CCoeControl* aControl );
+
+private:
+ // data
+
+ /** Background control context, Owned */
+ CAknsLayeredBackgroundControlContext* iBgContext;
+ /** Compound Control, Not owned */
+ CCoeControl* iControl;
+ };
+
+#endif // _XNBGCONTROL_H