440
440
def on_share_unsubscribe_error(self, share_id, error):
441
441
"""Emit the ShareUnSubscribeError signal"""
444
class ConfigClient(RemoteClient):
445
"""The Syncdaemon config/settings ipc interface. """
447
def __init__(self, remote_config):
448
""" Creates the instance."""
449
super(ConfigClient, self).__init__(remote_config)
451
@callbacks(callbacks_names=[('reply_handler', 1), ('error_handler', 2)])
453
def get_throttling_limits(self, reply_handler=None, error_handler=None):
454
"""Get the read/write limit from AQ and return a dict.
455
Returns a dict(download=int, upload=int), if int is -1 the value isn't
457
The values are bytes/second
460
@callbacks(callbacks_names=[('reply_handler', 3), ('error_handler', 4)])
462
def set_throttling_limits(self, download, upload,
463
reply_handler=None, error_handler=None):
464
"""Set the read and write limits. The expected values are bytes/sec."""
466
@callbacks(callbacks_names=[('reply_handler', 1), ('error_handler', 2)])
468
def enable_bandwidth_throttling(self, reply_handler=None,
470
"""Enable bandwidth throttling."""
472
@callbacks(callbacks_names=[('reply_handler', 1), ('error_handler', 2)])
474
def disable_bandwidth_throttling(self, reply_handler=None,
476
"""Disable bandwidth throttling."""
478
@callbacks(callbacks_names=[('reply_handler', 1), ('error_handler', 2)])
480
def bandwidth_throttling_enabled(self, reply_handler=None,
482
"""Returns True (actually 1) if bandwidth throttling is enabled and
487
def udf_autosubscribe_enabled(self):
488
"""Return the udf_autosubscribe config value."""
491
def enable_udf_autosubscribe(self):
492
"""Enable UDF autosubscribe."""
495
def disable_udf_autosubscribe(self):
496
"""Enable UDF autosubscribe."""
499
def share_autosubscribe_enabled(self):
500
"""Return the share_autosubscribe config value."""
503
def enable_share_autosubscribe(self):
504
"""Enable UDF autosubscribe."""
507
def disable_share_autosubscribe(self):
508
"""Enable UDF autosubscribe."""
511
def set_files_sync_enabled(self, enabled):
512
"""Enable/disable file sync service."""
515
def files_sync_enabled(self):
516
"""Return the files_sync_enabled config value."""
519
def autoconnect_enabled(self):
520
"""Return the autoconnect config value."""
523
def set_autoconnect_enabled(self, enabled):
524
"""Enable syncdaemon autoconnect."""
527
def show_all_notifications_enabled(self):
528
"""Return the show_all_notifications config value."""
531
def enable_show_all_notifications(self):
532
"""Enable showing all notifications."""
535
def disable_show_all_notifications(self):
536
"""Disable showing all notifications."""