×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2003
    Posts
    112

    how to konw that the number is mobile or general number?

    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
    Join Date
    Mar 2003
    Posts
    17
    I think you have to use KUidContactFieldSms to get the mobile number.

  3. #3
    Regular Contributor
    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
  •