Hi, i am using the latest Nokia Qt SDK.
i have tried to add the contacts, its not getting added.. what is missing here..
// Construct contact manager for default contact backend
QContactManager* cm = new QContactManager("simulator");
// QContactManager* cm = new QContactManager("memory"); // i tried this, its also not working
// Create example contact
QContact example;
// Add contact name
QContactName name;
name.setFirstName("
John");
name.setLastName("Doe");
example.saveDetail(&name);
// Add contact email address
//QContactEmailAddress email;
// email.setContexts(QContactDetail::ContextHome);
//email.setEmailAddress(“
[email protected]”);
// example.saveDetail(&email);
// Finally, save the contact details
cm->saveContact(&example);
delete cm;
Thanks