|
1 /* |
|
2 * Copyright (c) 2005 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: Datasync app view container |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef NSMLDSSYNC_CONTAINER_H |
|
20 #define NSMLDSSYNC_CONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 |
|
29 /** |
|
30 * Class CNSmlDSSyncContainer. |
|
31 * |
|
32 */ |
|
33 class CNSmlDSSyncContainer : public CCoeControl, MCoeControlObserver |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * By default Symbian OS constructor is private. |
|
39 */ |
|
40 void ConstructL(const TRect& aRect); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CNSmlDSSyncContainer(); |
|
46 |
|
47 private: // Functions from base classes |
|
48 |
|
49 /** |
|
50 * From CoeControl,SizeChanged. |
|
51 * @param None. |
|
52 * @return None. |
|
53 */ |
|
54 void SizeChanged(); |
|
55 |
|
56 /** |
|
57 * From CoeControl,CountComponentControls. |
|
58 * @param None. |
|
59 * @return Component count. |
|
60 */ |
|
61 TInt CountComponentControls() const; |
|
62 |
|
63 /** |
|
64 * From CCoeControl,ComponentControl. |
|
65 * @param aIndex. |
|
66 * @return CCoeControl. |
|
67 */ |
|
68 CCoeControl* ComponentControl(TInt aIndex) const; |
|
69 |
|
70 /** |
|
71 * From CCoeControl,Draw. |
|
72 * @param aEventType The type of control event |
|
73 * @return None |
|
74 */ |
|
75 void Draw(const TRect& aRect) const; |
|
76 |
|
77 /** |
|
78 * From MCoeControlObserver |
|
79 * Acts upon changes in the hosted control's state. |
|
80 * @param aControl The control changing its state |
|
81 * @param aEventType The type of control event |
|
82 * @return None |
|
83 */ |
|
84 void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType); |
|
85 |
|
86 /** |
|
87 * From base class. |
|
88 * Called when UI layout changes. |
|
89 * @param aType. |
|
90 * @return None. |
|
91 */ |
|
92 void HandleResourceChange(TInt aType); |
|
93 }; |
|
94 |
|
95 |
|
96 #endif // NSMLDSSYNC_CONTAINER_H |
|
97 |
|
98 |
|
99 |
|
100 // End of File |