Module history_manager :: Class HistoryManager
[hide private]
[frames] | no frames]

Class HistoryManager

source code

Instance Methods [hide private]
 
__init__(self) source code
 
_init_jids_listview(self) source code
 
_init_logs_listview(self) source code
 
_init_search_results_listview(self) source code
 
on_history_manager_window_delete_event(self, widget, event) source code
 
_fill_jids_listview(self) source code
 
on_jids_listview_selection_changed(self, widget, data=None) source code
 
_get_jid_id(self, jid)
jids table has jid and jid_id logs table has log_id, jid_id, contact_name, time, kind, show, message
source code
 
_get_jid_from_jid_id(self, jid_id)
jids table has jid and jid_id
source code
 
_jid_is_from_pm(self, jid)
If jid is gajim@conf/nkour it's likely a pm one, how we know gajim@conf is not a normal guy and nkour is not his resource? We ask if gajim@conf is already in jids (with type room jid).
source code
 
_jid_is_room_type(self, jid)
Return True/False if given id is room type or not eg.
source code
 
_fill_logs_listview(self, jid)
Fill the listview with all messages that user sent to or received from JID
source code
 
_fill_search_results_listview(self, text)
Ask db and fill listview with results that match text
source code
 
on_logs_listview_key_press_event(self, widget, event) source code
 
on_listview_button_press_event(self, widget, event) source code
 
on_export_menuitem_activate(self, widget) source code
 
on_delete_menuitem_activate(self, widget, listview) source code
 
on_jids_listview_key_press_event(self, widget, event) source code
 
_export_jids_logs_to_file(self, liststore, list_of_paths, path_to_file) source code
 
_delete_jid_logs(self, liststore, list_of_paths) source code
 
_delete_logs(self, liststore, list_of_paths) source code
 
on_search_db_button_clicked(self, widget) source code
 
on_search_results_listview_row_activated(self, widget, path, column) source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

_init_jids_listview(self)

source code 

_init_logs_listview(self)

source code 

_init_search_results_listview(self)

source code 

on_history_manager_window_delete_event(self, widget, event)

source code 

_fill_jids_listview(self)

source code 

on_jids_listview_selection_changed(self, widget, data=None)

source code 

_get_jid_id(self, jid)

source code 

jids table has jid and jid_id logs table has log_id, jid_id, contact_name, time, kind, show, message

So to ask logs we need jid_id that matches our jid in jids table this method wants jid and returns the jid_id for later sql-ing on logs

_get_jid_from_jid_id(self, jid_id)

source code 

jids table has jid and jid_id

This method accepts jid_id and returns the jid for later sql-ing on logs

_jid_is_from_pm(self, jid)

source code 
If jid is gajim@conf/nkour it's likely a pm one, how we know gajim@conf is not a normal guy and nkour is not his resource? We ask if gajim@conf is already in jids (with type room jid). This fails if user disables logging for room and only enables for pm (so higly unlikely) and if we fail we do not go chaos (user will see the first pm as if it was message in room's public chat) and after that everything is ok

_jid_is_room_type(self, jid)

source code 
Return True/False if given id is room type or not eg. if it is room

_fill_logs_listview(self, jid)

source code 
Fill the listview with all messages that user sent to or received from JID

_fill_search_results_listview(self, text)

source code 
Ask db and fill listview with results that match text

on_logs_listview_key_press_event(self, widget, event)

source code 

on_listview_button_press_event(self, widget, event)

source code 

on_export_menuitem_activate(self, widget)

source code 

on_delete_menuitem_activate(self, widget, listview)

source code 

on_jids_listview_key_press_event(self, widget, event)

source code 

_export_jids_logs_to_file(self, liststore, list_of_paths, path_to_file)

source code 

_delete_jid_logs(self, liststore, list_of_paths)

source code 

_delete_logs(self, liststore, list_of_paths)

source code 

on_search_db_button_clicked(self, widget)

source code 

on_search_results_listview_row_activated(self, widget, path, column)

source code