![]() |
![]() |
![]() |
GIO Reference Manual | ![]() |
---|---|---|---|---|
enum GFileMonitorEvent; GFileMonitor; gboolean g_file_monitor_cancel (GFileMonitor *monitor); gboolean g_file_monitor_is_cancelled (GFileMonitor *monitor); void g_file_monitor_set_rate_limit (GFileMonitor *monitor, int limit_msecs); void g_file_monitor_emit_event (GFileMonitor *monitor, GFile *file, GFile *other_file, GFileMonitorEvent event_type);
typedef enum { G_FILE_MONITOR_EVENT_CHANGED, G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT, G_FILE_MONITOR_EVENT_DELETED, G_FILE_MONITOR_EVENT_CREATED, G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED, G_FILE_MONITOR_EVENT_PRE_UNMOUNT, G_FILE_MONITOR_EVENT_UNMOUNTED } GFileMonitorEvent;
gboolean g_file_monitor_cancel (GFileMonitor *monitor);
|
|
Returns : |
TRUE if monitor was cancelled.
|
gboolean g_file_monitor_is_cancelled (GFileMonitor *monitor);
|
|
Returns : |
TRUE if monitor is canceled. FALSE otherwise.
|
void g_file_monitor_set_rate_limit (GFileMonitor *monitor, int limit_msecs);
Sets the rate limit to which the monitor
will poll for changes
on the device.
|
a GFileMonitor. |
|
a integer with the limit in milliseconds to poll for changes. |
void g_file_monitor_emit_event (GFileMonitor *monitor, GFile *file, GFile *other_file, GFileMonitorEvent event_type);
|
|
|
|
|
|
|
"changed"
signalvoid user_function (GFileMonitor *gfilemonitor, GFile *arg1, GFile *arg2, gint arg3, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
|
|
|
|
user data set when the signal handler was connected. |