diff options
| author | Chris Adams <christopher.adams@nokia.com> | 2010-01-11 11:02:19 +1000 |
|---|---|---|
| committer | Chris Adams <christopher.adams@nokia.com> | 2010-01-11 11:02:19 +1000 |
| commit | bae84e63fccdbf581c673522458594cc92e05231 (patch) | |
| tree | 41859b6c137ade894059546d7fa52ccab8c3b7c7 /doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp | |
| parent | f9ac750cf91b60e964cad3eecd09632cc3ba4584 (diff) | |
| parent | a08bea31a466a6d7d98c3b6add165f14cc0bc96e (diff) | |
Merge branch 'qtsw/managersyncchanges' of git@scm.dev.nokia.troll.no:qtmobility/qtm-contacts into unstable
Conflicts:
tests/auto/qcontactmanager/tst_qcontactmanager.cpp
Diffstat (limited to 'doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp')
| -rw-r--r-- | doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp b/doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp index 35557e6e0b..f9aba37aa7 100644 --- a/doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp +++ b/doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp @@ -121,7 +121,7 @@ void addContact(QContactManager* cm) //! [Calling an existing contact] void callContact(QContactManager* cm) { - QList<QContactLocalId> contactIds = cm->contacts(); + QList<QContactLocalId> contactIds = cm->contactIds(); QContact a = cm->contact(contactIds.first()); /* Get this contact's first phone number */ @@ -145,7 +145,7 @@ void matchCall(QContactManager* cm, const QString& incomingCallNbr) phoneFilter.setValue(incomingCallNbr); phoneFilter.setMatchFlags(QContactFilter::MatchExactly); - QList<QContactLocalId> matchingContacts = cm->contacts(phoneFilter); + QList<QContactLocalId> matchingContacts = cm->contactIds(phoneFilter); if (matchingContacts.size() == 0) { qDebug() << "Incoming call from unknown contact (" << incomingCallNbr << ")"; } else { @@ -160,7 +160,7 @@ void matchCall(QContactManager* cm, const QString& incomingCallNbr) //! [Viewing a specific detail of a contact] void viewSpecificDetail(QContactManager* cm) { - QList<QContactLocalId> contactIds = cm->contacts(); + QList<QContactLocalId> contactIds = cm->contactIds(); QContact a = cm->contact(contactIds.first()); qDebug() << "The first phone number of" << a.displayLabel() << "is" << a.detail(QContactPhoneNumber::DefinitionName).value(QContactPhoneNumber::FieldNumber); @@ -170,7 +170,7 @@ void viewSpecificDetail(QContactManager* cm) //! [Viewing the details of a contact] void viewDetails(QContactManager* cm) { - QList<QContactLocalId> contactIds = cm->contacts(); + QList<QContactLocalId> contactIds = cm->contactIds(); QContact a = cm->contact(contactIds.first()); qDebug() << "Viewing the details of" << a.displayLabel(); @@ -216,7 +216,7 @@ void addPlugin(QContactManager* cm) //! [Modifying an existing contact] void editView(QContactManager* cm) { - QList<QContactLocalId> contactIds = cm->contacts(); + QList<QContactLocalId> contactIds = cm->contactIds(); QContact a = cm->contact(contactIds.first()); qDebug() << "Modifying the details of" << a.displayLabel(); @@ -286,7 +286,7 @@ void RequestExample::printContacts(QContactFetchRequest* request, bool appendOnl void loadManager() { QContactManager* cm = new QContactManager("KABC"); - QList<QContactLocalId> contactIds = cm->contacts(); + QList<QContactLocalId> contactIds = cm->contactIds(); if (!contactIds.isEmpty()) { QContact a = cm->contact(contactIds.first()); qDebug() << "This manager contains" << a.displayLabel(); |
