~nataliabidart/ubuntuone-client/valid-typo

« back to all changes in this revision

Viewing changes to ubuntuone/platform/windows/ipc_client.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart, Brian Curtin
  • Date: 2012-03-29 15:00:28 UTC
  • mfrom: (1214.3.9 851810-notify-on-volumes)
  • Revision ID: tarmac-20120329150028-fd9yzdo3td89yqhd
- Emit a notification when volumes are ready after a server rescan, allowing clients to follow and update their information accordingly (LP: #851810).

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
    __metaclass__ = RemoteMeta
254
254
 
255
255
    # calls that will be accessible remotely
256
 
    signal_handlers = ['on_root_mismatch', 'on_quota_exceeded']
 
256
    signal_handlers = [
 
257
        'on_root_mismatch',
 
258
        'on_quota_exceeded',
 
259
        'on_volumes_changed',
 
260
    ]
257
261
 
258
262
    @remote
259
263
    def connect(self):
301
305
    def on_quota_exceeded(self, volume_dict):
302
306
        """Emit QuotaExceeded signal."""
303
307
 
 
308
    @signal
 
309
    def on_volumes_changed(self, volumes):
 
310
        """Emit VolumesChanged signal."""
 
311
 
304
312
 
305
313
class FileSystemClient(RemoteClient):
306
314
    """An ipc interface to the FileSystem Manager."""