|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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: ccoecontrl class to test some functions |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_TESTSDKBUTTONSCONTAINER_H |
|
19 #define C_TESTSDKBUTTONSCONTAINER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <coecntrl.h> |
|
23 #include <eikcmobs.h> |
|
24 |
|
25 /* |
|
26 * A container class has window for test |
|
27 */ |
|
28 class CButtonControl : public CCoeControl, public MEikCommandObserver |
|
29 { |
|
30 public: |
|
31 /* |
|
32 * static NewL function to build this object |
|
33 * */ |
|
34 static CButtonControl* NewL( TRect& aRect ); |
|
35 |
|
36 /* |
|
37 * deconstructor |
|
38 * */ |
|
39 ~CButtonControl(); |
|
40 |
|
41 /* |
|
42 * set component control |
|
43 * */ |
|
44 void SetComponentControlL( CCoeControl* aControl ); |
|
45 |
|
46 /* |
|
47 * unset component control |
|
48 * */ |
|
49 void ResetComponentControl(); |
|
50 |
|
51 /* |
|
52 * ActivateGc for winserver9 error |
|
53 * */ |
|
54 void ActivateGc(); |
|
55 |
|
56 /* |
|
57 * DeactivateGc for winserver9 error |
|
58 * */ |
|
59 void DeactivateGc(); |
|
60 |
|
61 private: |
|
62 /* |
|
63 * constructor |
|
64 * */ |
|
65 CButtonControl(); |
|
66 |
|
67 /* |
|
68 * 2rd phase constructor |
|
69 * */ |
|
70 void ConstructL( TRect& aRect ); |
|
71 |
|
72 /* |
|
73 * for components |
|
74 * */ |
|
75 TInt CountComponentControls() const; |
|
76 |
|
77 /* |
|
78 * for components |
|
79 * */ |
|
80 CCoeControl *ComponentControl( TInt aIndex ) const; |
|
81 |
|
82 /* |
|
83 * from MEikCommandObserver |
|
84 * */ |
|
85 void ProcessCommandL( TInt aCommandId ); |
|
86 |
|
87 private: |
|
88 // Data |
|
89 /* |
|
90 * Not own, for component control |
|
91 * */ |
|
92 CCoeControl* iControl; |
|
93 }; |
|
94 |
|
95 #endif /*C_TESTSDKBUTTONSCONTAINER_H*/ |