|
1 /* |
|
2 * Copyright (c) 2006-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: Declares container control for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CBCTESTLAUNCHERCONTAINER_H |
|
20 #define C_CBCTESTLAUNCHERCONTAINER_H |
|
21 |
|
22 #include <coecntrl.h> |
|
23 #include <eikon.hrh> |
|
24 #include <eikapp.h> |
|
25 |
|
26 #include "BCTestLauncher.hrh" |
|
27 |
|
28 class CAknTitlePane; |
|
29 |
|
30 /** |
|
31 * CBCTestLauncherContainer container control class. |
|
32 */ |
|
33 class CBCTestLauncherContainer : public CCoeControl, |
|
34 public MCoeControlObserver |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 /** |
|
38 * C++ default constructor |
|
39 */ |
|
40 CBCTestLauncherContainer(); |
|
41 |
|
42 /** |
|
43 * Symbian 2nd phase constructor. |
|
44 * @param aRect Frame rectangle for container. |
|
45 */ |
|
46 void ConstructL( const TRect& aRect ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CBCTestLauncherContainer(); |
|
52 |
|
53 public: // New functions |
|
54 |
|
55 /** |
|
56 * Clears the entire screen |
|
57 */ |
|
58 void ClearScreen(); |
|
59 |
|
60 /** |
|
61 * Makes the status pane and cba labels visible |
|
62 */ |
|
63 void RestoreScreen(); |
|
64 void SetSdkVersion(); |
|
65 |
|
66 private: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * From CoeControl,CountComponentControls. |
|
70 * @return amount of component controls, |
|
71 * in this application, this is the |
|
72 * number of progress bars. |
|
73 */ |
|
74 TInt CountComponentControls() const; |
|
75 |
|
76 /** |
|
77 * From CCoeControl,ComponentControl. |
|
78 * @param aIndex each component controls in order |
|
79 * @return Ptr to each component controls |
|
80 */ |
|
81 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
82 |
|
83 /** |
|
84 * From CCoeControl,Draw. |
|
85 * @param aRect Frame rectangle for container |
|
86 */ |
|
87 void Draw( const TRect& aRect ) const; |
|
88 |
|
89 |
|
90 private : // Functions from base classes |
|
91 /** |
|
92 * From MCoeControlObserver |
|
93 * @param aControl each component controls |
|
94 * @param aEventType event type |
|
95 */ |
|
96 void HandleControlEventL( |
|
97 CCoeControl* /*aControl*/, TCoeEvent /*aEventType*/ ); |
|
98 |
|
99 private: //data |
|
100 CAknTitlePane* iTitlePane; |
|
101 CEikButtonGroupContainer* iCba; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // C_CBCTESTLAUNCHERCONTAINER_H |
|
106 |