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