×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    322

    retrieve a contacts phones

    Hi
    regarding C++ on Symbian
    I want to retrieve all of the phone numbers that a contact's has :
    mobile , mobile (home) , mobile(work) , phone , phone(home) , phone(work).
    below I added all of the find options I use in the Find method (card->CardFields().Find(...)) -
    I still dont get all of the options - what do I do wrong ???
    how can I make sure I retrieve all of the numbers ?

    I really dont know what to do here ...
    Thanks , TE

    Code:
    1:KUidContactFieldVCardMapCELL
    2:KUidContactFieldVCardMapCELL,KUidContactFieldVCardMapHOME
    3:KUidContactFieldVCardMapCELL,KUidContactFieldVCardMapWORK
    4:KUidContactFieldPhoneNumber
    5:KUidContactFieldPhoneNumber,KUidContactFieldVCardMapHOME
    6:KUidContactFieldPhoneNumber,KUidContactFieldVCardMapWORK
    7:KUidContactFieldVCardMapHOME
    8:KUidContactFieldVCardMapWORK

  2. #2
    Regular Contributor
    Join Date
    Apr 2004
    Posts
    322

    update

    Hi
    when using the code below , I can see all of the fields including all of the deferent kinf of phones ,
    how can I verify that the fields I retrieve is of a phone type (any kind of phone that is ...) or another option :
    how can I verify that it is not a "job" , "email" etc ???

    please advise , Thanks
    Code:
    TInt count = card->CardFields().Count();
    for(int i = 0;i<count;i++)
    {
    	TBuf<32> textBuf;
    	textBuf.Append(card->CardFields()[i].TextStorage()->Text());
    	// ... add the textBuf to an array etc.
    }

Posting Permissions

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