imstutils/imconversationview/imcvuiapp/inc/mimcvuiappskinvariant.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 22:41:11 +0200
branchRCL_3
changeset 4 f5911524345e
parent 0 5e5d6b214f4f
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* 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:  skin variation  base class
*
*/


#ifndef MIMCVUIAPPSKINVARIANT_H
#define MIMCVUIAPPSKINVARIANT_H

//  INCLUDES
#include <e32base.h>

// FORWARD DECLARATIONS
class CWindowGc;
class CCoeControl;
class MAknsControlContext;
class CGulIcon;
class TRgb;

// CLASS DECLARATION

/**
*  Interface class for skin variant.
*  @imcvuiapp.exe
*  @since 5.0
*/
class MIMCVUiAppSkinVariant
    {

    public: // New functions
        
       
        /**
        * Clears listbox background.
        * @since 5.0
        * @param aGc, graphics context to draw to.
		* @param aUsedPortionOfViewRect, rect to draw to.
		* @param aContext, skin control context.
        */
		virtual void ClearChatListBoxBackGround( 
		                                CWindowGc& aGc, 
										const TRect& aUsedPortionOfViewRect, 
										MAknsControlContext* aContext ) = 0;
        /**
        * Returns main pane background control context.
        * @since 5.0
        * @return MAknsControlContext, skin control context.
        */
		virtual MAknsControlContext* MainPaneBackgroundContext() const = 0;
	
		/**
		* Update layout for skinvariant
		* @return None
		*/
		virtual void UpdateLayout() = 0;

        /**
        * Draws skinned version of the message editor.
        * @since 5.0
        * @param aGc, graphics context.
		* @param aParentRect, rects needed for drawing
		* @param aEditorRect
		* @param aOutlineRect
        * @return TBool, whether skins were drawn or not.
        */
		virtual TBool DrawSkinnedEditor( const CCoeControl* aControl, 
										CWindowGc& aGc, 
										TRect& aParentRect, 
										TRect& aEditorRect, 
										TRect& aOutlineRect ) = 0;
										
		 /**
        * Loads skinned/normal IM application bitmaps.
        * @since 1.2s
        * @param aBitmapId, bitmap id
        * @param aMaskId, bitmap mask's id
        * @param aFullPath, bitmap path
        * @param aOverrideBrand, if true, bitmap is got from skins, not through
        *               brand bitmaps (if brand is active)
        * @param aCustomColor  If provided, will change the color of the bitmap
        *                      to this color.
        * @return CGulIcon, created icon, user of this method gets the ownership
        */
        virtual CGulIcon* LoadBitmapL( TInt aBitmapId, TInt aMaskId,
                                       const TDesC& aFullPath,
                                       TBool aOverrideBrand = EFalse,
                                       TRgb* aCustomColor = NULL ) = 0;
                                       
		/**
		* virtual destructor
		*/
     	virtual ~MIMCVUiAppSkinVariant() 
		     {
		     	
		     }

    };

#endif      // MIMCVUIAPPSKINVARIANT_H  
            
// End of File