diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-05 18:52:46 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-05 18:52:46 (GMT) |
commit | a7e4092b0e4f3d30a21ee5a7982aecd5252a0822 (patch) | |
tree | dea15838e34861e902ebe991cbeabb1a72599bcd /services | |
parent | b9f75c14727b30b9cd07b18c2c15f15d71201bb4 (diff) |
Created SugarDownloadManager and ClipboardService's wrapper. Show and hide the frame when adding an object to the clipboard.
Diffstat (limited to 'services')
-rw-r--r-- | services/clipboard/ClipboardService.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/services/clipboard/ClipboardService.py b/services/clipboard/ClipboardService.py index 35ac3a2..9ed9217 100644 --- a/services/clipboard/ClipboardService.py +++ b/services/clipboard/ClipboardService.py @@ -22,30 +22,30 @@ import dbus import dbus.service from sugar import env -_CLIPBOARD_SERVICE = "org.laptop.Clipboard" -_CLIPBOARD_DBUS_INTERFACE = "org.laptop.Clipboard" -_CLIPBOARD_OBJECT_PATH = "/org/laptop/Clipboard" - class ClipboardDBusServiceHelper(dbus.service.Object): + + _CLIPBOARD_DBUS_INTERFACE = "org.laptop.Clipboard" + _CLIPBOARD_OBJECT_PATH = "/org/laptop/Clipboard" + def __init__(self, parent): self._parent = parent bus = dbus.SessionBus() - bus_name = dbus.service.BusName(_CLIPBOARD_DBUS_INTERFACE, bus=bus) - dbus.service.Object.__init__(self, bus_name, _CLIPBOARD_OBJECT_PATH) + bus_name = dbus.service.BusName(self._CLIPBOARD_DBUS_INTERFACE, bus=bus) + dbus.service.Object.__init__(self, bus_name, self._CLIPBOARD_OBJECT_PATH) @dbus.service.method(_CLIPBOARD_DBUS_INTERFACE, in_signature="ss", out_signature="") def add_object(self, mimeType, fileName): - logging.debug('Added object of type ' + mimeType + ' with path at ' + fileName) self.object_added(mimeType, fileName) + logging.debug('Added object of type ' + mimeType + ' with path at ' + fileName) @dbus.service.method(_CLIPBOARD_DBUS_INTERFACE, in_signature="s", out_signature="") def delete_object(self, fileName): - logging.debug('Deleted object with path at ' + fileName) self.object_deleted(fileName) - + logging.debug('Deleted object with path at ' + fileName) + @dbus.service.method(_CLIPBOARD_DBUS_INTERFACE, in_signature="si", out_signature="") def update_object_state(self, fileName, percent): |