Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GDrive |
Interface : | Drive |
None |
Method / Constructor | Defined By | |
---|---|---|
can_eject
()
:
gboolean
Checks if a drive can be ejected.
Checks if a drive can be ejected.
|
Gio.Drive | |
can_poll_for_media
()
:
gboolean
Checks if a drive can be polled for media changes.
Checks if a drive can be polled for media changes.
FALSE otherwise.
|
Gio.Drive | |
can_start
()
:
gboolean
Checks if a drive can be started.
Checks if a drive can be started.
|
Gio.Drive | |
can_start_degraded
()
:
gboolean
Checks if a drive can be started degraded.
Checks if a drive can be started degraded.
|
Gio.Drive | |
can_stop
()
:
gboolean
Checks if a drive can be stopped.
Checks if a drive can be stopped.
|
Gio.Drive | |
Asynchronously ejects a drive.
Asynchronously ejects a drive.
When the operation is finished, callback will be called. You can then call g_drive_eject_finish() to obtain the result of the operation.
|
Gio.Drive | |
eject_finish
(AsyncResult result)
:
gboolean
Finishes ejecting a drive.
Finishes ejecting a drive.
FALSE otherwise.
|
Gio.Drive | |
eject_with_operation
(MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data)
:
none
Ejects a drive.
Ejects a drive. This is an asynchronous operation, and is
finished by calling g_drive_eject_with_operation_finish() with the drive and GAsyncResult data returned in the callback.
|
Gio.Drive | |
eject_with_operation_finish
(AsyncResult result)
:
gboolean
Finishes ejecting a drive.
Finishes ejecting a drive. If any errors occurred during the operation,
|
Gio.Drive | |
enumerate_identifiers
()
:
Array
Gets the kinds of identifiers that drive has.
Gets the kinds of identifiers that drive has.
Use g_drive_get_identifer() to obtain the identifiers themselves. array of strings containing kinds of identifiers. Use g_strfreev() to free.
|
Gio.Drive | |
get_icon
()
:
Gio.Icon
Gets the icon for drive.
Gets the icon for drive.
Free the returned object with g_object_unref().
|
Gio.Drive | |
Gets the identifier of the given kind for drive.
|
Gio.Drive | |
get_name
()
:
String
Gets the name of drive.
Gets the name of drive.
string should be freed when no longer needed.
|
Gio.Drive | |
get_start_stop_type
()
:
Gio.DriveStartStopType
Gets a hint about how a drive can be started/stopped.
Gets a hint about how a drive can be started/stopped.
|
Gio.Drive | |
get_volumes
()
:
Array
Get a list of mountable volumes for drive.
Get a list of mountable volumes for drive.
The returned list should be freed with g_list_free(), after its elements have been unreffed with g_object_unref().
|
Gio.Drive | |
has_media
()
:
gboolean
Checks if the drive has media.
Checks if the drive has media. Note that the OS may not be polling
the drive for media changes; see g_drive_is_media_check_automatic() for more details.
|
Gio.Drive | |
has_volumes
()
:
gboolean
Check if drive has any mountable volumes.
Check if drive has any mountable volumes.
|
Gio.Drive | |
is_media_check_automatic
()
:
gboolean
Checks if drive is capabable of automatically detecting media changes.
Checks if drive is capabable of automatically detecting media changes.
media changes, FALSE otherwise.
|
Gio.Drive | |
is_media_removable
()
:
gboolean
Checks if the drive supports removable media.
Checks if the drive supports removable media.
|
Gio.Drive | |
Asynchronously polls drive to see if media has been inserted or removed.
Asynchronously polls drive to see if media has been inserted or removed.
When the operation is finished, callback will be called. You can then call g_drive_poll_for_media_finish() to obtain the result of the operation.
|
Gio.Drive | |
poll_for_media_finish
(AsyncResult result)
:
gboolean
Finishes an operation started with g_drive_poll_for_media() on a drive.
Finishes an operation started with g_drive_poll_for_media() on a drive.
FALSE otherwise.
|
Gio.Drive | |
start
(DriveStartFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data)
:
none
Asynchronously starts a drive.
Asynchronously starts a drive.
When the operation is finished, callback will be called. You can then call g_drive_start_finish() to obtain the result of the operation.
|
Gio.Drive | |
start_finish
(AsyncResult result)
:
gboolean
Finishes starting a drive.
Finishes starting a drive.
FALSE otherwise.
|
Gio.Drive | |
stop
(MountUnmountFlags flags, MountOperation mount_operation, Cancellable cancellable, Function callback, void* user_data)
:
none
Asynchronously stops a drive.
Asynchronously stops a drive.
When the operation is finished, callback will be called. You can then call g_drive_stop_finish() to obtain the result of the operation.
|
Gio.Drive | |
stop_finish
(AsyncResult result)
:
gboolean
Finishes stopping a drive.
Finishes stopping a drive.
FALSE otherwise.
|
Gio.Drive |
Event | Defined By | |
---|---|---|
changed (Drive self)
:
none
Emitted when the drive's state has changed.
Emitted when the drive's state has changed.
|
Gio.Drive | |
disconnected (Drive self)
:
none
This signal is emitted when the GDrive have been
disconnected.
This signal is emitted when the GDrive have been
disconnected. If the recipient is holding references to the object they should release them so the object can be finalized.
|
Gio.Drive | |
eject_button (Drive self)
:
none
Emitted when the physical eject button (if any) of a drive has
been pressed.
Emitted when the physical eject button (if any) of a drive has
been pressed.
|
Gio.Drive | |
stop_button (Drive self)
:
none
Emitted when the physical stop button (if any) of a drive has
been pressed.
Emitted when the physical stop button (if any) of a drive has
been pressed.
|
Gio.Drive |
Class / Namespace | Method / Signal / Properties |
---|---|
Gio.Mount
Method |
get_drive
()
:
Gio.Drive
Gets the drive for the mount.
|
Gio.Volume
Method |
get_drive
()
:
Gio.Drive
Gets the drive for the volume.
|
Gio.VolumeMonitor
Signal |
drive_changed
(VolumeMonitor self, Drive drive)
:
none
Emitted when a drive changes.
|
Gio.VolumeMonitor
Signal |
drive_connected
(VolumeMonitor self, Drive drive)
:
none
Emitted when a drive is connected to the system.
|
Gio.VolumeMonitor
Signal |
drive_disconnected
(VolumeMonitor self, Drive drive)
:
none
Emitted when a drive is disconnected from the system.
|
Gio.VolumeMonitor
Signal |
drive_eject_button
(VolumeMonitor self, Drive drive)
:
none
Emitted when the eject button is pressed on drive.
|
Gio.VolumeMonitor
Signal |
drive_stop_button
(VolumeMonitor self, Drive drive)
:
none
Emitted when the stop button is pressed on drive.
|