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

Class FileMonitor

source code

     object --+    
              |    
gobject.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 x.__class__.__doc__ 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 gobject.GObject: __cmp__, __delattr__, __gdoc__, __gobject_init__, __hash__, __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: __getattribute__, __reduce__, __reduce_ex__, __str__

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

Inherited from gobject.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, path)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: gobject.GObject.__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,))}