7 Nokia Corporation - initial contribution. |
7 Nokia Corporation - initial contribution. |
8 Contributors: |
8 Contributors: |
9 --> |
9 --> |
10 <!DOCTYPE reference |
10 <!DOCTYPE reference |
11 PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
12 <reference id="GUID-2D9B17E7-2B7A-5E16-AB06-D9507457A85D" xml:lang="en"><title>SMS |
12 <reference id="GUID-2D9B17E7-2B7A-5E16-AB06-D9507457A85D" xml:lang="en"><title>SMS example</title><shortdesc>This example code demonstrates how to send and receive |
13 example</title><shortdesc>This example code demonstrates how to send and receive SMS messages |
13 SMS messages using the Messaging Framework APIs. </shortdesc><prolog><metadata><keywords/></metadata></prolog><refbody> |
14 using the Messaging Framework APIs. </shortdesc><prolog><metadata><keywords/></metadata></prolog><refbody> |
14 <section id="GUID-81E46301-8C03-5C36-B601-804D25C7C927"><title>Description</title> <p>This updated C++ example demonstrates programmatical handling |
15 <section id="GUID-81E46301-8C03-5C36-B601-804D25C7C927"><title>Description</title> <p>This |
15 of SMS messages. Messages can be sent from the application and they |
16 updated C++ example demonstrates programmatical handling of SMS messages. |
16 can be received directly into the application (that is, catching incoming |
17 Messages can be sent from the application and they can be received directly |
17 messages before the user gets any notification). In addition, messages |
18 into the application (that is, catching incoming messages before the user |
18 can be deleted, copied, or moved to other folders of the message store |
19 gets any notification). In addition, messages can be deleted, copied, or moved |
19 (inbox, outbox, drafts).</p> </section> |
20 to other folders of the message store (inbox, outbox, drafts).</p> </section> |
20 <section id="GUID-878E4690-1F02-5C15-8B4E-F53E8EA8719D"><title>Download</title> <p>Click on the following link to download the example:<xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-e9c7c7d7-b4a1-4c58-bcbe-37fe6d0f4ce0.zip" scope="external"> smsexample.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-e9c7c7d7-b4a1-4c58-bcbe-37fe6d0f4ce0.html" scope="peer">browse</xref> to view the example code.</p> </section> |
21 <section id="GUID-878E4690-1F02-5C15-8B4E-F53E8EA8719D"><title>Download</title> <p>Click |
|
22 on the following link to download the example:<xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-e9c7c7d7-b4a1-4c58-bcbe-37fe6d0f4ce0.zip" scope="external"> smsexample.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-e9c7c7d7-b4a1-4c58-bcbe-37fe6d0f4ce0.html" scope="peer">browse</xref> to view the example code.</p> </section> |
|
23 <section id="GUID-5DB1579A-EA25-47AA-A2D9-31CA691B9014"><title>Classes</title> <p><xref href="GUID-2DA04D96-F0AD-3FDC-9E36-1C27D889AF4B.dita"><apiname>CMsvSession</apiname></xref></p><p><xref href="GUID-85BBE389-81F7-3E2F-A789-446D9BE2CC49.dita"><apiname>CMsvEntry</apiname></xref></p><p><xref href="GUID-26D19946-B930-3E46-9081-8A1CD139EAFF.dita"><apiname>CMmsClientMtm</apiname></xref></p><p><xref href="GUID-C499ABDB-BA30-3D97-A850-D5790FE49634.dita"><apiname>CSmsClientMtm</apiname></xref></p><p><xref href="GUID-A0682D04-9084-3DC3-AA18-5B81A78A1DA8.dita"><apiname>CClientMtmRegistry</apiname></xref></p><p><xref href="GUID-790D9BA9-2FB7-3073-AF2F-FFD049C3FD3D.dita"><apiname>CSmsHeader</apiname></xref></p></section> |
21 <section id="GUID-5DB1579A-EA25-47AA-A2D9-31CA691B9014"><title>Classes</title> <p><xref href="GUID-2DA04D96-F0AD-3FDC-9E36-1C27D889AF4B.dita"><apiname>CMsvSession</apiname></xref></p><p><xref href="GUID-85BBE389-81F7-3E2F-A789-446D9BE2CC49.dita"><apiname>CMsvEntry</apiname></xref></p><p><xref href="GUID-26D19946-B930-3E46-9081-8A1CD139EAFF.dita"><apiname>CMmsClientMtm</apiname></xref></p><p><xref href="GUID-C499ABDB-BA30-3D97-A850-D5790FE49634.dita"><apiname>CSmsClientMtm</apiname></xref></p><p><xref href="GUID-A0682D04-9084-3DC3-AA18-5B81A78A1DA8.dita"><apiname>CClientMtmRegistry</apiname></xref></p><p><xref href="GUID-790D9BA9-2FB7-3073-AF2F-FFD049C3FD3D.dita"><apiname>CSmsHeader</apiname></xref></p></section> |
24 <section id="GUID-2B5D9B09-1ACF-52E5-9FDF-FF6B03096162"><title>Building and |
22 <section id="GUID-2B5D9B09-1ACF-52E5-9FDF-FF6B03096162"><title>Building |
25 configuring</title> <ul> |
23 and configuring</title> <ul> |
26 <li id="GUID-FD731628-CA35-59F5-ABEB-9F6FC097965B"><p>You can build the example |
24 <li id="GUID-FD731628-CA35-59F5-ABEB-9F6FC097965B"><p>You can build |
27 from your IDE or the command line. </p> <p>If you use an IDE, import the <filepath>bld.inf</filepath> file |
25 the example from your IDE or the command line. </p> <p>If you use |
28 of the example into your IDE, and use the build command of the IDE. </p> <p>If |
26 an IDE, import the <filepath>bld.inf</filepath> file of the example |
29 you use the command line, open a command prompt, and set the current directory |
27 into your IDE, and use the build command of the IDE. </p> <p>If you |
30 to the source code directory of the example. You can then build the example |
28 use the command line, open a command prompt, and set the current directory |
31 with the SBSv1 build tools with the following commands: </p> <p><userinput>bldmake |
29 to the source code directory of the example. You can then build the |
32 bldfiles</userinput> </p> <p><userinput>abld build</userinput> </p> <p><xref href="GUID-793A5EF9-CC16-5EEB-9011-6431EA76EB15.dita">How to use bldmake</xref> and <xref href="GUID-B6B54E07-3B34-5D5C-8815-93383FA8FB4B.dita">How to use abld</xref> describe |
30 example with the SBSv1 build tools with the following commands: </p> <p><userinput>bldmake bldfiles</userinput> </p> <p><userinput>abld |
33 how to use the SBSv1 build tools. </p> </li> |
31 build</userinput> </p> </li> |
34 <li id="GUID-DDDF0872-174C-5C68-9068-282EE28B648D"><p>For the emulator, the |
32 <li id="GUID-DDDF0872-174C-5C68-9068-282EE28B648D"><p>For the emulator, |
35 example builds an executable called <filepath>smsexample.exe</filepath> in |
33 the example builds an executable called <filepath>smsexample.exe</filepath> in the <filepath>epoc32\release\winscw\<udeb or |
36 the <filepath>epoc32\release\winscw\<udeb or urel>\</filepath> folder. </p> </li> |
34 urel>\</filepath> folder. </p> </li> |
37 </ul> </section> |
35 </ul> </section> |
38 </refbody><related-links> |
36 </refbody><related-links> |
39 <link href="GUID-F2D86E40-279A-5B48-B91F-922803FEF5DE.dita"><linktext>SMS MTM Overview</linktext> |
37 <link href="GUID-F2D86E40-279A-5B48-B91F-922803FEF5DE.dita"><linktext>SMS |
40 </link> |
38 MTM Overview</linktext></link> |
41 </related-links></reference> |
39 </related-links></reference> |