×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    how to send sms in different methods?

    How to send receive sms in different manner?

    if anybody knows that please tell me

    Regards
    SymbianTH

  2. #2
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: how to send sms in different methods?

    I got it

    SMSHabdler.h
    ------------

    #ifndef __CSMSHANDLER_H__
    #define __CSMSHANDLER_H__

    // INCLUDES
    #include <e32base.h>
    #include <msvapi.h>
    #include <mtuireg.h>
    #include <txtrich.h>
    // CONSTANTS
    const TInt KBfrLength = 20;

    // FORWARD DECLARATIONS
    class CSmsAppUi;
    class CClientMtmRegistry;
    class CSmsClientMtm;

    // CLASS DECLARATION
    /**
    * CSmsHandler application engine class.
    * Takes care of sending and receiveing SMS messages using the SMS client MTM.
    * Interacts with the application UI class.
    */
    class CSmsHandler : public CActive, public MMsvSessionObserver
    {
    public: // Constructors and destructor

    /**
    * NewL.
    * Two-phased constructor.
    * @param aSmsAppUi Pointer to AppUi instance.
    * @return Pointer to the created instance of CSmsHandler.
    */
    static CSmsHandler* NewL( );

    /**
    * NewLC.
    * Two-phased constructor.
    * @param aSmsAppUi Pointer to AppUi instance.
    * @return Pointer to the created instance of CSmsHandler.
    */
    static CSmsHandler* NewLC();

    /**
    * ~CSmsHandler
    * Destructor.
    */
    virtual ~CSmsHandler();

    public: // New functions
    /**
    * SendL.
    * Starts the process of creating and sending an SMS message.
    * @param aRecipientNumber The number of the recipent.
    * @param aMessageText The message text.
    * @return ETrue if successful, EFalse if not.
    */
    TBool SendL( const TDesC& aRecipientNumber,
    const TDesC& aMessageText );

    /**
    * ViewL.
    * Displays a received SMS message.
    */
    void ViewL();

    public: // Functions from base classes

    /**
    * From MMsvSessionObserver, HandleSessionEventL.
    * Handles notifications of events from the Message Server.
    * @param aEvent The event that has taken place
    * @param aArg1 Event type-specific argument value
    * @param aArg2 Event type-specific argument value
    * @param aArg3 Event type-specific argument value
    */
    void HandleSessionEventL( TMsvSessionEvent aEvent, TAny* aArg1,
    TAny* aArg2, TAny* aArg3 );

    protected: // Functions from base classes

    /**
    * From CActive, DoCancel.
    * Cancels any outstanding requests.
    */
    void DoCancel();

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: how to send sms in different methods?

    Quote Originally Posted by SymbianTH View Post
    How to send receive sms in different manner?

    if anybody knows that please tell me

    Regards
    SymbianTH
    Welcome to forum.

    Did you mean using different APIs???

    Goto wiki and type "SMS" in search box, you will gets a lot of example.

    http://wiki.forum.nokia.com/index.ph...xt=Search+Wiki

  4. #4
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    442

    Re: how to send sms in different methods?


  5. #5
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: how to send sms in different methods?

    Sorry, i am not getting you exactly. You downloaded "SMS Operations" and is not working???

Similar Threads

  1. Please, explain how to send concatenated SMS
    By rzientara in forum General Messaging
    Replies: 12
    Last Post: 2009-07-06, 04:08
  2. Replies: 6
    Last Post: 2007-11-20, 13:09
  3. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  4. Error sending SMS
    By jorge_c in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-07, 11:53
  5. Track if a sms is a response to a sms I send
    By tuender in forum General Messaging
    Replies: 1
    Last Post: 2002-07-19, 07:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×