|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE reference |
|
11 PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> |
|
12 <reference id="GUID-2D9B17E7-2B7A-5E16-AB06-D9507457A85D" xml:lang="en"><title>smsexample: |
|
13 SMS example</title><shortdesc>This example code demonstrates how to send and receive |
|
14 SMS messages using the Messaging Framework APIs. </shortdesc><prolog><metadata><keywords/></metadata></prolog><refbody> |
|
15 <section id="GUID-81E46301-8C03-5C36-B601-804D25C7C927"><title>Purpose</title> <p>These |
|
16 are the use cases demonstrated in this example: </p> <ul> |
|
17 <li id="GUID-39FDC2E5-2B51-5884-95CD-A8E4DB557D23"><p>How to create an SMS |
|
18 service. </p> </li> |
|
19 <li id="GUID-E6031880-AFF1-5BE2-844E-8D6C5584D462"><p>How to create an SMS. </p> </li> |
|
20 <li id="GUID-D9F4BEFD-02EF-5108-99B4-E96003655A3B"><p>How to send an SMS. </p> </li> |
|
21 <li id="GUID-3F7CD319-B63E-5FF6-8BEB-67FAED970EBB"><p>How to access and display |
|
22 SMS messages in the inbox, outbox and sent folders. </p> </li> |
|
23 <li id="GUID-0510D38B-A230-5FD3-BB65-6CA568C2D241"><p>How to delete SMS messages. </p> </li> |
|
24 </ul> </section> |
|
25 <section id="GUID-878E4690-1F02-5C15-8B4E-F53E8EA8719D"><title>Download</title> <p>Click |
|
26 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> |
|
27 <section><title>Class Summary</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-AF724192-6580-3DE3-9287-3A005C0AA932.dita"><apiname>CMsvOperation</apiname></xref></p><p> <xref href="GUID-681B56F3-B3A2-3147-B25A-FD69451F4A1D.dita"><apiname>CMsvServerEntry</apiname></xref></p><p> <xref href="GUID-A9FE5C23-4F39-345E-873B-682D9807BAA0.dita"><apiname>CSmsSettings</apiname></xref></p><p> <xref href="GUID-790D9BA9-2FB7-3073-AF2F-FFD049C3FD3D.dita"><apiname>CSmsHeader</apiname></xref></p><p> <xref href="GUID-6BC8851B-D913-3CE5-B343-5163661E8AD5.dita"><apiname>CMsvEntrySelection</apiname></xref></p><p> <xref href="GUID-8CB90FA2-A6CF-3FA2-81FF-7D22EFD9C2CE.dita"><apiname>CMsvStore</apiname></xref></p><p> <xref href="GUID-4181374F-8545-3AF0-8932-A73138296FD1.dita"><apiname>CSsmCommandListResourceReader</apiname></xref></p><p> <xref href="GUID-B36289AC-769F-3A83-BADB-AE0568E97581.dita"><apiname>MMsvEntryObserver</apiname></xref></p><p> <xref href="GUID-BDE23754-4536-3AF7-8549-3B953F51167C.dita"><apiname>MMsvSessionObserver</apiname></xref></p></section> |
|
28 <section id="GUID-F706F06F-EAD0-5028-8875-C56E8C68B307"><title>Design and |
|
29 implementation</title> <p>An SMS account is created with a user-specified |
|
30 service center name and number. Then a message is composed by the user and |
|
31 sent to the user-specified recipient. </p> </section> |
|
32 <section id="GUID-2B5D9B09-1ACF-52E5-9FDF-FF6B03096162"><title>Building and |
|
33 configuring</title> <ul> |
|
34 <li id="GUID-FD731628-CA35-59F5-ABEB-9F6FC097965B"><p>You can build the example |
|
35 from your IDE or the command line. </p> <p>If you use an IDE, import the <filepath>bld.inf</filepath> file |
|
36 of the example into your IDE, and use the build command of the IDE. </p> <p>If |
|
37 you use the command line, open a command prompt, and set the current directory |
|
38 to the source code directory of the example. You can then build the example |
|
39 with the SBSv1 build tools with the following commands: </p> <p><userinput>bldmake |
|
40 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 |
|
41 how to use the SBSv1 build tools. </p> </li> |
|
42 <li id="GUID-DDDF0872-174C-5C68-9068-282EE28B648D"><p>For the emulator, the |
|
43 example builds an executable called <filepath>smsexample.exe</filepath> in |
|
44 the <filepath>epoc32\release\winscw\<udeb or urel>\</filepath> folder. </p> </li> |
|
45 </ul> </section> |
|
46 </refbody><related-links> |
|
47 <link href="GUID-F2D86E40-279A-5B48-B91F-922803FEF5DE.dita"><linktext>SMS MTM Overview</linktext> |
|
48 </link> |
|
49 </related-links></reference> |