|
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: The MUS application's UI class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUIRECEIVECONTAINER_H |
|
21 #define MUSUIRECEIVECONTAINER_H |
|
22 |
|
23 #include "musuiviewcontainer.h" |
|
24 |
|
25 class MAknsControlContext; |
|
26 class CMusUiGeneralView; |
|
27 class CMusUiInvitationQuery; |
|
28 class MMusUiInvitationQueryObserver; |
|
29 class CMusUiReceiveView; |
|
30 |
|
31 /** |
|
32 * |
|
33 * |
|
34 */ |
|
35 class CMusUiReceiveContainer : public CMusUiViewContainer |
|
36 { |
|
37 |
|
38 public: // constructors and destructor |
|
39 |
|
40 /** |
|
41 * Public constructor. |
|
42 */ |
|
43 static CMusUiReceiveContainer* NewL( CMusUiReceiveView& aView, |
|
44 TRect aRect ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 ~CMusUiReceiveContainer(); |
|
50 |
|
51 |
|
52 private: // hidden constructors |
|
53 |
|
54 /** |
|
55 * C++ Constructor |
|
56 */ |
|
57 CMusUiReceiveContainer( CMusUiReceiveView& aView ); |
|
58 |
|
59 /** |
|
60 * Symbian second-phase constructor. |
|
61 * |
|
62 * @param aView Parent view of container. |
|
63 * @param aRect Frame rectangle for container. |
|
64 * @param aInputParams Packaged data. |
|
65 */ |
|
66 void ConstructL( const TRect& aRect ); |
|
67 |
|
68 protected: // data |
|
69 |
|
70 /** |
|
71 * ETrue if operator specific functionality is needed |
|
72 */ |
|
73 TBool iOperatorSpecificFunctionality; |
|
74 |
|
75 public: // new functions |
|
76 |
|
77 /** |
|
78 * Shows an invitation query. |
|
79 */ |
|
80 void ShowInvitationQueryL( const TDesC& aContact, |
|
81 MMusUiInvitationQueryObserver& aObserver ); |
|
82 |
|
83 /** |
|
84 * |
|
85 */ |
|
86 void DismissInvitationQuery( TBool aDelete ); |
|
87 |
|
88 /** |
|
89 * Return pointer to view class. User needs to type cast to |
|
90 * appropriate concrete view class. |
|
91 * |
|
92 * @return handle to view |
|
93 */ |
|
94 CMusUiGeneralView* MusUiView() const; |
|
95 |
|
96 |
|
97 void SetFullScreen( TBool aFullScreen, TRect aRect ); |
|
98 |
|
99 |
|
100 private: // from base class CCoeControl |
|
101 |
|
102 /** |
|
103 * |
|
104 */ |
|
105 virtual void SizeChanged(); |
|
106 |
|
107 /** |
|
108 * Returns the number of control contained by this class. |
|
109 * |
|
110 * @return Number of controls contained |
|
111 */ |
|
112 virtual TInt CountComponentControls() const; |
|
113 |
|
114 /** |
|
115 * Returns handle to control pointed by aIndex. |
|
116 * |
|
117 * @param aIndex Wanted control's index [0..n] |
|
118 * @return Handle to wanted control |
|
119 */ |
|
120 virtual CCoeControl* ComponentControl( TInt aIndex ) const; |
|
121 |
|
122 /** |
|
123 * Gets called by the application framework when drawing is |
|
124 * needed. |
|
125 * |
|
126 * @param aRect The rectangle that needs to be drawn. |
|
127 */ |
|
128 virtual void Draw( const TRect& aRect ) const; |
|
129 |
|
130 /** |
|
131 * Handles key events. |
|
132 * |
|
133 * @param aEvent The event that occured. |
|
134 * @param aType Type of key event: EEventKey, EEventKeyUp, or |
|
135 * EEventKeyDown. |
|
136 * @return The container's response to event: either |
|
137 * EKeyWasNotConsumed or EKeyWasConsumed. |
|
138 */ |
|
139 virtual TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, |
|
140 TEventCode aType ); |
|
141 |
|
142 /** |
|
143 * Handles pointer events. Will return from full screen mode as a response |
|
144 * to whatever pointer event. |
|
145 * |
|
146 * @param aEvent The event that occured. |
|
147 */ |
|
148 virtual void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
149 |
|
150 |
|
151 private: // data |
|
152 |
|
153 /** A dialog for invitation query (accept/reject). Own.*/ |
|
154 CMusUiInvitationQuery* iInvitationQuery; |
|
155 |
|
156 /** Background skin control context. */ |
|
157 MAknsControlContext* iBackGround; |
|
158 |
|
159 /** Handle to the view that owns of this container. Not own. */ |
|
160 CMusUiGeneralView& iView; |
|
161 |
|
162 TBool iFullScreen; |
|
163 |
|
164 }; |
|
165 |
|
166 |
|
167 #endif // MUSUIRECEIVECONTAINER_H |
|
168 |
|
169 // end of file |