SyncDaemon DBus API

Object path: /events
  Interface: com.ubuntuone.SyncDaemon.Events
    Methods:
      push_event(event_name=s,args=as)
         Push a event to the event queue 

    Signals:
      Event(event_dict=a{ss})
         Fire a D-BUS signal, notifying an event. 

  Interface: com.ubuntuone.SyncDaemon.SyncDaemon
    Methods:
    Signals:
      SignalError(signal=s,extra_args=a{ss})
         An error ocurred while trying to emit a signal. 

Object path: /status
  Interface: com.ubuntuone.SyncDaemon.Status
    Methods:
      schedule_next(share_id=s,node_id=s)
        
        Make the command on the given share and node be next in the
        queue of waiting commands.
        

      waiting_metadata()
        Return a list of the operations in the meta-queue.

      current_status()
         return the current status of the system, one of: local_rescan,
        offline, trying_to_connect, server_rescan or online.
        

      current_uploads()
         return a list of files with a upload in progress 

      current_downloads()
         return list of files with a download in progress. 

      waiting_content()
        
        returns a list of files that are waiting to be up- or downloaded
        

    Signals:
      UploadFinished(path=s,info=a{ss})
         Fire a D-BUS signal, notifying an upload has finished.  

      InvalidName(dirname=s,filename=ay)
        Fire a D-BUS signal, notifying an invalid file or dir name.

      DownloadStarted(path=v)
         Fire a D-BUS signal, notifying a download has started.  

      AccountChanged(account_info=a{ss})
         Fire a D-BUS signal, notifying that account information
        has changed.
        

      ContentQueueChanged(message=a{sa{ss}})
        
        Fire a D-BUS signal, notifying that the content queue has
        changed.
        

      DownloadFinished(path=s,info=a{ss})
         Fire a D-BUS signal, notifying a download has finished.  

      UploadStarted(path=v)
         Fire a D-BUS signal, notifying an upload has started.  

      StatusChanged(status=v)
         Fire a D-BUS signal, notifying that the status of the
        system changed.
        

  Interface: com.ubuntuone.SyncDaemon.SyncDaemon
    Methods:
    Signals:
      SignalError(signal=s,extra_args=a{ss})
         An error ocurred while trying to emit a signal. 

Object path: /filesystem
  Interface: com.ubuntuone.SyncDaemon.FileSystem
    Methods:
      get_metadata(path=s) -> a{ss}
         returns the dict with the attributes of the metadata
        for the specified path.
        

    Signals:
  Interface: com.ubuntuone.SyncDaemon.SyncDaemon
    Methods:
    Signals:
      SignalError(signal=s,extra_args=a{ss})
         An error ocurred while trying to emit a signal. 

Object path: /
  Interface: com.ubuntuone.SyncDaemon.SyncDaemon
    Methods:
      wait_for_nirvana(last_event_interval=d) -> b
         call the reply handler when there are no more
        events or transfers.
        

      disconnect()
         Disconnect from the server. 

      query_by_path(path=s)
          Request a query of the node identified by path. 

      quit()
         shutdown the syncdaemon. 

      connect()
         Connect to the server. 

      get_rootdir()
         Returns the root dir/mount point. 

    Signals:
      RootMismatch(root_id=s,new_root_id=s)
        RootMismatch signal, the user connected with a different account.

      SignalError(signal=s,extra_args=a{ss})
         An error ocurred while trying to emit a signal. 

Object path: /config
  Interface: com.ubuntuone.SyncDaemon.Config
    Methods:
      enable_udf_autosubscribe()
        Enable UDF autosubscribe.

      set_throttling_limits(download=i,upload=i)
        Set the read and write limits. The expected values are bytes/sec.

      bandwidth_throttling_enabled()
        Returns True (actually 1) if bandwidth throttling is enabled and
        False (0) otherwise.
        

      udf_autosubscribe_enabled()
        Return the udf_autosubscribe config value.

      files_sync_enabled()
        No docstring

      disable_bandwidth_throttling()
        Disable bandwidth throttling.

      get_throttling_limits()
        Get the read/write limit from AQ and return a dict.
        Returns a dict(download=int, upload=int), if int is -1 the value isn't
        configured.
        The values are bytes/second
        

      enable_bandwidth_throttling()
        Enable bandwidth throttling.

      set_files_sync_enabled(enabled=b)
        Enable UDF autosubscribe.

      disable_udf_autosubscribe()
        Enable UDF autosubscribe.

    Signals:
  Interface: com.ubuntuone.SyncDaemon.SyncDaemon
    Methods:
    Signals:
      SignalError(signal=s,extra_args=a{ss})
         An error ocurred while trying to emit a signal. 

Object path: /shares
  Interface: com.ubuntuone.SyncDaemon.Shares
    Methods:
      delete_share(share_id=s)
        Delete a Share.

      get_shares()
         returns a list of dicts, each dict represents a share 

      reject_share(share_id=s)
         Rejects a share. 

      create_shares(path=s,usernames=as,name=s,access_level=s)
        Share a subtree with several users at once.

        @param path: that path to share (the root of the subtree)
        @param usernames: the user names to offer the share to
        @param name: the name of the share
        @param access_level: 'View' or 'Modify'
        

      create_share(path=s,username=s,name=s,access_level=s)
         Share a subtree to the user identified by username.

        @param path: that path to share (the root of the subtree)
        @param username: the username to offer the share to
        @param name: the name of the share
        @param access_level: 'View' or 'Modify'
        

      get_shared()
         returns a list of dicts, each dict represents a shared share.
        A share might not have the path set, as we might be still fetching the
        nodes from the server. In this cases the path is ''
        

      accept_share(share_id=s)
         Accepts a share, a ShareAnswerOk|Error signal will be fired in the
        future as a success/failure indicator.
        

      refresh_shares()
         Refresh the share list, requesting it to the server. 

    Signals:
      ShareAnswerResponse(answer_info=a{ss})
        The answer to share was succesfull

      ShareCreated(share_info=a{ss})
         The requested share was succesfully created. 

      ShareCreateError(share_info=a{ss},error=s)
         An error ocurred while creating the share. 

      ShareDeleteError(share_dict=a{ss},error=s)
         A share was deleted, share_dict contains all available
        share attributes. 

      ShareChanged(share_dict=a{ss})
         A share changed, share_dict contains all the share attributes. 

      ShareDeleted(share_dict=a{ss})
         A share was deleted, share_dict contains all available
        share attributes. 

      NewShare(share_info=a{ss})
        A new share notification.

  Interface: com.ubuntuone.SyncDaemon.SyncDaemon
    Methods:
    Signals:
      SignalError(signal=s,extra_args=a{ss})
         An error ocurred while trying to emit a signal. 

Object path: /folders
  Interface: com.ubuntuone.SyncDaemon.Folders
    Methods:
      refresh_volumes()
        Refresh the volumes list, requesting it to the server.

      subscribe(folder_id=s)
        Subscribe to the specified folder

      create(path=s)
        Create a user defined folder in the specified path.

      get_folders()
        Return the list of folders (a list of dicts)

      get_info(path=s) -> a{ss}
        Returns a dict containing the folder information.

      unsubscribe(folder_id=s)
        Unsubscribe from the specified folder

      delete(folder_id=s)
        Delete the folder specified by folder_id

    Signals:
      FolderSubscribed(folder_info=a{ss})
        Notify the subscription to a user defined folder.

      FolderCreateError(folder_info=a{ss},error=s)
        Notify an error during the creation of a user defined folder.

      FolderDeleteError(folder_info=a{ss},error=s)
        Notify an error during the deletion of a user defined folder.

      FolderDeleted(folder_info=a{ss})
        Notify the deletion of a user defined folder.

      FolderCreated(folder_info=a{ss})
        Notify the creation of a user defined folder.

      FolderUnSubscribed(folder_info=a{ss})
        Notify the unsubscription to a user defined folder.

      FolderSubscribeError(folder_info=a{ss},error=s)
        Notify an error while subscribing to a user defined folder.

      FolderUnSubscribeError(folder_info=a{ss},error=s)
        Notify an error while unsubscribing from a user defined folder.

  Interface: com.ubuntuone.SyncDaemon.SyncDaemon
    Methods:
    Signals:
      SignalError(signal=s,extra_args=a{ss})
         An error ocurred while trying to emit a signal. 

