|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 #ifndef __TMULTIPTRTESTCHILDCONTROL_H__ |
|
18 #define __TMULTIPTRTESTCHILDCONTROL_H__ |
|
19 |
|
20 #include "tmultiptrtestcontrol.h" |
|
21 #include "tconemultiptrcompoundstep.h" |
|
22 |
|
23 |
|
24 class CMultiPtrTestChildControl : public CMultiPtrTestControlBase |
|
25 { |
|
26 public: |
|
27 CMultiPtrTestChildControl(); |
|
28 ~CMultiPtrTestChildControl(); |
|
29 void ConstructL( const TDesC& aName ); |
|
30 |
|
31 const TDesC& WhoAmI() const; |
|
32 // From CCoeControl |
|
33 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
34 |
|
35 // From CMultiPtrTestControlBase |
|
36 void NotifyControlL( TInt aNotify ); |
|
37 |
|
38 void SetAppUiCallback( TBool aCallback = ETrue ); |
|
39 |
|
40 protected: |
|
41 void WriteName( CWindowGc& aGc, const TDesC& aText ) const; |
|
42 void ConstructL(); |
|
43 |
|
44 private: |
|
45 void Draw(const TRect& aRect) const; |
|
46 |
|
47 protected: |
|
48 HBufC* iName; |
|
49 TBool iDoAppUiCallback; |
|
50 |
|
51 private: |
|
52 CFont* iFont; |
|
53 CConeMultiPtrCompoundTestAppUi* iAppUi; |
|
54 }; |
|
55 |
|
56 #endif // __TMULTIPTRTESTCHILDCONTROL_H__ |