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
is_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
bool
is_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
interface_find_property
interface_install_property
interface_list_properties
@new
new_valist
newv
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
@get
get_class
get_data
get_property
get_qdata
get_type
is_floating
notify_property
@ref
ref_sink
replace_data
replace_qdata
remove_toggle_ref
remove_weak_pointer
@set
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
notify
ref_count