smsexample: SMS example

This example code demonstrates how to send and receive SMS messages using the Messaging Framework APIs.

Description

This updated C++ example demonstrates programmatical handling of SMS messages. Messages can be sent from the application and they can be received directly into the application (that is, catching incoming messages before the user gets any notification). In addition, messages can be deleted, copied, or moved to other folders of the message store (inbox, outbox, drafts). The example has been updated to be compatible with S60 5th Edition and touch UI. Important classes: CMsvSession, CMsvEntry, CMmsClientMtm, CSmsClientMtm, CClientMtmRegistry, KMsvMessagePartBody, ESmsMtmCommandScheduleCopy, CSmsSettings, CSmsHeader. For more details, click on this link : sms example

Download

Click on the following link to download the example: smsexample.zip

Click: browse to view the example code.

Building and configuring

  • You can build the example from your IDE or the command line.

    If you use an IDE, import the bld.inf file of the example into your IDE, and use the build command of the IDE.

    If you use the command line, open a command prompt, and set the current directory to the source code directory of the example. You can then build the example with the SBSv1 build tools with the following commands:

    bldmake bldfiles

    abld build

    How to use bldmake and How to use abld describe how to use the SBSv1 build tools.

  • For the emulator, the example builds an executable called smsexample.exe in the epoc32\release\winscw\<udeb or urel>\ folder.

Related concepts