imstutils/imconversationview/imcvuiapp/inc/cimcvappcustomdraw.h
changeset 0 5e5d6b214f4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/imstutils/imconversationview/imcvuiapp/inc/cimcvappcustomdraw.h	Tue Feb 02 10:12:18 2010 +0200
@@ -0,0 +1,90 @@
+/*
+* Copyright (c) 2007-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:  custom class 
+*
+*/
+
+
+#ifndef _CIMCVAPPCUSTOMDRAW_H_
+#define _CIMCVAPPCUSTOMDRAW_H_
+
+//  INCLUDES
+#include <frmtlay.h>
+
+// CLASS DECLARATION
+class CAknsBasicBackgroundControlContext;
+class CCoeControl;
+
+/**
+*  Draws skins for invite viewer
+*/
+class CIMCVAppCustomDraw : public CBase, public MFormCustomDraw
+    {
+    public:  // Constructors and destructor
+
+        /**
+         * Destructor.
+         */
+        virtual ~CIMCVAppCustomDraw();
+
+    public: // New functions
+    
+        /**
+         * Set new viewing rectangle
+         * @param aRect New viewing rectangle
+         * @since 5.0
+         */
+        void SetRect( const TRect& aRect );
+
+        /**
+        * Sets the background graphic of text.
+        *
+        * @param aBgContext  Background context which is used for drawing
+        * @param aParent  Parent from which to get context position
+        * @since 5.0
+        */
+        void SetBackgroundContext( 
+        	CAknsBasicBackgroundControlContext* aBgContext, 
+        		CCoeControl* aParent );
+
+    public: // Functions from base classes
+
+		/**
+		 * @see MFormCustomDraw
+		 */
+        void DrawBackground( const TParam& aParam, const TRgb& aBackground, TRect& aDrawn ) const;
+
+
+    public:
+
+        /**
+         * C++ default constructor.
+         */
+        CIMCVAppCustomDraw( TRect aViewRect );
+
+	private: //Data
+		
+		 // owned, view rect 
+		 TRect iViewRect;
+         
+         // Not owned. pointer to skinned background context
+         CAknsBasicBackgroundControlContext* iBgContext;
+         
+         // Not owned. parent control for drawing the skin in correct place
+         CCoeControl* iParent;
+    };
+
+#endif      // _CIMCVAPPCUSTOMDRAW_H_
+
+// End of File