22 searches for a given string in all the fields of the messages.</p><p>The search |
22 searches for a given string in all the fields of the messages.</p><p>The search |
23 client is notified of each found message and the <xref href="GUID-88C7C842-73DA-3E6C-8EB9-F098F1E13703.dita#GUID-88C7C842-73DA-3E6C-8EB9-F098F1E13703/GUID-B05D1394-EF24-3D04-B8AE-6B02D5F9F1A9"><apiname>MEmailSearchObserver::SearchCompletedL()</apiname></xref> method |
23 client is notified of each found message and the <xref href="GUID-88C7C842-73DA-3E6C-8EB9-F098F1E13703.dita#GUID-88C7C842-73DA-3E6C-8EB9-F098F1E13703/GUID-B05D1394-EF24-3D04-B8AE-6B02D5F9F1A9"><apiname>MEmailSearchObserver::SearchCompletedL()</apiname></xref> method |
24 notifies when the search is completed.</p><note> Only one search can be performed |
24 notifies when the search is completed.</p><note> Only one search can be performed |
25 at a time. If a search is already in progress, returns <codeph>KErrNotReady</codeph>.</note> |
25 at a time. If a search is already in progress, returns <codeph>KErrNotReady</codeph>.</note> |
26 </context> |
26 </context> |
27 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-10-1-7-1-1-4-1-3-1-5-1-6-1-3-3"> |
27 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-12-1-8-1-1-4-1-3-1-5-1-6-1-3-3"> |
28 <step id="GUID-A7151932-CABC-443B-8A6A-8C0E130ABC35"><cmd>Implement the <xref href="GUID-88C7C842-73DA-3E6C-8EB9-F098F1E13703.dita"><apiname>MEmailSearchObserver</apiname></xref> class |
28 <step id="GUID-A7151932-CABC-443B-8A6A-8C0E130ABC35"><cmd>Implement the <xref href="GUID-88C7C842-73DA-3E6C-8EB9-F098F1E13703.dita"><apiname>MEmailSearchObserver</apiname></xref> class |
29 and initiate the search using <xref href="GUID-FCDFA4A7-2C82-3FE7-8C0B-2035C6602290.dita#GUID-FCDFA4A7-2C82-3FE7-8C0B-2035C6602290/GUID-1E592410-A37E-3F53-9A89-EF248A67F0BE"><apiname>MEmailMailbox::MessageSearchL()</apiname></xref>.</cmd> |
29 and initiate the search using <xref href="GUID-FCDFA4A7-2C82-3FE7-8C0B-2035C6602290.dita#GUID-FCDFA4A7-2C82-3FE7-8C0B-2035C6602290/GUID-1E592410-A37E-3F53-9A89-EF248A67F0BE"><apiname>MEmailMailbox::MessageSearchL()</apiname></xref>.</cmd> |
30 <info><p><codeblock xml:space="preserve">MEmailMailbox* mailbox = mailboxes[i]; |
30 <info><p><codeblock xml:space="preserve">MEmailMailbox* mailbox = mailboxes[i]; |
31 MEmailMessageSearchAsync* search = mailbox->MessageSearchL(); |
31 MEmailMessageSearchAsync* search = mailbox->MessageSearchL(); |
32 CleanupReleasePushL( *search ); |
32 CleanupReleasePushL( *search ); |