summaryrefslogtreecommitdiffstats
path: root/src/contacts/qcontactmanager.h
diff options
context:
space:
mode:
authorCristiano di Flora <cristiano.di-flora@nokia.com>2011-09-20 17:01:11 +0300
committerQt by Nokia <qt-info@nokia.com>2011-09-21 14:52:21 +0200
commita0fa9bf396f560e3ae62c6d86660bb131d6cbf6f (patch)
tree77bb1e7e9a9aea0226282ece07a42b32afb57b57 /src/contacts/qcontactmanager.h
parent2fc607fb1e9d1681126b6d6e8a995866041980d7 (diff)
First draft of QContactRelationship refactoring.
- includes changes to memory back-end; - does not include auto test adaptation - does not include neither qml plugin adaptation nor jsondb backend adaptation. Change-Id: I58d4dc56239cac6dafb4ab061fc8b5e417cf7934 Reviewed-on: http://codereview.qt-project.org/5315 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: <mika.tikkakoski@nokia.com>
Diffstat (limited to 'src/contacts/qcontactmanager.h')
-rw-r--r--src/contacts/qcontactmanager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contacts/qcontactmanager.h b/src/contacts/qcontactmanager.h
index 562032cb0..574b852ff 100644
--- a/src/contacts/qcontactmanager.h
+++ b/src/contacts/qcontactmanager.h
@@ -153,8 +153,8 @@ public:
QContactLocalId selfContactId() const;
/* Relationships */
- QList<QContactRelationship> relationships(const QContactId& participantId, QContactRelationship::Role role = QContactRelationship::Either) const;
- QList<QContactRelationship> relationships(const QString& relationshipType = QString(), const QContactId& participantId = QContactId(), QContactRelationship::Role role = QContactRelationship::Either) const;
+ QList<QContactRelationship> relationships(const QContact& participant, QContactRelationship::Role role = QContactRelationship::Either) const;
+ QList<QContactRelationship> relationships(const QString& relationshipType = QString(), const QContact& participant = QContact(), QContactRelationship::Role role = QContactRelationship::Either) const;
bool saveRelationship(QContactRelationship* relationship);
bool saveRelationships(QList<QContactRelationship>* relationships, QMap<int, QContactManager::Error>* errorMap = 0);
bool removeRelationship(const QContactRelationship& relationship);