Gio.UnixMountMonitor - Classes - Gio 2.0 (original) (raw)
g GObject.Object GObject.Object Gio.UnixMountMonitor Gio.UnixMountMonitor GObject.Object->Gio.UnixMountMonitor
Subclasses:
None
Methods¶
Inherited:
Structs:
class | get () |
---|---|
class | new () |
set_rate_limit (limit_msec) |
Virtual Methods¶
Inherited:
Properties¶
None
Signals¶
Inherited:
Name | Short Description |
---|---|
mountpoints-changed | Emitted when the Unix mount points have changed. |
mounts-changed | Emitted when the Unix mount entries have changed. |
Fields¶
Inherited:
Class Details¶
class Gio.UnixMountMonitor(**kwargs)¶
Bases:
Abstract:
No
Structure:
Watches for changes to the set of mount entries and mount points in the system.
Connect to the [signal`GioUnix`.MountMonitor::mounts-changed] signal to be notified of changes to the [struct`GioUnix`.MountEntry] list.
Connect to the [signal`GioUnix`.MountMonitor::mountpoints-changed] signal to be notified of changes to the [struct`GioUnix`.MountPoint] list.
Returns:
the [class`GioUnix`.MountMonitor]
Return type:
Gets the [class`GioUnix`.MountMonitor] for the current thread-default main context.
The mount monitor can be used to monitor for changes to the list of mounted filesystems as well as the list of mount points (ie: fstab entries).
You must only call [method`GObject`.Object.unref] on the return value from under the same main context as you called this function.
New in version 2.44.
Returns:
a [class`GioUnix`.MountMonitor]
Return type:
Deprecated alias for [func`GioUnix`.MountMonitor.get].
This function was never a true constructor, which is why it was renamed.
Deprecated since version 2.44: Use [func`GioUnix`.MountMonitor.get] instead.
set_rate_limit(limit_msec)[source]¶
Parameters:
limit_msec (int) – a integer with the limit (in milliseconds) to poll for changes
This function does nothing.
Before 2.44, this was a partially-effective way of controlling the rate at which events would be reported under some uncommon circumstances. Since self is a singleton, it also meant that calling this function would have side effects for other users of the monitor.
New in version 2.18.
Deprecated since version 2.44: This function does nothing. Don’t call it.
Signal Details¶
Gio.UnixMountMonitor.signals.mountpoints_changed(unix_mount_monitor)¶
Signal Name:
mountpoints-changed
Flags:
Parameters:
unix_mount_monitor (Gio.UnixMountMonitor) – The object which received the signal
Emitted when the Unix mount points have changed.
Gio.UnixMountMonitor.signals.mounts_changed(unix_mount_monitor)¶
Signal Name:
mounts-changed
Flags:
Parameters:
unix_mount_monitor (Gio.UnixMountMonitor) – The object which received the signal
Emitted when the Unix mount entries have changed.