imstutils/imconversationview/imcvuiapp/inc/cimcvappcustomdraw.h
branchRCL_3
changeset 28 3104fc151679
parent 27 2b7283837edb
child 29 9a48e301e94b
equal deleted inserted replaced
27:2b7283837edb 28:3104fc151679
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  custom class 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _CIMCVAPPCUSTOMDRAW_H_
       
    20 #define _CIMCVAPPCUSTOMDRAW_H_
       
    21 
       
    22 //  INCLUDES
       
    23 #include <frmtlay.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 class CAknsBasicBackgroundControlContext;
       
    27 class CCoeControl;
       
    28 
       
    29 /**
       
    30 *  Draws skins for invite viewer
       
    31 */
       
    32 class CIMCVAppCustomDraw : public CBase, public MFormCustomDraw
       
    33     {
       
    34     public:  // Constructors and destructor
       
    35 
       
    36         /**
       
    37          * Destructor.
       
    38          */
       
    39         virtual ~CIMCVAppCustomDraw();
       
    40 
       
    41     public: // New functions
       
    42     
       
    43         /**
       
    44          * Set new viewing rectangle
       
    45          * @param aRect New viewing rectangle
       
    46          * @since 5.0
       
    47          */
       
    48         void SetRect( const TRect& aRect );
       
    49 
       
    50         /**
       
    51         * Sets the background graphic of text.
       
    52         *
       
    53         * @param aBgContext  Background context which is used for drawing
       
    54         * @param aParent  Parent from which to get context position
       
    55         * @since 5.0
       
    56         */
       
    57         void SetBackgroundContext( 
       
    58         	CAknsBasicBackgroundControlContext* aBgContext, 
       
    59         		CCoeControl* aParent );
       
    60 
       
    61     public: // Functions from base classes
       
    62 
       
    63 		/**
       
    64 		 * @see MFormCustomDraw
       
    65 		 */
       
    66         void DrawBackground( const TParam& aParam, const TRgb& aBackground, TRect& aDrawn ) const;
       
    67 
       
    68 
       
    69     public:
       
    70 
       
    71         /**
       
    72          * C++ default constructor.
       
    73          */
       
    74         CIMCVAppCustomDraw( TRect aViewRect );
       
    75 
       
    76 	private: //Data
       
    77 		
       
    78 		 // owned, view rect 
       
    79 		 TRect iViewRect;
       
    80          
       
    81          // Not owned. pointer to skinned background context
       
    82          CAknsBasicBackgroundControlContext* iBgContext;
       
    83          
       
    84          // Not owned. parent control for drawing the skin in correct place
       
    85          CCoeControl* iParent;
       
    86     };
       
    87 
       
    88 #endif      // _CIMCVAPPCUSTOMDRAW_H_
       
    89 
       
    90 // End of File