Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
9c073f63
Commit
9c073f63
authored
4 years ago
by
Ming Rui Zhang
Browse files
Options
Downloads
Patches
Plain Diff
accountadapter: respond to profileUpdated signals
Gitlab:
#297
Change-Id: Iaff41075edc683bd976ff69cfd8f7a80547771cc
parent
5b33a1df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/accountadapter.cpp
+8
-0
8 additions, 0 deletions
src/accountadapter.cpp
src/accountadapter.h
+2
-1
2 additions, 1 deletion
src/accountadapter.h
with
10 additions
and
1 deletion
src/accountadapter.cpp
+
8
−
0
View file @
9c073f63
...
...
@@ -355,6 +355,7 @@ AccountAdapter::connectAccount(const QString& accountId)
auto
&
accInfo
=
LRCInstance
::
accountModel
().
getAccountInfo
(
accountId
);
QObject
::
disconnect
(
accountStatusChangedConnection_
);
QObject
::
disconnect
(
accountProfileUpdatedConnection_
);
QObject
::
disconnect
(
contactAddedConnection_
);
QObject
::
disconnect
(
addedToConferenceConnection_
);
QObject
::
disconnect
(
contactUnbannedConnection_
);
...
...
@@ -366,6 +367,13 @@ AccountAdapter::connectAccount(const QString& accountId)
emit
accountStatusChanged
(
accountId
);
});
accountProfileUpdatedConnection_
=
QObject
::
connect
(
accInfo
.
accountModel
,
&
lrc
::
api
::
NewAccountModel
::
profileUpdated
,
[
this
](
const
QString
&
accountId
)
{
emit
accountStatusChanged
(
accountId
);
});
contactAddedConnection_
=
QObject
::
connect
(
accInfo
.
contactModel
.
get
(),
&
lrc
::
api
::
ContactModel
::
contactAdded
,
...
...
This diff is collapsed.
Click to expand it.
src/accountadapter.h
+
2
−
1
View file @
9c073f63
/*
/*
* Copyright (C) 2020 by Savoir-faire Linux
* Author: Mingrui Zhang <mingrui.zhang@savoirfairelinux.com>
*
...
...
@@ -143,6 +143,7 @@ private:
void
connectFailure
();
QMetaObject
::
Connection
accountStatusChangedConnection_
;
QMetaObject
::
Connection
accountProfileUpdatedConnection_
;
QMetaObject
::
Connection
contactAddedConnection_
;
QMetaObject
::
Connection
addedToConferenceConnection_
;
QMetaObject
::
Connection
contactUnbannedConnection_
;
...
...
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