mmappfw_plat/mpx_common_api/tsrc/ui_commontestclass/inc/EdwinTestControl.h
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 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:
       
    15 *
       
    16 */
       
    17 #ifndef EDWINTESTCONTROL_H_
       
    18 #define EDWINTESTCONTROL_H_
       
    19 
       
    20 #include <eikedwin.h>
       
    21 
       
    22 class CAknsBasicBackgroundControlContext;
       
    23 
       
    24 class CEdwinTestControl : public CCoeControl, public MCoeControlObserver
       
    25     {
       
    26 public:
       
    27 	static CEdwinTestControl* NewL(void);
       
    28 	virtual ~CEdwinTestControl();
       
    29 protected:
       
    30 	TTypeUid::Ptr MopSupplyObject(TTypeUid aId); // 
       
    31 private:
       
    32 	virtual void SizeChanged();
       
    33 	virtual void HandleResourceChange(TInt aType);
       
    34 	virtual TInt CountComponentControls() const;
       
    35 	virtual CCoeControl* ComponentControl(TInt aIndex) const;
       
    36     void ConstructL(void);
       
    37 	void Draw(const TRect& aRect) const;
       
    38 	
       
    39 	void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType);
       
    40 	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType );	
       
    41 private:
       
    42 	CAknsBasicBackgroundControlContext*	iBgContext; 
       
    43 	CEikEdwin* iEditWin;
       
    44 };
       
    45 
       
    46 
       
    47 #endif /*EDWINTESTCONTROL_H_*/