1 /* |
|
2 * Copyright (c) 2007-2008 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: Class header for CWsfAiHelperContainer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_WSFAIHELPERCONTAINER_H |
|
20 #define C_WSFAIHELPERCONTAINER_H |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <coecntrl.h> |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CWsfAiHelperAppUi; |
|
29 class MAknsControlContext; |
|
30 |
|
31 |
|
32 // CLASS DEFINITION |
|
33 /** |
|
34 * The container class for the helper application UI |
|
35 * |
|
36 * @since S60 5.0 |
|
37 * @lib wsfaihelper.exe |
|
38 */ |
|
39 NONSHARABLE_CLASS( CWsfAiHelperContainer ): public CCoeControl |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Second-phase constructor |
|
45 * @since S60 5.0 |
|
46 * @param aRect Dimensions of this container |
|
47 * @param aAppUi Pointer to the AppUi instance (ownership not passed) |
|
48 */ |
|
49 void ConstructL( TRect aRect, CWsfAiHelperAppUi* aAppUi ); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 * @since S60 5.0 |
|
54 */ |
|
55 ~CWsfAiHelperContainer(); |
|
56 |
|
57 |
|
58 public: // from CCoeControl |
|
59 |
|
60 /** |
|
61 * Responds to changes to the size and position of the contents |
|
62 * of this control. |
|
63 * @since S60 5.0 |
|
64 */ |
|
65 void SizeChanged(); |
|
66 |
|
67 /** |
|
68 * Used for scalable ui and landscape support. Handles a change to the |
|
69 * control's resources. |
|
70 * @since S60 5.0 |
|
71 * @param aType The type of change. |
|
72 */ |
|
73 void HandleResourceChange( TInt aType ); |
|
74 |
|
75 |
|
76 private: // from CCoeControl |
|
77 |
|
78 /** |
|
79 * Retrieves an object of the same type as that encapsulated in aId |
|
80 * @since S60 5.0 |
|
81 * @param aId The id of the requested object type |
|
82 * @return Pointer to the requested object |
|
83 */ |
|
84 TTypeUid::Ptr MopSupplyObject( TTypeUid aId ); |
|
85 |
|
86 /** |
|
87 * Draws the control. |
|
88 * @since S60 5.0 |
|
89 * @param aRect The region of the control to be redrawn. |
|
90 */ |
|
91 void Draw( const TRect& aRect ) const; |
|
92 |
|
93 |
|
94 private: // Data |
|
95 |
|
96 /** |
|
97 * Pointer to the AppUi object (not owned) |
|
98 */ |
|
99 CWsfAiHelperAppUi* iAppUi; |
|
100 |
|
101 /** |
|
102 * Pointer to the control context (owned) |
|
103 */ |
|
104 MAknsControlContext* iBackGround; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // C_WSFAIHELPERCONTAINER_H |
|
109 |
|
110 // End of file |
|