gio-0.13.3.0: Binding to GIO

Maintainergtk2hs-devel@lists.sourceforge.net
Stabilityalpha
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

System.GIO.File.FileMonitor

Contents

Description

 

Synopsis

Details

Monitors a file or directory for changes.

To obtain a FileMonitor for a file or directory, use fileMonitor, or fileMonitorDirectory .

To get informed about changes to the file or directory you are monitoring, connect to the "changed" signal. The signal will be emitted in the thread-default main context of the thread that the monitor was created in (though if the global default main context is blocked, this may cause notifications to be blocked even if the thread-default context is still running).

Types

Enums

data FileMonitorEvent Source #

Specifies what type of event a monitor event is.

Methods

fileMonitorCancel Source #

Arguments

:: FileMonitorClass monitor 
=> monitor 
-> IO Bool

returns True if monitor was cancelled.

Cancels a file monitor.

fileMonitorIsCancelled Source #

Arguments

:: FileMonitorClass monitor 
=> monitor 
-> IO Bool

returns True if monitor is canceled. False otherwise.

Returns whether the monitor is canceled.

Attributes

fileMonitorCancelled :: FileMonitorClass monitor => ReadAttr monitor Bool Source #

Whether the monitor has been cancelled.

Default value: False

fileMonitorRateLimit :: FileMonitorClass monitor => Attr monitor Int Source #

The limit of the monitor to watch for changes, in milliseconds.

Allowed values: >= 0

Default value: 800

Signals