meetingrequest/mrgui/inc/cmrresponsedialogview.h
changeset 0 8466d47a6819
child 12 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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:  Response dialog's custom control implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRRESPONSEDIALOGVIEW_H
       
    20 #define CESMRRESPONSEDIALOGVIEW_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <coecntrl.h>
       
    24 #include <eiksbfrm.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CAknsBasicBackgroundControlContext;
       
    28 class CEikRichTextEditor;
       
    29 
       
    30 /**
       
    31 * View for response dialog.
       
    32 *
       
    33 * @lib esmrgui.lib
       
    34 */
       
    35 NONSHARABLE_CLASS( CESMRResponseDialogView ) : public CCoeControl
       
    36     {
       
    37 public:
       
    38     /**
       
    39      * Two-phased constructor.
       
    40      */
       
    41     static CESMRResponseDialogView* NewL();
       
    42 
       
    43     /**
       
    44      * Destructor.
       
    45      */
       
    46     ~CESMRResponseDialogView();
       
    47 
       
    48     /**
       
    49      * Fetches the text written to dialog, Ownership
       
    50      * is trasferred
       
    51      * @return HBufC Text in buffer
       
    52      */
       
    53     HBufC* GetTextL();
       
    54 
       
    55 public:// From CCoeControl
       
    56     void Draw(const TRect& aRect) const;
       
    57     TInt CountComponentControls() const;
       
    58     CCoeControl* ComponentControl( TInt aInd ) const;
       
    59     void SetContainerWindowL(const CCoeControl& aContainer);
       
    60     TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
       
    61     void HandleResourceChange( TInt aType );
       
    62     TTypeUid::Ptr MopSupplyObject( TTypeUid aId );
       
    63     void SizeChanged();
       
    64     TSize MinimumSize();
       
    65     void SetFontColorL();
       
    66     
       
    67 private:    
       
    68 
       
    69     CESMRResponseDialogView();
       
    70     void ConstructL();
       
    71 private: // Data
       
    72     /// Own:
       
    73     CEikRichTextEditor* iEditor;
       
    74     /// Own: bg context
       
    75     CAknsBasicBackgroundControlContext* iBgContext;     
       
    76     
       
    77     CEikScrollBarFrame* iScrollBarFrame;
       
    78     };
       
    79 
       
    80 #endif // CESMRRESPONSEDIALOGVIEW_H