|
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: CListBoxTestControl test class for STIF Test Framework TestScripter. |
|
15 * |
|
16 */ |
|
17 #ifndef LISTBOXTESTCONTROL_H_ |
|
18 #define LISTBOXTESTCONTROL_H_ |
|
19 |
|
20 #include <eiktxlbx.h> |
|
21 |
|
22 class CAknsBasicBackgroundControlContext; |
|
23 |
|
24 class CListBoxTestControl : public CCoeControl, public MCoeControlObserver |
|
25 { |
|
26 public: |
|
27 static CListBoxTestControl* NewL(void); |
|
28 virtual ~CListBoxTestControl(); |
|
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 CEikTextListBox* iListBox; |
|
44 }; |
|
45 |
|
46 |
|
47 #endif /*LISTBOXTESTCONTROL_H_*/ |