meetingrequest/mrgui/inc/cmrresponsedialogview.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:11:15 +0300
branchRCL_3
changeset 80 726fba06891a
parent 64 3533d4323edc
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 2009 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:  Response dialog's custom control implementation
*
*/


#ifndef CESMRRESPONSEDIALOGVIEW_H
#define CESMRRESPONSEDIALOGVIEW_H

// INCLUDES
#include <coecntrl.h>

// FORWARD DECLARATIONS
class CAknsBasicBackgroundControlContext;
class CEikRichTextEditor;

/**
* View for response dialog.
*
* @lib esmrgui.lib
*/
NONSHARABLE_CLASS( CESMRResponseDialogView ) : public CCoeControl
    {
public:
    /**
     * Two-phased constructor.
     */
    static CESMRResponseDialogView* NewL();

    /**
     * Destructor.
     */
    ~CESMRResponseDialogView();

    /**
     * Fetches the text written to dialog, Ownership
     * is trasferred
     * @return HBufC Text in buffer
     */
    HBufC* GetTextL();

public:// From CCoeControl
    void Draw(const TRect& aRect) const;
    TInt CountComponentControls() const;
    CCoeControl* ComponentControl( TInt aInd ) const;
    void SetContainerWindowL(const CCoeControl& aContainer);
    TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
    void HandleResourceChange( TInt aType );
    TTypeUid::Ptr MopSupplyObject( TTypeUid aId );
    void SizeChanged();
	TSize MinimumSize();
    
private:    

    CESMRResponseDialogView();
    void ConstructL();
	void SetFontL( const CFont* aFont );
	
private: // Data
    /// Own:
    CEikRichTextEditor* iEditor;
    /// Own: bg context
    CAknsBasicBackgroundControlContext* iBgContext;     
    };

#endif // CESMRRESPONSEDIALOGVIEW_H