×

Discussion Board

Results 1 to 9 of 9
  1. #1
    chishti.hameed
    Guest

    SOS!! how can a phone ID be retrieved from SMS

    how can a phone ID be retrieved from SMS?????
    I'm able to get message itself but dont know about
    phone ID :-(
    any code ????

    THANKS AHEAD!!!!!!!!!!!!!!!!!!!!

  2. #2
    chishti.hameed
    Guest

    ?????

    plz help me ..........................

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    3
    CSmsClientMtm* specificMtm = STATIC_CAST(CSmsClientMtm*,iMtmReg->NewMtmL(KUidMsgTypeSMS));

    specificMtm->SwitchCurrentEntryL(iNewMessageId);
    specificMtm->LoadMessageL();

    iEikonEnv->AlertWin(specificMtm->SmsHeader().FromAddress());

  4. #4
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Hi,

    I'm using that code with SDK 2.0, but files smuthdr.h and smutset.h are not present.
    However in the SDK help they are described as containers of CSmsHeader, CSmsNumber and other classes.

    Do you have those files?

    Thanks in advance.

  5. #5
    chishti.hameed
    Guest
    yeah i've these files, give me ur email asap.

  6. #6
    chishti.hameed
    Guest

  7. #7
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Hi,

    I've found them in 1.2 SDK. Thanks anyway.

    Now my problem is that I'd like to retrieve recipients numbers (that's my own phone number) on an incoming sms.

    But I'm getting errors (KERN-EXEC 3) doing:

    specificMtm->SmsHeader().Recipients().At(0)->Address();

    Any idea?

  8. #8
    chishti.hameed
    Guest
    Originally posted by ajsanchez
    Hi,

    I've found them in 1.2 SDK. Thanks anyway.

    Now my problem is that I'd like to retrieve recipients numbers (that's my own phone number) on an incoming sms.

    But I'm getting errors (KERN-EXEC 3) doing:

    specificMtm->SmsHeader().Recipients().At(0)->Address();

    Any idea?
    // To handle the sms specifics we start using SmsMtm
    CSmsClientMtm* aSmsMtm = STATIC_CAST(CSmsClientMtm*, smsMtm);

    CSmsHeader& hdr = aSmsMtm->SmsHeader();
    TPtrC from = hdr.FromAddress();

    iRecipient = from.AllocL(); //copy sender's phone to iRecipient

  9. #9
    chishti.hameed
    Guest
    smsMtm ::: CBaseMtm* smsMtm;

    Hope this helps you :-)

    i'm newbie :P

Posting Permissions

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