Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2011

    Qt Mobility - Save Contact to phonebook with custom details


    I want to save contact into phonebook with some custom detail.

    Q: It is possible that this detail is visible when navigate to device phonebook and see that custom detail?

    I extend QContactDetail and save this detail into QContact

    MyCustomDetail myDetail = contact.detail( MyCustomDetail ::DefinitionName );
    myDetail.setCustomDetail("Custom Detail");
    contact.saveDetail(&myDetail) ;
    But i don't see custom detail on phonebook.

    Any hints, examples?

    Many thanks for help

  2. #2
    Registered User
    Join Date
    Aug 2011

    Re: Qt Mobility - Save Contact to phonebook with custom details


    I found some example. QContactDetailDefinition should be saved into QContactManager.

    code snippet
    QContactDetailDefinition customDef;
    QContactDetailFieldDefinition customField;
    customField.setDataType( QVariant::String );
    customDef.insertField(CustomDetail::FieldcustomField, customField);
    Note: My QContactManager is created : QContactManager* cm = new QContactManager("symbian");

    ISSUE: I'm getting error ( manager->saveDetailDefinition(customDef) )
    QContactManager::NotSupportedError - 9 ( The most recent operation failed because the requested operation is not supported in the specified store )

    Anyone know if is even possible to add custom fields on Symbian^3

    My device is C7 - Anna

Similar Threads

  1. PIM Contacts: How to extract all the details on a phonebook
    By kenichi24 in forum Mobile Java General
    Replies: 1
    Last Post: 2010-09-18, 17:24
  2. Replies: 3
    Last Post: 2010-04-01, 07:52
  3. Nokia N73 Contact details to save to SIM
    By melonytee in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 1
    Last Post: 2009-07-20, 08:51
  4. Retriving Phonebook contact details based on its Image
    By shrawan_gupta in forum Symbian
    Replies: 2
    Last Post: 2008-12-18, 15:22
  5. Nokia PhoneBook Contact Details :: Date Updated
    By deepaknet in forum General Development Questions
    Replies: 0
    Last Post: 2008-12-07, 04:49

Posting Permissions

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