Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-libclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-libclient
Commits
df0b29ef
Commit
df0b29ef
authored
4 years ago
by
Ming Rui Zhang
Browse files
Options
Downloads
Patches
Plain Diff
contactmodel: add contact profile updated signal
Change-Id: Ifffeb048590373d8c30fb29d77486aad718e093e
parent
218f7a62
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/api/contactmodel.h
+5
-0
5 additions, 0 deletions
src/api/contactmodel.h
src/contactmodel.cpp
+3
-1
3 additions, 1 deletion
src/contactmodel.cpp
with
8 additions
and
1 deletion
src/api/contactmodel.h
+
5
−
0
View file @
df0b29ef
...
...
@@ -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:
/**
...
...
This diff is collapsed.
Click to expand it.
src/contactmodel.cpp
+
3
−
1
View file @
df0b29ef
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment