diff options
| author | Chris Adams <christopher.adams@nokia.com> | 2009-12-21 15:38:44 +1000 |
|---|---|---|
| committer | Chris Adams <christopher.adams@nokia.com> | 2009-12-22 10:25:25 +1000 |
| commit | d729b581717623b3503c7524670035eac283ff99 (patch) | |
| tree | 9e259c4bb3abb416f2a7b5c05b3021cedc7d629e /doc/src/snippets/qtcontactsdocsample/qtcontactsdocsample.cpp | |
| parent | 58cc743f5c96767666641906d754161a70c69a56 (diff) | |
Rename QCM::contacts() to QCM::contactIds(), add real contacts() fns
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 73674485fe..6442b69b54 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(); |
