1 /* |
1 /* |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
89 */ |
89 */ |
90 enum TActionMenuCustomItemId |
90 enum TActionMenuCustomItemId |
91 { |
91 { |
92 FsEActionMenuDismissed = -10, |
92 FsEActionMenuDismissed = -10, |
93 FsEActionMenuCasItemSelectedAndExecuted, |
93 FsEActionMenuCasItemSelectedAndExecuted, |
94 |
94 |
95 FsEActionMenuOpen = 1, |
95 FsEActionMenuOpen = 1, |
96 FsEActionMenuOpenCalendarEvent, |
96 FsEActionMenuOpenCalendarEvent, |
97 FsEActionMenuReply, |
97 FsEActionMenuReply, |
98 FsEActionMenuReplyAll, |
98 FsEActionMenuReplyAll, |
99 FsEActionMenuForward, |
99 FsEActionMenuForward, |
168 |
168 |
169 |
169 |
170 /** |
170 /** |
171 * Settings launch modes |
171 * Settings launch modes |
172 */ |
172 */ |
173 enum TMailSettingsLaunchMode |
173 enum TMailSettingsLaunchMode |
174 { |
174 { |
175 KMailSettingsOpenMainList = 0x112, |
175 KMailSettingsOpenMainList = 0x112, |
176 KMailSettingsOpenMailboxSettings, |
176 KMailSettingsOpenMailboxSettings, |
177 KMailSettingsOpenGlobalSettings, |
177 KMailSettingsOpenGlobalSettings, |
178 KMailSettingsOpenServiceSettings, |
178 KMailSettingsOpenServiceSettings, |
180 KMailSettingsReturnFromPluginSettings, |
180 KMailSettingsReturnFromPluginSettings, |
181 KOpenMailSettingsFromGS, |
181 KOpenMailSettingsFromGS, |
182 KMailSettingsOpenPluginSettings |
182 KMailSettingsOpenPluginSettings |
183 }; |
183 }; |
184 |
184 |
185 |
185 |
186 /** |
186 /** |
187 * editor launch modes |
187 * editor launch modes |
188 */ |
188 */ |
189 enum TEditorLaunchMode |
189 enum TEditorLaunchMode |
190 { |
190 { |
191 KEditorCmdCreateNew, |
191 KEditorCmdCreateNew, |
192 KEditorCmdReply, |
192 KEditorCmdReply, |
193 KEditorCmdReplyAll, |
193 KEditorCmdReplyAll, |
194 KEditorCmdForward, |
194 KEditorCmdForward, |
238 HBufC* iSmartTag; // smart reply/forward tag, ownership stays in UI |
238 HBufC* iSmartTag; // smart reply/forward tag, ownership stays in UI |
239 }; |
239 }; |
240 |
240 |
241 /** |
241 /** |
242 * List launch parameters |
242 * List launch parameters |
243 * Use iRequestRefresh = ETrue to force list refresh when using |
243 * Use iRequestRefresh = ETrue to force list refresh when using |
244 * KStartListReturnToPreviousFolder parameter. |
244 * KStartListReturnToPreviousFolder parameter. |
245 */ |
245 */ |
246 static const TUid KStartListWithFolderId = { 1 }; |
246 static const TUid KStartListWithFolderId = { 1 }; |
247 static const TUid KStartListReturnToPreviousFolder = { 2 }; |
247 static const TUid KStartListReturnToPreviousFolder = { 2 }; |
|
248 static const TUid KStartListWithFolderIdFromHomeScreen = { 3 }; |
248 |
249 |
249 class TMailListActivationData |
250 class TMailListActivationData |
250 { |
251 { |
251 public: // constructor |
252 public: // constructor |
252 inline TMailListActivationData() |
253 inline TMailListActivationData() |
253 : iMailBoxId(), iFolderId(), iRequestRefresh(EFalse), iReturnAfterWizard(EFalse) |
254 : iMailBoxId(), iFolderId(), iRequestRefresh(EFalse), iReturnAfterWizard(EFalse) |
254 { |
255 { |
255 // no implementation needed |
256 // no implementation needed |
256 } |
257 } |
257 |
258 |
258 public: // data |
259 public: // data |
259 TFSMailMsgId iMailBoxId; |
260 TFSMailMsgId iMailBoxId; |
260 TFSMailMsgId iFolderId; |
261 TFSMailMsgId iFolderId; |
261 TBool iRequestRefresh; |
262 TBool iRequestRefresh; |
262 TBool iReturnAfterWizard; |
263 TBool iReturnAfterWizard; |
263 }; |
264 }; |
266 * Viewer launch parameters |
267 * Viewer launch parameters |
267 */ |
268 */ |
268 class TMsgViewerActivationData |
269 class TMsgViewerActivationData |
269 { |
270 { |
270 public: // construction |
271 public: // construction |
271 inline TMsgViewerActivationData() |
272 inline TMsgViewerActivationData() |
272 : iMailBoxId(), |
273 : iMailBoxId(), |
273 iFolderId(), |
274 iFolderId(), |
274 iMessageId(), |
275 iMessageId(), |
275 iDetails( EFSMsgDataEnvelope ), |
276 iDetails( EFSMsgDataEnvelope ), |
276 iEmbeddedMessage( NULL ) |
277 iEmbeddedMessage( NULL ) |
277 {} |
278 {} |
278 |
279 |
279 public: // members |
280 public: // members |
280 TFSMailMsgId iMailBoxId; |
281 TFSMailMsgId iMailBoxId; |
281 TFSMailMsgId iFolderId; |
282 TFSMailMsgId iFolderId; |
282 TFSMailMsgId iMessageId; |
283 TFSMailMsgId iMessageId; |
283 TFSMailDetails iDetails; |
284 TFSMailDetails iDetails; |
284 CFSMailMessage* iEmbeddedMessage; |
285 CFSMailMessage* iEmbeddedMessage; |
299 class TSearchListActivationData |
300 class TSearchListActivationData |
300 { |
301 { |
301 public: // construction |
302 public: // construction |
302 inline TSearchListActivationData() |
303 inline TSearchListActivationData() |
303 : iMailBoxId(), iFolderId() {} |
304 : iMailBoxId(), iFolderId() {} |
304 |
305 |
305 public: // members |
306 public: // members |
306 TFSMailMsgId iMailBoxId; |
307 TFSMailMsgId iMailBoxId; |
307 TFSMailMsgId iFolderId; |
308 TFSMailMsgId iFolderId; |
308 }; |
309 }; |
309 |
310 |
310 /** |
311 /** |
326 // Only with this option embedded pictures are shown. |
327 // Only with this option embedded pictures are shown. |
327 }; |
328 }; |
328 |
329 |
329 public: // methods |
330 public: // methods |
330 // default constructor |
331 // default constructor |
331 inline THtmlViewerActivationData() |
332 inline THtmlViewerActivationData() |
332 : iActivationDataType( EMailMessage ), |
333 : iActivationDataType( EMailMessage ), |
333 iMailBoxId(), |
334 iMailBoxId(), |
334 iFolderId(), |
335 iFolderId(), |
335 iMessageId(), |
336 iMessageId(), |
336 iFile(), |
337 iFile(), |
337 iFileName( KNullDesC ), |
338 iFileName( KNullDesC ), |
338 iUrl( KNullDesC ), |
339 iUrl( KNullDesC ), |
339 iEmbeddedMessage( NULL ), |
340 iEmbeddedMessage( NULL ), |
340 iEmbeddedMessageMode( EFalse ) {} |
341 iEmbeddedMessageMode( EFalse ) {} |
341 |
342 |
342 // substitution operator |
343 // substitution operator |
343 inline THtmlViewerActivationData& operator=( const THtmlViewerActivationData& aAnother ) |
344 inline THtmlViewerActivationData& operator=( const THtmlViewerActivationData& aAnother ) |
344 { |
345 { |
345 if ( this != &aAnother ) |
346 if ( this != &aAnother ) |
346 { |
347 { |
354 iEmbeddedMessage = aAnother.iEmbeddedMessage; |
355 iEmbeddedMessage = aAnother.iEmbeddedMessage; |
355 iEmbeddedMessageMode = aAnother.iEmbeddedMessageMode; |
356 iEmbeddedMessageMode = aAnother.iEmbeddedMessageMode; |
356 } |
357 } |
357 return *this; |
358 return *this; |
358 } |
359 } |
359 |
360 |
360 public: // members |
361 public: // members |
361 TActivationDataType iActivationDataType; |
362 TActivationDataType iActivationDataType; |
362 TFSMailMsgId iMailBoxId; // Mail box ID of the message used in activation. |
363 TFSMailMsgId iMailBoxId; // Mail box ID of the message used in activation. |
363 TFSMailMsgId iFolderId; // Folder ID of the message used in activation. |
364 TFSMailMsgId iFolderId; // Folder ID of the message used in activation. |
364 TFSMailMsgId iMessageId; // Message ID of the message used in activation. |
365 TFSMailMsgId iMessageId; // Message ID of the message used in activation. |
365 RFile iFile; // HTML file to be shown. |
366 RFile iFile; // HTML file to be shown. |
375 class TAttachmentListActivationData |
376 class TAttachmentListActivationData |
376 { |
377 { |
377 public: // construction |
378 public: // construction |
378 inline TAttachmentListActivationData() |
379 inline TAttachmentListActivationData() |
379 : iMailBoxId(), iFolderId(), iMessageId(), iDetails(EFSMsgDataEnvelope), iEmbeddedMsgMode(EFalse) {} |
380 : iMailBoxId(), iFolderId(), iMessageId(), iDetails(EFSMsgDataEnvelope), iEmbeddedMsgMode(EFalse) {} |
380 |
381 |
381 public: // members |
382 public: // members |
382 TFSMailMsgId iMailBoxId; |
383 TFSMailMsgId iMailBoxId; |
383 TFSMailMsgId iFolderId; |
384 TFSMailMsgId iFolderId; |
384 TFSMailMsgId iMessageId; |
385 TFSMailMsgId iMessageId; |
385 TFSMailDetails iDetails; |
386 TFSMailDetails iDetails; |
386 TBool iEmbeddedMsgMode; |
387 TBool iEmbeddedMsgMode; |
419 class TFolderListActivationData |
420 class TFolderListActivationData |
420 { |
421 { |
421 public: // construction |
422 public: // construction |
422 inline TFolderListActivationData() |
423 inline TFolderListActivationData() |
423 : iSourceFolderType( EFSOther ), iCallback( NULL ) {} |
424 : iSourceFolderType( EFSOther ), iCallback( NULL ) {} |
424 |
425 |
425 public: // members |
426 public: // members |
426 // Type of the source folder in case of move or copy |
427 // Type of the source folder in case of move or copy |
427 TFSFolderType iSourceFolderType; |
428 TFSFolderType iSourceFolderType; |
428 |
429 |
429 // Call back used to inform the folder selection query result |
430 // Call back used to inform the folder selection query result |
430 MFSEmailUiFolderListCallback* iCallback; |
431 MFSEmailUiFolderListCallback* iCallback; |
431 }; |
432 }; |
432 |
433 |
433 /** |
434 /** |
438 public: // data |
439 public: // data |
439 TFSMailMsgId iMailBoxId; |
440 TFSMailMsgId iMailBoxId; |
440 TFSMailMsgId iFolderId; |
441 TFSMailMsgId iFolderId; |
441 TFSMailMsgId iMessageId; |
442 TFSMailMsgId iMessageId; |
442 TFSMailMsgId iMessagePartId; |
443 TFSMailMsgId iMessagePartId; |
443 |
444 |
444 public: // methods |
445 public: // methods |
445 // default constructor initializes all IDs as NULL ID |
446 // default constructor initializes all IDs as NULL ID |
446 inline TPartData() |
447 inline TPartData() |
447 : iMailBoxId(), iFolderId(), iMessageId(), iMessagePartId() |
448 : iMailBoxId(), iFolderId(), iMessageId(), iMessagePartId() |
448 { |
449 { |
449 } |
450 } |
450 |
451 |
451 // construction with initial data |
452 // construction with initial data |
452 inline TPartData( TFSMailMsgId aMailBoxId, TFSMailMsgId aFolderId, |
453 inline TPartData( TFSMailMsgId aMailBoxId, TFSMailMsgId aFolderId, |
453 TFSMailMsgId aMessageId, TFSMailMsgId aMessagePartId ) |
454 TFSMailMsgId aMessageId, TFSMailMsgId aMessagePartId ) |
454 : iMailBoxId( aMailBoxId ), iFolderId( aFolderId ), |
455 : iMailBoxId( aMailBoxId ), iFolderId( aFolderId ), |
455 iMessageId( aMessageId ), iMessagePartId( aMessagePartId ) |
456 iMessageId( aMessageId ), iMessagePartId( aMessagePartId ) |
456 { |
457 { |
457 } |
458 } |
458 |
459 |
459 // construction with initial data except messagePartId |
460 // construction with initial data except messagePartId |
460 inline TPartData( TFSMailMsgId aMailBoxId, TFSMailMsgId aFolderId, TFSMailMsgId aMessageId ) |
461 inline TPartData( TFSMailMsgId aMailBoxId, TFSMailMsgId aFolderId, TFSMailMsgId aMessageId ) |
461 : iMailBoxId( aMailBoxId ), iFolderId( aFolderId ), |
462 : iMailBoxId( aMailBoxId ), iFolderId( aFolderId ), |
462 iMessageId( aMessageId ), iMessagePartId() |
463 iMessageId( aMessageId ), iMessagePartId() |
463 { |
464 { |
464 } |
465 } |
465 |
466 |
466 // equality operator |
467 // equality operator |
467 inline TBool operator==( const TPartData& aPart ) const |
468 inline TBool operator==( const TPartData& aPart ) const |
468 { |
469 { |
469 return ( iMailBoxId==aPart.iMailBoxId && iFolderId==aPart.iFolderId && |
470 return ( iMailBoxId==aPart.iMailBoxId && iFolderId==aPart.iFolderId && |
470 iMessageId==aPart.iMessageId && iMessagePartId==aPart.iMessagePartId ); |
471 iMessageId==aPart.iMessageId && iMessagePartId==aPart.iMessagePartId ); |
471 } |
472 } |
472 }; |
473 }; |
491 * UID for launching browser |
492 * UID for launching browser |
492 */ |
493 */ |
493 static const TInt KBrowserUid = 0x10008D39; |
494 static const TInt KBrowserUid = 0x10008D39; |
494 |
495 |
495 /** |
496 /** |
496 * UID for identifying Message Reader in the taskList |
497 * UID for identifying Message Reader in the taskList |
497 */ |
498 */ |
498 static const TUid KMessageReaderUid = { 0x10201B00 }; |
499 static const TUid KMessageReaderUid = { 0x10201B00 }; |
499 |
500 |
500 /** |
501 /** |
501 * UIDs for identifying Homescreen Modes application and its Email view |
502 * UIDs for identifying Homescreen Modes application and its Email view |