GLib.Drive – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
Drive
can_eject
can_poll_for_media
can_start
can_start_degraded
can_stop
eject
eject_with_operation
enumerate_identifiers
get_icon
get_identifier
get_name
get_sort_key
get_start_stop_type
get_symbolic_icon
get_volumes
has_media
has_volumes
is_media_check_automatic
is_media_removable
poll_for_media
start
stop
changed
disconnected
eject_button
stop_button
Drive
Object Hierarchy:
Description:
public
interface
Drive
:
Object
Namespace:
GLib
Package:
gio-2.0
Content:
Methods:
public
abstract
bool
can_eject
()
public
abstract
bool
can_poll_for_media
()
public
abstract
bool
can_start
()
public
abstract
bool
can_start_degraded
()
public
abstract
bool
can_stop
()
public
abstract
async
bool
eject
(
MountUnmountFlags
flags,
Cancellable
? cancellable =
null
)
throws
Error
public
abstract
async
bool
eject_with_operation
(
MountUnmountFlags
flags,
MountOperation
? mount_operation,
Cancellable
? cancellable =
null
)
throws
Error
public
abstract
string
[]
enumerate_identifiers
()
public
abstract
Icon
get_icon
()
public
abstract
string
get_identifier
(
string
kind)
public
abstract
string
get_name
()
public
virtual
unowned
string
get_sort_key
()
public
abstract
DriveStartStopType
get_start_stop_type
()
public
abstract
Icon
get_symbolic_icon
()
public
abstract
List
<
Volume
>
get_volumes
()
public
abstract
bool
has_media
()
public
abstract
bool
has_volumes
()
public
abstract
bool
is_media_check_automatic
()
public
abstract
bool
is_media_removable
()
public
abstract
async
bool
poll_for_media
(
Cancellable
? cancellable =
null
)
throws
Error
public
abstract
async
bool
start
(
DriveStartFlags
flags,
MountOperation
? mount_operation,
Cancellable
? cancellable =
null
)
throws
Error
public
abstract
async
bool
stop
(
MountUnmountFlags
flags,
MountOperation
? mount_operation,
Cancellable
? cancellable =
null
)
throws
Error
Signals:
public
virtual
signal
void
changed
()
public
virtual
signal
void
disconnected
()
public
virtual
signal
void
eject_button
()
public
virtual
signal
void
stop_button
()
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count