13 * |
13 * |
14 * Description: email framework user interface |
14 * Description: email framework user interface |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 #include "emailtrace.h" |
|
19 |
18 //<qmail> |
20 //<qmail> |
19 #include <nmcommonheaders.h> |
21 #include <nmcommonheaders.h> |
20 //</qmail> |
22 //</qmail> |
21 |
23 |
22 #include "emailtrace.h" |
|
23 #include "CFSMailClient.h" |
24 #include "CFSMailClient.h" |
24 #include "CFSFWImplementation.h" |
25 #include "CFSFWImplementation.h" |
25 #include "CFSMailPluginManager.h" |
26 #include "CFSMailPluginManager.h" |
26 #include "CFSMailRequestObserver.h" |
27 #include "CFSMailRequestObserver.h" |
27 #include "CFSMailIterator.h" |
28 #include "CFSMailIterator.h" |
32 // ----------------------------------------------------------------------------- |
33 // ----------------------------------------------------------------------------- |
33 // CFSMailClient::NewLC |
34 // CFSMailClient::NewLC |
34 // ----------------------------------------------------------------------------- |
35 // ----------------------------------------------------------------------------- |
35 EXPORT_C CFSMailClient* CFSMailClient::NewLC(TInt aConfiguration) |
36 EXPORT_C CFSMailClient* CFSMailClient::NewLC(TInt aConfiguration) |
36 { |
37 { |
37 FUNC_LOG; |
38 NM_FUNCTION; |
38 |
39 |
39 CFSMailClient* client = Instance(); |
40 CFSMailClient* client = Instance(); |
40 if(!client) |
41 if(!client) |
41 { |
42 { |
42 client = new (ELeave) CFSMailClient(); |
43 client = new (ELeave) CFSMailClient(); |
59 // ----------------------------------------------------------------------------- |
60 // ----------------------------------------------------------------------------- |
60 // CFSMailClient::NewL |
61 // CFSMailClient::NewL |
61 // ----------------------------------------------------------------------------- |
62 // ----------------------------------------------------------------------------- |
62 EXPORT_C CFSMailClient* CFSMailClient::NewL() |
63 EXPORT_C CFSMailClient* CFSMailClient::NewL() |
63 { |
64 { |
64 FUNC_LOG; |
65 NM_FUNCTION; |
65 CFSMailClient* client = CFSMailClient::NewLC(EFSLoadPlugins); |
66 |
66 CleanupStack:: Pop(client); |
67 CFSMailClient* client = CFSMailClient::NewLC(EFSLoadPlugins); |
67 return client; |
68 CleanupStack:: Pop(client); |
|
69 return client; |
68 } |
70 } |
69 |
71 |
70 // ----------------------------------------------------------------------------- |
72 // ----------------------------------------------------------------------------- |
71 // CFSMailClient::NewL |
73 // CFSMailClient::NewL |
72 // ----------------------------------------------------------------------------- |
74 // ----------------------------------------------------------------------------- |
73 EXPORT_C CFSMailClient* CFSMailClient::NewL(TInt aConfiguration) |
75 EXPORT_C CFSMailClient* CFSMailClient::NewL(TInt aConfiguration) |
74 { |
76 { |
75 FUNC_LOG; |
77 NM_FUNCTION; |
76 |
78 |
77 CFSMailClient* client = CFSMailClient::NewLC(aConfiguration); |
79 CFSMailClient* client = CFSMailClient::NewLC(aConfiguration); |
78 CleanupStack:: Pop(client); |
80 CleanupStack:: Pop(client); |
79 return client; |
81 return client; |
80 } |
82 } |
81 |
83 |
82 // ----------------------------------------------------------------------------- |
84 // ----------------------------------------------------------------------------- |
83 // CFSMailClient::ConstructL |
85 // CFSMailClient::ConstructL |
84 // ----------------------------------------------------------------------------- |
86 // ----------------------------------------------------------------------------- |
85 void CFSMailClient::ConstructL(TInt aConfiguration) |
87 void CFSMailClient::ConstructL(TInt aConfiguration) |
86 { |
88 { |
87 FUNC_LOG; |
89 NM_FUNCTION; |
|
90 |
88 iFWImplementation = CFSFWImplementation::NewL(aConfiguration); |
91 iFWImplementation = CFSFWImplementation::NewL(aConfiguration); |
89 } |
92 } |
90 |
93 |
91 // ----------------------------------------------------------------------------- |
94 // ----------------------------------------------------------------------------- |
92 // CFSMailClient::CFSMailClient |
95 // CFSMailClient::CFSMailClient |
93 // ----------------------------------------------------------------------------- |
96 // ----------------------------------------------------------------------------- |
94 CFSMailClient::CFSMailClient() |
97 CFSMailClient::CFSMailClient() |
95 { |
98 { |
96 FUNC_LOG; |
99 NM_FUNCTION; |
|
100 |
97 // clear pointers |
101 // clear pointers |
98 iFWImplementation = NULL; |
102 iFWImplementation = NULL; |
99 iBrandManager = NULL; |
103 iBrandManager = NULL; |
100 } |
104 } |
101 |
105 |
116 // ----------------------------------------------------------------------------- |
121 // ----------------------------------------------------------------------------- |
117 // CFSMailClient::GetMailBoxByUidL |
122 // CFSMailClient::GetMailBoxByUidL |
118 // ----------------------------------------------------------------------------- |
123 // ----------------------------------------------------------------------------- |
119 EXPORT_C CFSMailBox* CFSMailClient::GetMailBoxByUidL(const TFSMailMsgId aMailBoxId) |
124 EXPORT_C CFSMailBox* CFSMailClient::GetMailBoxByUidL(const TFSMailMsgId aMailBoxId) |
120 { |
125 { |
121 FUNC_LOG; |
126 NM_FUNCTION; |
|
127 |
122 // select plugin |
128 // select plugin |
123 CFSMailBox* mailBox = NULL; |
129 CFSMailBox* mailBox = NULL; |
124 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId); |
130 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId); |
125 if(plugin) |
131 if(plugin) |
126 { |
132 { |
135 // CFSMailClient::GetFolderByUidL |
141 // CFSMailClient::GetFolderByUidL |
136 // ----------------------------------------------------------------------------- |
142 // ----------------------------------------------------------------------------- |
137 EXPORT_C CFSMailFolder* CFSMailClient::GetFolderByUidL( const TFSMailMsgId aMailBoxId, |
143 EXPORT_C CFSMailFolder* CFSMailClient::GetFolderByUidL( const TFSMailMsgId aMailBoxId, |
138 const TFSMailMsgId aFolderId ) |
144 const TFSMailMsgId aFolderId ) |
139 { |
145 { |
140 FUNC_LOG; |
146 NM_FUNCTION; |
|
147 |
141 CFSMailFolder* folder = NULL; |
148 CFSMailFolder* folder = NULL; |
142 |
149 |
143 // select plugin |
150 // select plugin |
144 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aFolderId); |
151 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aFolderId); |
145 if(plugin) |
152 if(plugin) |
156 EXPORT_C CFSMailMessage* CFSMailClient::GetMessageByUidL( const TFSMailMsgId aMailBoxId, |
163 EXPORT_C CFSMailMessage* CFSMailClient::GetMessageByUidL( const TFSMailMsgId aMailBoxId, |
157 const TFSMailMsgId aFolderId, |
164 const TFSMailMsgId aFolderId, |
158 const TFSMailMsgId aMessageId, |
165 const TFSMailMsgId aMessageId, |
159 const TFSMailDetails aDetails) |
166 const TFSMailDetails aDetails) |
160 { |
167 { |
161 FUNC_LOG; |
168 NM_FUNCTION; |
|
169 |
162 CFSMailMessage* message = NULL; |
170 CFSMailMessage* message = NULL; |
163 // select plugin |
171 // select plugin |
164 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMessageId); |
172 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMessageId); |
165 if(plugin) |
173 if(plugin) |
166 { |
174 { |
176 // ----------------------------------------------------------------------------- |
184 // ----------------------------------------------------------------------------- |
177 EXPORT_C void CFSMailClient::DeleteMessagesByUidL( const TFSMailMsgId aMailBoxId, |
185 EXPORT_C void CFSMailClient::DeleteMessagesByUidL( const TFSMailMsgId aMailBoxId, |
178 const TFSMailMsgId aFolderId, |
186 const TFSMailMsgId aFolderId, |
179 const RArray<TFSMailMsgId>& aMessages ) |
187 const RArray<TFSMailMsgId>& aMessages ) |
180 { |
188 { |
181 FUNC_LOG; |
189 NM_FUNCTION; |
|
190 |
182 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aFolderId); |
191 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aFolderId); |
183 if(plugin) |
192 if(plugin) |
184 { |
193 { |
185 plugin->DeleteMessagesByUidL(aMailBoxId,aFolderId,aMessages); |
194 plugin->DeleteMessagesByUidL(aMailBoxId,aFolderId,aMessages); |
186 } |
195 } |
190 // CFSMailClient::DeleteMailBoxByUidL |
199 // CFSMailClient::DeleteMailBoxByUidL |
191 // ----------------------------------------------------------------------------- |
200 // ----------------------------------------------------------------------------- |
192 EXPORT_C TInt CFSMailClient::DeleteMailBoxByUidL( const TFSMailMsgId aMailBoxId, |
201 EXPORT_C TInt CFSMailClient::DeleteMailBoxByUidL( const TFSMailMsgId aMailBoxId, |
193 MFSMailRequestObserver& aOperationObserver ) |
202 MFSMailRequestObserver& aOperationObserver ) |
194 { |
203 { |
195 FUNC_LOG; |
204 NM_FUNCTION; |
|
205 |
196 // select plugin |
206 // select plugin |
197 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId); |
207 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId); |
198 if(plugin) |
208 if(plugin) |
199 { |
209 { |
200 // init asynchronous request |
210 // init asynchronous request |
309 // ----------------------------------------------------------------------------- |
319 // ----------------------------------------------------------------------------- |
310 EXPORT_C MFSMailIterator* CFSMailClient::ListMessages(const TFSMailMsgId aMailBoxId, |
320 EXPORT_C MFSMailIterator* CFSMailClient::ListMessages(const TFSMailMsgId aMailBoxId, |
311 const TFSMailMsgId aFolderId, const TFSMailDetails aDetails, |
321 const TFSMailMsgId aFolderId, const TFSMailDetails aDetails, |
312 const RArray<TFSMailSortCriteria>& aSorting) |
322 const RArray<TFSMailSortCriteria>& aSorting) |
313 { |
323 { |
314 FUNC_LOG; |
324 NM_FUNCTION; |
315 |
325 |
316 MFSMailIterator* iterator = NULL; |
326 MFSMailIterator* iterator = NULL; |
317 MFSMailIterator* pluginIterator = NULL; |
327 MFSMailIterator* pluginIterator = NULL; |
318 |
328 |
319 // select plugin |
329 // select plugin |
337 // ----------------------------------------------------------------------------- |
347 // ----------------------------------------------------------------------------- |
338 // CFSMailClient::GetBrandManagerL |
348 // CFSMailClient::GetBrandManagerL |
339 // ----------------------------------------------------------------------------- |
349 // ----------------------------------------------------------------------------- |
340 EXPORT_C MFSMailBrandManager& CFSMailClient::GetBrandManagerL( void ) |
350 EXPORT_C MFSMailBrandManager& CFSMailClient::GetBrandManagerL( void ) |
341 { |
351 { |
342 FUNC_LOG; |
352 NM_FUNCTION; |
343 |
353 |
344 if(iBrandManager == NULL) |
354 if(iBrandManager == NULL) |
345 { |
355 { |
346 TRAPD( creationError, |
356 TRAPD( creationError, |
347 iBrandManager = CFSMailBrandManagerImpl::NewL( *this ) ); |
357 iBrandManager = CFSMailBrandManagerImpl::NewL( *this ) ); |
358 // ----------------------------------------------------------------------------- |
368 // ----------------------------------------------------------------------------- |
359 // CFSMailClient::AddObserverL |
369 // CFSMailClient::AddObserverL |
360 // ----------------------------------------------------------------------------- |
370 // ----------------------------------------------------------------------------- |
361 EXPORT_C void CFSMailClient::AddObserverL(MFSMailEventObserver& aObserver) |
371 EXPORT_C void CFSMailClient::AddObserverL(MFSMailEventObserver& aObserver) |
362 { |
372 { |
363 FUNC_LOG; |
373 NM_FUNCTION; |
|
374 |
364 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
375 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
365 { |
376 { |
366 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i); |
377 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i); |
367 if(plugin) |
378 if(plugin) |
368 { |
379 { |
374 // ----------------------------------------------------------------------------- |
385 // ----------------------------------------------------------------------------- |
375 // CFSMailClient::RemoveObserver |
386 // CFSMailClient::RemoveObserver |
376 // ----------------------------------------------------------------------------- |
387 // ----------------------------------------------------------------------------- |
377 EXPORT_C void CFSMailClient::RemoveObserver(MFSMailEventObserver& aObserver) |
388 EXPORT_C void CFSMailClient::RemoveObserver(MFSMailEventObserver& aObserver) |
378 { |
389 { |
379 FUNC_LOG; |
390 NM_FUNCTION; |
|
391 |
380 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
392 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
381 { |
393 { |
382 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i); |
394 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i); |
383 if(plugin) |
395 if(plugin) |
384 { |
396 { |
390 // ----------------------------------------------------------------------------- |
402 // ----------------------------------------------------------------------------- |
391 // CFSMailClient::UnregisterRequestObserver |
403 // CFSMailClient::UnregisterRequestObserver |
392 // ----------------------------------------------------------------------------- |
404 // ----------------------------------------------------------------------------- |
393 EXPORT_C void CFSMailClient::UnregisterRequestObserver(TInt aRequestId) |
405 EXPORT_C void CFSMailClient::UnregisterRequestObserver(TInt aRequestId) |
394 { |
406 { |
395 FUNC_LOG; |
407 NM_FUNCTION; |
|
408 |
396 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
409 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
397 { |
410 { |
398 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i)) |
411 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i)) |
399 { |
412 { |
400 plugin->UnregisterRequestObserver(aRequestId); |
413 plugin->UnregisterRequestObserver(aRequestId); |
407 // CFSMailClient::SubscribeMailboxEventsL |
420 // CFSMailClient::SubscribeMailboxEventsL |
408 // ----------------------------------------------------------------------------- |
421 // ----------------------------------------------------------------------------- |
409 EXPORT_C void CFSMailClient::SubscribeMailboxEventsL(TFSMailMsgId aMailBoxId, |
422 EXPORT_C void CFSMailClient::SubscribeMailboxEventsL(TFSMailMsgId aMailBoxId, |
410 MFSMailEventObserver& aObserver) |
423 MFSMailEventObserver& aObserver) |
411 { |
424 { |
412 FUNC_LOG; |
425 NM_FUNCTION; |
|
426 |
413 // select plugin |
427 // select plugin |
414 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId)) |
428 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId)) |
415 { |
429 { |
416 // set observer |
430 // set observer |
417 plugin->SubscribeMailboxEventsL( aMailBoxId, aObserver ); |
431 plugin->SubscribeMailboxEventsL( aMailBoxId, aObserver ); |
422 // CFSMailClient::UnsubscribeMailboxEvents |
436 // CFSMailClient::UnsubscribeMailboxEvents |
423 // ----------------------------------------------------------------------------- |
437 // ----------------------------------------------------------------------------- |
424 EXPORT_C void CFSMailClient::UnsubscribeMailboxEvents(TFSMailMsgId aMailBoxId, |
438 EXPORT_C void CFSMailClient::UnsubscribeMailboxEvents(TFSMailMsgId aMailBoxId, |
425 MFSMailEventObserver& aObserver) |
439 MFSMailEventObserver& aObserver) |
426 { |
440 { |
427 FUNC_LOG; |
441 NM_FUNCTION; |
|
442 |
428 // select plugin |
443 // select plugin |
429 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId)) |
444 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid(aMailBoxId)) |
430 { |
445 { |
431 // set observer |
446 // set observer |
432 plugin->UnsubscribeMailboxEvents( aMailBoxId, aObserver ); |
447 plugin->UnsubscribeMailboxEvents( aMailBoxId, aObserver ); |
436 // ----------------------------------------------------------------------------- |
451 // ----------------------------------------------------------------------------- |
437 // CFSMailClient::WizardDataAvailableL |
452 // CFSMailClient::WizardDataAvailableL |
438 // ----------------------------------------------------------------------------- |
453 // ----------------------------------------------------------------------------- |
439 EXPORT_C TInt CFSMailClient::WizardDataAvailableL() |
454 EXPORT_C TInt CFSMailClient::WizardDataAvailableL() |
440 { |
455 { |
441 FUNC_LOG; |
456 NM_FUNCTION; |
442 |
457 |
443 TInt ret = KErrNone; |
458 TInt ret = KErrNone; |
444 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
459 for(TInt i=0;i<iFWImplementation->GetPluginManager().GetPluginCount();i++) |
445 { |
460 { |
446 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i)) |
461 if(CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByIndex(i)) |
494 // ----------------------------------------------------------------------------- |
509 // ----------------------------------------------------------------------------- |
495 // CFSMailClient::CleanTempDirL |
510 // CFSMailClient::CleanTempDirL |
496 // ----------------------------------------------------------------------------- |
511 // ----------------------------------------------------------------------------- |
497 EXPORT_C void CFSMailClient::CleanTempDirL( ) |
512 EXPORT_C void CFSMailClient::CleanTempDirL( ) |
498 { |
513 { |
499 FUNC_LOG; |
514 NM_FUNCTION; |
|
515 |
500 iFWImplementation->GetPluginManager().CleanTempDirL(); |
516 iFWImplementation->GetPluginManager().CleanTempDirL(); |
501 } |
517 } |
502 |
518 |
503 // ----------------------------------------------------------------------------- |
519 // ----------------------------------------------------------------------------- |
504 // CFSMailClient::GetTempDir |
520 // CFSMailClient::GetTempDir |
505 // ----------------------------------------------------------------------------- |
521 // ----------------------------------------------------------------------------- |
506 EXPORT_C TDesC& CFSMailClient::GetTempDirL( ) |
522 EXPORT_C TDesC& CFSMailClient::GetTempDirL( ) |
507 { |
523 { |
508 FUNC_LOG; |
524 NM_FUNCTION; |
|
525 |
509 return iFWImplementation->GetPluginManager().GetTempDirL(); |
526 return iFWImplementation->GetPluginManager().GetTempDirL(); |
510 } |
527 } |
511 |
528 |
512 // ----------------------------------------------------------------------------- |
529 // ----------------------------------------------------------------------------- |
513 // CFSMailClient::CancelL |
530 // CFSMailClient::CancelL |
514 // ----------------------------------------------------------------------------- |
531 // ----------------------------------------------------------------------------- |
515 EXPORT_C void CFSMailClient::CancelL( const TInt aRequestId ) |
532 EXPORT_C void CFSMailClient::CancelL( const TInt aRequestId ) |
516 { |
533 { |
517 FUNC_LOG; |
534 NM_FUNCTION; |
|
535 |
518 iFWImplementation->GetPluginManager().CancelRequestL(aRequestId); |
536 iFWImplementation->GetPluginManager().CancelRequestL(aRequestId); |
519 } |
537 } |
520 |
538 |
521 // ----------------------------------------------------------------------------- |
539 // ----------------------------------------------------------------------------- |
522 // CFSMailClient::CancelAllL |
540 // CFSMailClient::CancelAllL |
523 // ----------------------------------------------------------------------------- |
541 // ----------------------------------------------------------------------------- |
524 EXPORT_C void CFSMailClient::CancelAllL( ) |
542 EXPORT_C void CFSMailClient::CancelAllL( ) |
525 { |
543 { |
526 FUNC_LOG; |
544 NM_FUNCTION; |
|
545 |
527 iFWImplementation->GetPluginManager().CancelAllRequestsL(); |
546 iFWImplementation->GetPluginManager().CancelAllRequestsL(); |
528 } |
547 } |
529 |
548 |
530 // ----------------------------------------------------------------------------- |
549 // ----------------------------------------------------------------------------- |
531 // CFSMailClient::SetMailboxName |
550 // CFSMailClient::SetMailboxName |
532 // ----------------------------------------------------------------------------- |
551 // ----------------------------------------------------------------------------- |
533 EXPORT_C void CFSMailClient::SetMailboxName( const TFSMailMsgId aMailboxId, const TDesC& aMailboxName ) |
552 EXPORT_C void CFSMailClient::SetMailboxName( const TFSMailMsgId aMailboxId, const TDesC& aMailboxName ) |
534 { |
553 { |
535 FUNC_LOG; |
554 NM_FUNCTION; |
|
555 |
536 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid( aMailboxId ); |
556 CFSMailPlugin* plugin = iFWImplementation->GetPluginManager().GetPluginByUid( aMailboxId ); |
537 if ( plugin ) |
557 if ( plugin ) |
538 { |
558 { |
539 plugin->SetMailboxName( aMailboxId, aMailboxName ); |
559 plugin->SetMailboxName( aMailboxId, aMailboxName ); |
540 } |
560 } |
567 // ----------------------------------------------------------------------------- |
588 // ----------------------------------------------------------------------------- |
568 // CFSMailClient::Instance |
589 // CFSMailClient::Instance |
569 // ----------------------------------------------------------------------------- |
590 // ----------------------------------------------------------------------------- |
570 CFSMailClient* CFSMailClient::Instance() |
591 CFSMailClient* CFSMailClient::Instance() |
571 { |
592 { |
572 FUNC_LOG; |
593 NM_FUNCTION; |
|
594 |
573 return static_cast<CFSMailClient*>(Dll::Tls()); |
595 return static_cast<CFSMailClient*>(Dll::Tls()); |
574 } |
596 } |
575 |
597 |
576 // ----------------------------------------------------------------------------- |
598 // ----------------------------------------------------------------------------- |
577 // CFSMailClient::IncReferenceCount |
599 // CFSMailClient::IncReferenceCount |
578 // ----------------------------------------------------------------------------- |
600 // ----------------------------------------------------------------------------- |
579 EXPORT_C TInt CFSMailClient::IncReferenceCount() |
601 EXPORT_C TInt CFSMailClient::IncReferenceCount() |
580 { |
602 { |
581 FUNC_LOG; |
603 NM_FUNCTION; |
|
604 |
582 return ++iReferenceCount; |
605 return ++iReferenceCount; |
583 } |
606 } |
584 |
607 |
585 // ----------------------------------------------------------------------------- |
608 // ----------------------------------------------------------------------------- |
586 // CFSMailClient::DecReferenceCount |
609 // CFSMailClient::DecReferenceCount |
587 // ----------------------------------------------------------------------------- |
610 // ----------------------------------------------------------------------------- |
588 TInt CFSMailClient::DecReferenceCount() |
611 TInt CFSMailClient::DecReferenceCount() |
589 { |
612 { |
590 FUNC_LOG; |
613 NM_FUNCTION; |
|
614 |
591 return --iReferenceCount; |
615 return --iReferenceCount; |
592 } |
616 } |
593 |
617 |
594 // ----------------------------------------------------------------------------- |
618 // ----------------------------------------------------------------------------- |
595 // CFSMailClient::ReleaseExtension |
619 // CFSMailClient::ReleaseExtension |
596 // ----------------------------------------------------------------------------- |
620 // ----------------------------------------------------------------------------- |
597 EXPORT_C void CFSMailClient::ReleaseExtension( CEmailExtension* aExtension ) |
621 EXPORT_C void CFSMailClient::ReleaseExtension( CEmailExtension* aExtension ) |
598 { |
622 { |
|
623 NM_FUNCTION; |
|
624 |
599 CExtendableEmail::ReleaseExtension( aExtension ); |
625 CExtendableEmail::ReleaseExtension( aExtension ); |
600 } |
626 } |
601 |
627 |
602 // ----------------------------------------------------------------------------- |
628 // ----------------------------------------------------------------------------- |
603 // CFSMailClient::ExtensionL |
629 // CFSMailClient::ExtensionL |
604 // ----------------------------------------------------------------------------- |
630 // ----------------------------------------------------------------------------- |
605 EXPORT_C CEmailExtension* CFSMailClient::ExtensionL( const TUid& aInterfaceUid ) |
631 EXPORT_C CEmailExtension* CFSMailClient::ExtensionL( const TUid& aInterfaceUid ) |
606 { |
632 { |
|
633 NM_FUNCTION; |
|
634 |
607 return CExtendableEmail::ExtensionL( aInterfaceUid ); |
635 return CExtendableEmail::ExtensionL( aInterfaceUid ); |
608 } |
636 } |
609 |
637 |