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
0330e442
Commit
0330e442
authored
13 years ago
by
Emmanuel Lepage
Browse files
Options
Downloads
Patches
Plain Diff
Restore and improve support for Call history
parent
12554b38
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/CallModel.h
+2
-1
2 additions, 1 deletion
src/CallModel.h
src/CallModel.hpp
+9
-3
9 additions, 3 deletions
src/CallModel.hpp
with
11 additions
and
4 deletions
src/CallModel.h
+
2
−
1
View file @
0330e442
...
@@ -91,7 +91,8 @@ class LIB_EXPORT CallModel {
...
@@ -91,7 +91,8 @@ class LIB_EXPORT CallModel {
void
removeConference
(
Call
*
call
);
void
removeConference
(
Call
*
call
);
void
removeCall
(
Call
*
call
);
void
removeCall
(
Call
*
call
);
QStringList
getHistory
();
const
QHash
<
QString
,
Call
*>
getHistory
();
QStringList
getHistoryCallId
();
//Account related members
//Account related members
static
Account
*
getCurrentAccount
();
static
Account
*
getCurrentAccount
();
...
...
This diff is collapsed.
Click to expand it.
src/CallModel.hpp
+
9
−
3
View file @
0330e442
...
@@ -73,10 +73,11 @@ template<typename CallWidget, typename Index> bool CallModel<CallWidget,Index>::
...
@@ -73,10 +73,11 @@ template<typename CallWidget, typename Index> bool CallModel<CallWidget,Index>::
if
(
!
historyInit
)
{
if
(
!
historyInit
)
{
ConfigurationManagerInterface
&
configurationManager
=
ConfigurationManagerInterfaceSingleton
::
getInstance
();
ConfigurationManagerInterface
&
configurationManager
=
ConfigurationManagerInterfaceSingleton
::
getInstance
();
QStringList
historyMap
=
configurationManager
.
getHistory
().
value
();
QStringList
historyMap
=
configurationManager
.
getHistory
().
value
();
qDebug
()
<<
"
\n\n\n\n\n\n\n\n
Call History = "
<<
historyMap
<<
"
\n\n\n\n\n\n
"
;
qDebug
()
<<
"
\n\n\n\n\n\n\n\n
Call History = "
;
foreach
(
QString
historyCallId
,
historyMap
)
{
foreach
(
QString
historyCallId
,
historyMap
)
{
QStringList
param
=
historyCallId
.
split
(
"|"
);
QStringList
param
=
historyCallId
.
split
(
"|"
);
if
(
param
.
count
()
<
10
)
{
qDebug
()
<<
"Param count"
<<
param
.
size
();
if
(
param
.
count
()
<=
10
)
{
//If this ever change, look at the gnome client
//If this ever change, look at the gnome client
QString
history_state
=
param
[
0
];
QString
history_state
=
param
[
0
];
QString
peer_number
=
param
[
1
];
QString
peer_number
=
param
[
1
];
...
@@ -344,7 +345,7 @@ template<typename CallWidget, typename Index> void CallModel<CallWidget,Index>::
...
@@ -344,7 +345,7 @@ template<typename CallWidget, typename Index> void CallModel<CallWidget,Index>::
****************************************************************************/
****************************************************************************/
///Return a list of all previous calls
///Return a list of all previous calls
template
<
typename
CallWidget
,
typename
Index
>
QStringList
CallModel
<
CallWidget
,
Index
>::
getHistory
()
template
<
typename
CallWidget
,
typename
Index
>
QStringList
CallModel
<
CallWidget
,
Index
>::
getHistory
CallId
()
{
{
QStringList
toReturn
;
QStringList
toReturn
;
foreach
(
Call
*
call
,
historyCalls
)
{
foreach
(
Call
*
call
,
historyCalls
)
{
...
@@ -353,6 +354,11 @@ template<typename CallWidget, typename Index> QStringList CallModel<CallWidget,I
...
@@ -353,6 +354,11 @@ template<typename CallWidget, typename Index> QStringList CallModel<CallWidget,I
return
toReturn
;
return
toReturn
;
}
}
template
<
typename
CallWidget
,
typename
Index
>
const
QHash
<
QString
,
Call
*>
CallModel
<
CallWidget
,
Index
>::
getHistory
()
{
return
historyCalls
;
}
/*****************************************************************************
/*****************************************************************************
* *
* *
* Account related code *
* Account related code *
...
...
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