gnomevfs-0.11.0: Binding to the GNOME Virtual File System library.Source codeContentsIndex
System.Gnome.VFS.Monitor
Portabilityportable (depends on GHC)
Stabilityalpha
Maintainergtk2hs-devel@lists.sourceforge.net
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 Source
A handle to a file-system monitor.
type MonitorCallback = MonitorHandle -> TextURI -> TextURI -> MonitorEventType -> IO ()Source

A callback that must be passed to monitorAdd. It will be called any time a file or directory is changed.

The parameters, from left to right, are: * the handle to a filesystem monitor, * the URI being monitored, * the actual file that was modified, * the event that occured.

Operations
monitorAddSource
:: StringtextURI -
-> MonitorTypemonitorType -
-> MonitorCallbackcallback -
-> IO MonitorHandlea handle to the new monitor
Watch the object at textURI for changes, and call callback when a change occurs.
monitorCancelSource
:: MonitorHandle
monitorHandle
-> IO ()
Cancels the monitor referred to by monitorHandle.
Produced by Haddock version 2.6.1