Skip to content
Snippets Groups Projects
Commit df0b29ef authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

contactmodel: add contact profile updated signal

Change-Id: Ifffeb048590373d8c30fb29d77486aad718e093e
parent 218f7a62
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,11 @@ Q_SIGNALS:
* @param banned whether contact was banned or unbanned
*/
void bannedStatusChanged(const QString& contactUri, bool banned) const;
/**
* Connect this signal to know when contact profile was updated.
* @param contactUri
*/
void profileUpdated(const QString& contactUri) const;
private:
/**
......
......@@ -324,6 +324,7 @@ ContactModel::addContact(contact::Info contactInfo)
iter->profileInfo = contactInfo.profileInfo;
}
}
emit profileUpdated(profile.uri);
emit contactAdded(profile.uri);
}
......@@ -1039,7 +1040,8 @@ ContactModelPimpl::slotIncomingCall(const QString& fromId,
if (linked.owner.profileInfo.type == profile::Type::RING) {
emit behaviorController.newTrustRequest(linked.owner.id, fromId);
}
}
} else
emit linked.profileUpdated(fromId);
emit linked.incomingCall(fromId, callId);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment