|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Can be used to show "Send" list query and to create and send |
|
15 * messages via available sending services. Created messages are |
|
16 * sent directly or message editor is opened for editing, |
|
17 * depending on the type of the selected service. |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 // INCLUDE FILES |
|
25 #include <sendui.h> |
|
26 #include "SendUiImpl.h" |
|
27 |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CSendUi::CSendUi |
|
33 // C++ default constructor can NOT contain any code, that |
|
34 // might leave. |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CSendUi::CSendUi() |
|
38 { |
|
39 int i=0; |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CSendUi::ConstructL |
|
44 // Symbian 2nd phase constructor can leave. |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void CSendUi::ConstructL() |
|
48 { |
|
49 iSendUiImpl = CSendUiImpl::NewL(); |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CSendUi::NewL |
|
54 // Two-phased constructor. |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 EXPORT_C CSendUi* CSendUi::NewL() |
|
58 { |
|
59 CSendUi* self = CSendUi::NewLC(); |
|
60 |
|
61 CleanupStack::Pop( self ); |
|
62 |
|
63 return self; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------- |
|
67 // CSendUi::NewLC |
|
68 // Two-phased constructor. |
|
69 // --------------------------------------------------------- |
|
70 // |
|
71 EXPORT_C CSendUi* CSendUi::NewLC() |
|
72 { |
|
73 |
|
74 } |
|
75 |
|
76 // Destructor |
|
77 EXPORT_C CSendUi::~CSendUi() |
|
78 { |
|
79 |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // CSendUi::AddSendMenuItemL |
|
84 // |
|
85 // (other items were commented in a header). |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C void CSendUi::AddSendMenuItemL( |
|
89 CEikMenuPane& aMenuPane, |
|
90 TInt aIndex, |
|
91 TInt aCommandId, |
|
92 TSendingCapabilities aRequiredCapabilities ) |
|
93 { |
|
94 |
|
95 } |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // CSendUi::ShowQueryAndSendL |
|
99 // First shows "Send" pop-up list query and then creates the message. |
|
100 // Editor is launched for editing the message or the message is sent |
|
101 // directly without opening the editor. Functionality depends on the |
|
102 // type of selected sending service. |
|
103 // (other items were commented in a header). |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 EXPORT_C void CSendUi::ShowQueryAndSendL( |
|
107 const CMessageData* aMessageData, |
|
108 TSendingCapabilities aRequiredCapabilities, |
|
109 CArrayFix<TUid>* aServicesToDim, |
|
110 TUid /*aBioTypeUid*/, |
|
111 TBool aLaunchEditorEmbedded, |
|
112 const TDesC& aTitleText ) |
|
113 { |
|
114 |
|
115 } |
|
116 |
|
117 // ----------------------------------------------------------------------------- |
|
118 // CSendUi::ShowSendQueryL |
|
119 // Shows "Send" pop-up list query and returns the user selection. |
|
120 // (other items were commented in a header). |
|
121 // ----------------------------------------------------------------------------- |
|
122 // |
|
123 EXPORT_C TUid CSendUi::ShowSendQueryL( |
|
124 const CMessageData* aMessageData, |
|
125 TSendingCapabilities aRequiredCapabilities, |
|
126 CArrayFix<TUid>* aServicesToDim, |
|
127 const TDesC& aTitleText ) |
|
128 { |
|
129 } |
|
130 |
|
131 // ----------------------------------------------------------------------------- |
|
132 // CSendUi::CreateAndSendMessageL |
|
133 // Creates the message and launches the editor for editing the message |
|
134 // or sends the message directly without opening the editor. |
|
135 // Functionality depends on the type of selected sending service. |
|
136 // (other items were commented in a header). |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 EXPORT_C void CSendUi::CreateAndSendMessageL( |
|
140 TUid aServiceUid, |
|
141 const CMessageData* aMessageData, |
|
142 TUid /*aBioTypeUid*/, |
|
143 TBool aLaunchEditorEmbedded ) |
|
144 { |
|
145 } |
|
146 |
|
147 // ----------------------------------------------------------------------------- |
|
148 // CSendUi::ValidateServiceL |
|
149 // Validates that service is available and has required capabilities. |
|
150 // (other items were commented in a header). |
|
151 // ----------------------------------------------------------------------------- |
|
152 // |
|
153 EXPORT_C TBool CSendUi::ValidateServiceL( |
|
154 TUid aServiceUid, |
|
155 TSendingCapabilities aRequiredCapabilities ) |
|
156 { |
|
157 |
|
158 } |
|
159 |
|
160 // ----------------------------------------------------------------------------- |
|
161 // CSendUi::ServiceCapabilitiesL |
|
162 // Returns sending capabilities of the sending service. |
|
163 // (other items were commented in a header). |
|
164 // ----------------------------------------------------------------------------- |
|
165 // |
|
166 EXPORT_C TInt CSendUi::ServiceCapabilitiesL( |
|
167 TUid aServiceUid, |
|
168 TSendingCapabilities& aServiceCapabilities ) |
|
169 { |
|
170 |
|
171 } |
|
172 |
|
173 // ----------------------------------------------------------------------------- |
|
174 // CSendUi::CanSendBioMessage |
|
175 // Can be used to check if sending of bio message is supported. |
|
176 // (other items were commented in a header). |
|
177 // ----------------------------------------------------------------------------- |
|
178 // |
|
179 EXPORT_C TBool CSendUi::CanSendBioMessage( TUid /*aBioMessageUid*/ ) const |
|
180 { |
|
181 |
|
182 } |
|
183 |
|
184 // ----------------------------------------------------------------------------- |
|
185 // CSendUi::AvailableServicesL |
|
186 // Populates given list with the information about services |
|
187 // provided by specified ECom service provider. |
|
188 // (other items were commented in a header). |
|
189 // ----------------------------------------------------------------------------- |
|
190 // |
|
191 EXPORT_C void CSendUi::AvailableServicesL( |
|
192 RPointerArray<CSendingServiceInfo>& aServiceList, |
|
193 TUid aServiceProvider) |
|
194 { |
|
195 |
|
196 } |
|
197 |
|
198 // ----------------------------------------------------------------------------- |
|
199 // CSendUi::AddTypedMenuItemL |
|
200 // |
|
201 // (other items were commented in a header). |
|
202 // ----------------------------------------------------------------------------- |
|
203 // |
|
204 EXPORT_C void CSendUi::AddTypedMenuItemL( |
|
205 TSendUiMenuType aMenuType, |
|
206 CEikMenuPane& aMenuPane, |
|
207 TInt aIndex, |
|
208 TInt aCommandId, |
|
209 TSendingCapabilities aRequiredCapabilities ) |
|
210 { |
|
211 |
|
212 } |
|
213 |
|
214 // ----------------------------------------------------------------------------- |
|
215 // CSendUi::ShowTypedQueryAndSendL |
|
216 // First shows list query and then creates the message. |
|
217 // Editor is launched for editing the message or the message is sent |
|
218 // directly without opening the editor. Functionality depends on the |
|
219 // type of selected sending service. |
|
220 // (other items were commented in a header). |
|
221 // ----------------------------------------------------------------------------- |
|
222 // |
|
223 EXPORT_C void CSendUi::ShowTypedQueryAndSendL( |
|
224 TSendUiMenuType aMenuType, |
|
225 const CMessageData* aMessageData, |
|
226 TSendingCapabilities aRequiredCapabilities, |
|
227 CArrayFix<TUid>* aServicesToDim, |
|
228 TUid /*aBioTypeUid*/, |
|
229 TBool aLaunchEditorEmbedded, |
|
230 const TDesC& aTitleText ) |
|
231 { |
|
232 iSendUiImpl->ShowTypedQueryAndSendL( |
|
233 aMenuType, |
|
234 aMessageData, |
|
235 aRequiredCapabilities, |
|
236 aServicesToDim, |
|
237 aLaunchEditorEmbedded, |
|
238 aTitleText ); |
|
239 } |
|
240 |
|
241 // ----------------------------------------------------------------------------- |
|
242 // CSendUi::ShowTypedQueryL |
|
243 // Shows list query and returns the user selection. |
|
244 // (other items were commented in a header). |
|
245 // ----------------------------------------------------------------------------- |
|
246 // |
|
247 EXPORT_C TUid CSendUi::ShowTypedQueryL( |
|
248 TSendUiMenuType aMenuType, |
|
249 const CMessageData* aMessageData, |
|
250 TSendingCapabilities aRequiredCapabilities, |
|
251 CArrayFix<TUid>* aServicesToDim, |
|
252 const TDesC& aTitleText ) |
|
253 { |
|
254 return iSendUiImpl->ShowTypedQueryL( |
|
255 aMenuType, |
|
256 aMessageData, |
|
257 aRequiredCapabilities, |
|
258 aServicesToDim, |
|
259 aTitleText ); |
|
260 } |
|
261 |
|
262 // ----------------------------------------------------------------------------- |
|
263 // CSendUi::TechnologyType |
|
264 // |
|
265 // (other items were commented in a header). |
|
266 // ----------------------------------------------------------------------------- |
|
267 // |
|
268 EXPORT_C TUid CSendUi::TechnologyType( TUid aServiceUid ) const |
|
269 { |
|
270 return iSendUiImpl->TechnologyType( aServiceUid ); |
|
271 } |
|
272 |
|
273 |
|
274 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
275 |
|
276 // End of File |
|
277 |