~nataliabidart/ubuntuone-client/split-oauth

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/event_queue.py

  • Committer: Tarmac
  • Author(s): Samuele Pedroni (Canonical Services Ltd.)
  • Date: 2010-05-18 14:05:52 UTC
  • mfrom: (511.1.17 transfer-progress-events)
  • Revision ID: dobey@wayofthemonkey.com-20100518140552-d3l55ob7yfdz0ekw
addressing the demands of Bug #570747, introduces internal events AQ_DOWNLOAD/UPLOAD_FILE_PROGRESS that then get converted into D-Bus signals Download/UploadFileProgress.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    'AQ_UNLINK_OK': ('share_id', 'parent_id', 'node_id'),
54
54
    'AQ_UNLINK_ERROR': ('share_id', 'parent_id', 'node_id', 'error'),
55
55
    'AQ_DOWNLOAD_STARTED': ('share_id', 'node_id', 'server_hash'),
 
56
    'AQ_DOWNLOAD_FILE_PROGRESS': ('share_id', 'node_id',
 
57
                                  'n_bytes_read', 'deflated_size'),
56
58
    'AQ_DOWNLOAD_COMMIT': ('share_id', 'node_id', 'server_hash'),
57
59
    'AQ_DOWNLOAD_FINISHED': ('share_id', 'node_id', 'server_hash'),
58
60
    'AQ_DOWNLOAD_ERROR': ('share_id', 'node_id', 'server_hash', 'error'),
59
61
    'AQ_DOWNLOAD_CANCELLED': ('share_id', 'node_id', 'server_hash'),
60
62
    'AQ_DOWNLOAD_DOES_NOT_EXIST': ('share_id', 'node_id'),
61
63
    'AQ_UPLOAD_STARTED' : ('share_id', 'node_id', 'hash'),
 
64
    'AQ_UPLOAD_FILE_PROGRESS': ('share_id', 'node_id',
 
65
                                'n_bytes_written', 'deflated_size'),
62
66
    'AQ_UPLOAD_FINISHED': ('share_id', 'node_id', 'hash'),
63
67
    'AQ_UPLOAD_ERROR': ('share_id', 'node_id', 'error', 'hash'),
64
68
    'AQ_SHARES_LIST': ('shares_list',),