Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor sumn79's Avatar
    Join Date
    Nov 2003
    Posts
    112
    how to konw that the number is mobile or general number? if i using 'KUidContactFieldPhoneNumber', both mobile and general nunber is the same, any idea? please help

    thanks

  2. #2
    Registered User rpanton's Avatar
    Join Date
    Mar 2003
    Posts
    17
    I think you have to use KUidContactFieldSms to get the mobile number.

  3. #3
    Regular Contributor sumn79's Avatar
    Join Date
    Nov 2003
    Posts
    112
    thanks for ur reply, i just add in the code to my application, i donno whether i use the correct function to check, because there is no 'KUidContactFieldSms' at all, the following is part of my code:

    const CContactIdArray &idArray=*contactIDArray;
    CContactItem *item=contactDB->ReadContactL(idArray[ind]);
    CContactItemFieldSet &fieldSet=item->CardFields();

    for (int f=0;f<fieldSet.Count();f++)
    {
    CContactItemField& field = fieldSet[f];
    const CContentType& type = field.ContentType();

    if(type.ContainsFieldType(KUidContactFieldGivenName))
    {
    }
    else if(type.ContainsFieldType(KUidContactFieldFamilyName))
    {
    }
    else if(type.ContainsFieldType(KUidContactFieldPhoneNumber))
    {
    }

    if(type.ContainsFieldType(KUidContactFieldSms)) //this field is not found at all
    {
    }
    }


    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved