Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
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
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
da953efe
Commit
da953efe
authored
13 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#6298: Cleanup
parent
2dd9310c
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
sflphone-client-gnome/src/actions.c
+6
-23
6 additions, 23 deletions
sflphone-client-gnome/src/actions.c
sflphone-common/src/history/historymanager.cpp
+0
-13
0 additions, 13 deletions
sflphone-common/src/history/historymanager.cpp
with
6 additions
and
36 deletions
sflphone-client-gnome/src/actions.c
+
6
−
23
View file @
da953efe
...
...
@@ -1344,7 +1344,7 @@ void sflphone_fill_conference_list (void)
gchar
*
conf_id
;
conference_obj_t
*
conf
;
DEBUG
(
"
sfl
phone
_f
ill
_
conference
_
list"
);
DEBUG
(
"
SFL
phone
: F
ill
conference
list"
);
conferences
=
dbus_get_conference_list
();
...
...
@@ -1353,8 +1353,6 @@ void sflphone_fill_conference_list (void)
conf
=
g_new0
(
conference_obj_t
,
1
);
conf_id
=
(
gchar
*
)
(
*
conferences
);
DEBUG
(
" fetching conference: %s"
,
conf_id
);
conference_details
=
(
GHashTable
*
)
dbus_get_conference_details
(
conf_id
);
create_new_conference_from_details
(
conf_id
,
conference_details
,
&
conf
);
...
...
@@ -1376,16 +1374,12 @@ void sflphone_fill_history (void)
QueueElement
*
element
;
guint
i
=
0
,
n
=
0
;
DEBUG
(
"======================================================= SFLphone: Loading history"
);
entries
=
dbus_get_history
();
while
(
*
entries
)
{
current_entry
=
(
gchar
*
)
*
entries
;
DEBUG
(
"entry: %s"
,
current_entry
);
// Parsed a conference
if
(
g_str_has_prefix
(
current_entry
,
"9999"
))
{
// create a conference entry
...
...
@@ -1401,7 +1395,6 @@ void sflphone_fill_history (void)
// if this conference is already created since one of the participant have already
// been unserialized, update the recordfile value
conf
->
_recordfile
=
g_strdup
(
history_conf
->
_recordfile
);
DEBUG
(
"----------------- add record file: %s"
,
conf
->
_recordfile
);
}
}
else
{
...
...
@@ -1414,8 +1407,6 @@ void sflphone_fill_history (void)
if
(
history_call
->
_confID
&&
g_strcmp0
(
history_call
->
_confID
,
""
)
!=
0
)
{
DEBUG
(
"----------------- conf id: %s"
,
history_call
->
_confID
);
// process conference
conf
=
conferencelist_get
(
history
,
history_call
->
_confID
);
if
(
conf
==
NULL
)
{
...
...
@@ -1423,7 +1414,8 @@ void sflphone_fill_history (void)
create_new_conference
(
CONFERENCE_STATE_ACTIVE_ATACHED
,
history_call
->
_confID
,
&
conf
);
conferencelist_add
(
history
,
conf
);
}
// add this participant to the conference
conference_add_participant
(
history_call
->
_callID
,
conf
);
// conference start timestamp corespond to
...
...
@@ -1436,31 +1428,26 @@ void sflphone_fill_history (void)
entries
++
;
}
entries
=
history_entries
;
// fill
// fill the treeview wtih calls
n
=
calllist_get_size
(
history
);
DEBUG
(
"CALL SIZE: %d"
,
n
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
element
=
calllist_get_nth
(
history
,
i
);
if
(
element
->
type
==
HIST_CALL
)
{
call
=
element
->
elem
.
call
;
DEBUG
(
"%d ADDING: %s"
,
i
,
call
->
_callID
);
calltree_add_call
(
history
,
call
,
NULL
);
}
}
// fill the treeview with conferences
n
=
conferencelist_get_size
(
history
);
DEBUG
(
"CONFERENCE SIZE: %d"
,
n
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
conference_obj_t
*
conf
=
conferencelist_get_nth
(
history
,
i
);
if
(
conf
==
NULL
)
{
DEBUG
(
"
??????????????????????
"
);
DEBUG
(
"
SFLphone: Error: Could not find conference
"
);
}
calltree_add_conference
(
history
,
conf
);
}
DEBUG
(
"======================================================== SFLphone: Loading history ...(end)"
);
}
void
sflphone_save_history
(
void
)
...
...
@@ -1473,8 +1460,6 @@ void sflphone_save_history (void)
gchar
**
ordered_result
;
gchar
*
key
,
*
value
;
DEBUG
(
"==================================================== SFLphone: Saving history"
);
result
=
g_hash_table_new
(
NULL
,
g_str_equal
);
g_hash_table_ref
(
result
);
...
...
@@ -1486,12 +1471,10 @@ void sflphone_save_history (void)
if
(
current
->
type
==
HIST_CALL
)
{
value
=
serialize_history_call_entry
(
current
->
elem
.
call
);
key
=
convert_timestamp_to_gchar
(
current
->
elem
.
call
->
_time_start
);
DEBUG
(
"--------------------------------- SFLphone: Serialize call [%s]: %s"
,
key
,
value
);
}
else
if
(
current
->
type
==
HIST_CONFERENCE
)
{
value
=
serialize_history_conference_entry
(
current
->
elem
.
conf
);
key
=
convert_timestamp_to_gchar
(
current
->
elem
.
conf
->
_time_start
);
DEBUG
(
"--------------------------------- SFLphone: Serialize conference [%s]: %s"
,
key
,
value
);
}
else
{
ERROR
(
"SFLphone: Error: Unknown type for serialization"
);
...
...
This diff is collapsed.
Click to expand it.
sflphone-common/src/history/historymanager.cpp
+
0
−
13
View file @
da953efe
...
...
@@ -126,16 +126,6 @@ int HistoryManager::load_history_items_map (Conf::ConfigTree *history_list, int
confID
=
getConfigString
(
*
iter
,
"confid"
,
history_list
);
time_added
=
getConfigString
(
*
iter
,
"timeadded"
,
history_list
);
_error
(
"Unserialized time start: %s"
,
timestamp_start
.
c_str
());
_error
(
"Unserialized time stop: %s"
,
timestamp_stop
.
c_str
());
_error
(
"Unserialized number: %s"
,
number
.
c_str
());
_error
(
"Unserialized callid: %s"
,
callID
.
c_str
());
_error
(
"Unserialized account: %s"
,
accountID
.
c_str
());
_error
(
"Unserialized name: %s"
,
name
.
c_str
());
_error
(
"Unserialized record file: %s"
,
recording_file
.
c_str
());
_error
(
"Unserialized confid: %s"
,
confID
.
c_str
());
_error
(
"Unserialized timeadded: %s"
,
time_added
.
c_str
());
// Make a check on the start timestamp to know it is loadable according to CONFIG_HISTORY_LIMIT
if
(
atoi
(
timestamp_start
.
c_str
())
>=
(
(
int
)
current_timestamp
-
history_limit
))
{
...
...
@@ -261,14 +251,11 @@ std::vector<std::string> HistoryManager::get_history_serialized (void)
iter
=
_history_items
.
begin
();
_error
(
"HistoryManager: History items size: %d"
,
_history_items
.
size
());
while
(
iter
!=
_history_items
.
end
())
{
current
=
*
iter
;
if
(
current
)
{
res
=
current
->
serialize
();
_error
(
"%s"
,
res
.
c_str
());
serialized
.
push_back
(
res
);
}
...
...
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