Gtk2HsContentsIndex
System.Gnome.VFS.Monitor
Maintainergtk2hs-devel@lists.sourceforge.net Stability : alpha Portability : portable (depends on GHC)
Contents
Types
Operations
Description
Synopsis
data MonitorHandle
type MonitorCallback = MonitorHandle -> TextURI -> TextURI -> MonitorEventType -> IO ()
monitorAdd :: String -> MonitorType -> MonitorCallback -> IO MonitorHandle
monitorCancel :: MonitorHandle -> IO ()
Types
data MonitorHandle
A handle to a file-system monitor.
type MonitorCallback
 = MonitorHandlethe handle to a filesystem monitor
-> TextURIthe URI being monitored
-> TextURIthe actual file that was modified
-> MonitorEventTypethe event that occured
-> IO ()
A callback that must be passed to monitorAdd. It will be called any time a file or directory is changed.
Operations
monitorAdd
:: StringtextURI -
-> MonitorTypemonitorType -
-> MonitorCallbackcallback -
-> IO MonitorHandlea handle to the new monitor
Watch the object at textURI for changes, and call callback when a change occurs.
monitorCancel
:: MonitorHandle
monitorHandle
-> IO ()
Cancels the monitor referred to by monitorHandle.
Produced by Haddock version 0.8