Class: Gio::FileMonitor

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#cancelBoolean

Cancels a file monitor.

Returns:

  • (Boolean)

    always true

#cancelled=(cancelled) ⇒ Boolean

Whether the monitor has been cancelled.

Parameters:

  • cancelled (Boolean)

Returns:

  • (Boolean)

    cancelled

  • (Boolean)

    cancelled

#cancelled?Boolean

Whether the monitor has been cancelled.

Returns:

  • (Boolean)

    cancelled

#emit_event(child, other_file, event_type) ⇒ nil

Emits the GFile::Monitor::changed signal if a change has taken place. Should be called from file monitor implementations only.

Implementations are responsible to call this method from the [thread-default main context][g-main-context-push-thread-default] of the thread that the monitor was created in.

Parameters:

Returns:

  • (nil)

#is_cancelledBoolean

Returns whether the monitor is canceled.

Returns:

  • (Boolean)

    true if monitor is canceled. false otherwise.

#rate_limitInteger

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

Returns:

  • (Integer)

    rate-limit

#rate_limit=(rate_limit) ⇒ Integer

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

Parameters:

  • rate_limit (Integer)

Returns:

  • (Integer)

    rate-limit

  • (Integer)

    rate-limit