screenlets.utils.FileMonitor

Package screenlets :: Module utils :: Class FileMonitor |
[hide private]
[frames] | no frames]

# Class FileMonitor

source code

    object --+
             |
    ??.GObject --+
                 |
                FileMonitor

A simple wrapper around Gnome VFS file monitors. Emits created, deleted, and changed events. Incoming events are queued, with the latest event cancelling prior undelivered events.

Instance Methods | [hide private]
__init__(self, path) x.__init__(...) initializes x; see help(type(x)) for signature | source code
open(self) | source code
_clear_timeout(self, info_uri) | source code
_queue_event(self, monitor_uri, info_uri, event) | source code
queue_changed(self, info_uri) | source code
close(self) | source code
_timeout_cb(self, monitor_uri, info_uri, event) | source code
Inherited from `unreachable.GObject`: `__copy__`, `__deepcopy__`, `__delattr__`, `__eq__`, `__gdoc__`, `__ge__`, `__gobject_init__`, `__gt__`, `__hash__`, `__le__`, `__lt__`, `__ne__`, `__new__`, `__repr__`, `__setattr__`, `chain`, `connect`, `connect_after`, `connect_object`, `connect_object_after`, `disconnect`, `disconnect_by_func`, `emit`, `emit_stop_by_name`, `freeze_notify`, `get_data`, `get_properties`, `get_property`, `handler_block`, `handler_block_by_func`, `handler_disconnect`, `handler_is_connected`, `handler_unblock`, `handler_unblock_by_func`, `notify`, `props`, `set_data`, `set_properties`, `set_property`, `stop_emission`, `thaw_notify`, `weak_ref` Inherited from `object`: `__format__`, `__getattribute__`, `__reduce__`, `__reduce_ex__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| __gsignals__ = `{"event":(gobject.SIGNAL_RUN_LAST, gobject.TYPE`...``
| __gtype__ = `<GType screenlets+utils+FileMonitor (169236664)>`

Properties | [hide private]
Inherited from `unreachable.GObject`: `__grefcount__` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, path) (Constructor) | source code
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: object.__init__ (inherited documentation)

Class Variable Details | [hide private]

  ### __gsignals__ Value:
      {"event":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_ST
      RING, gobject.TYPE_INT)), "created":(gobject.SIGNAL_RUN_LAST, gobject.
      TYPE_NONE, (gobject.TYPE_STRING,)), "deleted":(gobject.SIGNAL_RUN_LAST
      , gobject.TYPE_NONE, (gobject.TYPE_STRING,)), "changed":(gobject.SIGNA
      L_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_STRING,))}