Module filetransfers_window :: Class FileTransfersWindow
[hide private]
[frames] | no frames]

Class FileTransfersWindow

source code

Instance Methods [hide private]
 
__init__(self) source code
 
find_transfer_by_jid(self, account, jid)
Find all transfers with peer 'jid' that belong to 'account'
source code
 
show_completed(self, jid, file_props)
Show a dialog saying that file (file_props) has been transferred
source code
 
show_request_error(self, file_props)
Show error dialog to the recipient saying that transfer has been canceled
source code
 
show_send_error(self, file_props)
Show error dialog to the sender saying that transfer has been canceled
source code
 
show_stopped(self, jid, file_props, error_msg='') source code
 
show_file_send_request(self, account, contact) source code
 
send_file(self, account, contact, file_path, file_desc='')
Start the real transfer(upload) of the file
source code
 
_start_receive(self, file_path, account, contact, file_props) source code
 
show_file_request(self, account, contact, file_props)
Show dialog asking for comfirmation and store location of new file requested by a contact
source code
 
get_icon(self, ident) source code
 
set_status(self, typ, sid, status)
Change the status of a transfer to state 'status'
source code
 
_format_percent(self, percent)
Add extra spaces from both sides of the percent, so that progress string has always a fixed size
source code
 
_format_time(self, _time) source code
 
_get_eta_and_speed(self, full_size, transfered_size, file_props) source code
 
_remove_transfer(self, iter_, sid, file_props) source code
 
set_progress(self, typ, sid, transfered_size, iter_=None)
Change the progress of a transfer with new transfered size
source code
 
get_iter_by_sid(self, typ, sid)
Return iter to the row, which holds file transfer, identified by the session id
source code
 
get_send_file_props(self, account, contact, file_path, file_name, file_desc='')
Create new file_props dict and set initial file transfer properties in it
source code
 
add_transfer(self, account, contact, file_props)
Add new transfer to FT window and show the FT window
source code
 
on_transfers_list_motion_notify_event(self, widget, event) source code
 
on_transfers_list_leave_notify_event(self, widget=None, event=None) source code
 
on_transfers_list_row_activated(self, widget, path, col) source code
 
set_cleanup_sensitivity(self)
Check if there are transfer rows and set cleanup_button sensitive, or insensitive if model is empty
source code
 
set_all_insensitive(self)
Make all buttons/menuitems insensitive
source code
 
set_buttons_sensitive(self, path, is_row_selected)
Make buttons/menuitems sensitive as appropriate to the state of file transfer located at path 'path'
source code
 
selection_changed(self, args)
Selection has changed - change the sensitivity of the buttons/menuitems
source code
 
select_func(self, path) source code
 
on_cleanup_button_clicked(self, widget) source code
 
toggle_pause_continue(self, status) source code
 
on_pause_restore_button_clicked(self, widget) source code
 
on_cancel_button_clicked(self, widget) source code
 
show_tooltip(self, widget) source code
 
on_notify_ft_complete_checkbox_toggled(self, widget) source code
 
on_file_transfers_dialog_delete_event(self, widget, event) source code
 
on_close_button_clicked(self, widget) source code
 
show_context_menu(self, event, iter_) source code
 
on_transfers_list_key_press_event(self, widget, event)
When a key is pressed in the treeviews
source code
 
on_transfers_list_button_release_event(self, widget, event) source code
 
on_transfers_list_button_press_event(self, widget, event) source code
 
on_open_folder_menuitem_activate(self, widget) source code
 
on_cancel_menuitem_activate(self, widget) source code
 
on_continue_menuitem_activate(self, widget) source code
 
on_pause_menuitem_activate(self, widget) source code
 
on_remove_menuitem_activate(self, widget) source code
 
on_file_transfers_window_key_press_event(self, widget, event) source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

find_transfer_by_jid(self, account, jid)

source code 
Find all transfers with peer 'jid' that belong to 'account'

show_completed(self, jid, file_props)

source code 
Show a dialog saying that file (file_props) has been transferred

show_request_error(self, file_props)

source code 
Show error dialog to the recipient saying that transfer has been canceled

show_send_error(self, file_props)

source code 
Show error dialog to the sender saying that transfer has been canceled

show_stopped(self, jid, file_props, error_msg='')

source code 

show_file_send_request(self, account, contact)

source code 

send_file(self, account, contact, file_path, file_desc='')

source code 
Start the real transfer(upload) of the file

_start_receive(self, file_path, account, contact, file_props)

source code 

show_file_request(self, account, contact, file_props)

source code 
Show dialog asking for comfirmation and store location of new file requested by a contact

get_icon(self, ident)

source code 

set_status(self, typ, sid, status)

source code 
Change the status of a transfer to state 'status'

_format_percent(self, percent)

source code 
Add extra spaces from both sides of the percent, so that progress string has always a fixed size

_format_time(self, _time)

source code 

_get_eta_and_speed(self, full_size, transfered_size, file_props)

source code 

_remove_transfer(self, iter_, sid, file_props)

source code 

set_progress(self, typ, sid, transfered_size, iter_=None)

source code 
Change the progress of a transfer with new transfered size

get_iter_by_sid(self, typ, sid)

source code 
Return iter to the row, which holds file transfer, identified by the session id

get_send_file_props(self, account, contact, file_path, file_name, file_desc='')

source code 
Create new file_props dict and set initial file transfer properties in it

add_transfer(self, account, contact, file_props)

source code 
Add new transfer to FT window and show the FT window

on_transfers_list_motion_notify_event(self, widget, event)

source code 

on_transfers_list_leave_notify_event(self, widget=None, event=None)

source code 

on_transfers_list_row_activated(self, widget, path, col)

source code 

set_cleanup_sensitivity(self)

source code 
Check if there are transfer rows and set cleanup_button sensitive, or insensitive if model is empty

set_all_insensitive(self)

source code 
Make all buttons/menuitems insensitive

set_buttons_sensitive(self, path, is_row_selected)

source code 
Make buttons/menuitems sensitive as appropriate to the state of file transfer located at path 'path'

selection_changed(self, args)

source code 
Selection has changed - change the sensitivity of the buttons/menuitems

select_func(self, path)

source code 

on_cleanup_button_clicked(self, widget)

source code 

toggle_pause_continue(self, status)

source code 

on_pause_restore_button_clicked(self, widget)

source code 

on_cancel_button_clicked(self, widget)

source code 

show_tooltip(self, widget)

source code 

on_notify_ft_complete_checkbox_toggled(self, widget)

source code 

on_file_transfers_dialog_delete_event(self, widget, event)

source code 

on_close_button_clicked(self, widget)

source code 

show_context_menu(self, event, iter_)

source code 

on_transfers_list_key_press_event(self, widget, event)

source code 
When a key is pressed in the treeviews

on_transfers_list_button_release_event(self, widget, event)

source code 

on_transfers_list_button_press_event(self, widget, event)

source code 

on_open_folder_menuitem_activate(self, widget)

source code 

on_cancel_menuitem_activate(self, widget)

source code 

on_continue_menuitem_activate(self, widget)

source code 

on_pause_menuitem_activate(self, widget)

source code 

on_remove_menuitem_activate(self, widget)

source code 

on_file_transfers_window_key_press_event(self, widget, event)

source code