Top | ![]() |
![]() |
![]() |
![]() |
void | brasero_drive_reprobe () |
BraseroMedium * | brasero_drive_get_medium () |
GDrive * | brasero_drive_get_gdrive () |
const gchar * | brasero_drive_get_udi () |
gboolean | brasero_drive_is_fake () |
gchar * | brasero_drive_get_display_name () |
const gchar * | brasero_drive_get_device () |
const gchar * | brasero_drive_get_block_device () |
gchar * | brasero_drive_get_bus_target_lun_string () |
BraseroDriveCaps | brasero_drive_get_caps () |
gboolean | brasero_drive_can_write () |
gboolean | brasero_drive_can_eject () |
gboolean | brasero_drive_eject () |
void | brasero_drive_cancel_current_operation () |
gboolean | brasero_drive_is_door_open () |
gboolean | brasero_drive_can_use_exclusively () |
gboolean | brasero_drive_lock () |
gboolean | brasero_drive_unlock () |
void
brasero_drive_reprobe (BraseroDrive *drive
);
Reprobes the drive contents. Useful when an operation has just been performed (blanking, burning, ...) and medium status should be updated.
NOTE: This operation does not block.
BraseroMedium *
brasero_drive_get_medium (BraseroDrive *drive
);
Gets the medium currently inserted in the drive. If there is no medium or if the medium is not probed yet then it returns NULL.
GDrive *
brasero_drive_get_gdrive (BraseroDrive *drive
);
Returns the GDrive corresponding to this BraseroDrive
const gchar *
brasero_drive_get_udi (BraseroDrive *drive
);
Gets a string holding the HAL udi corresponding to this device. It can be used to uniquely identify the drive.
gboolean
brasero_drive_is_fake (BraseroDrive *drive
);
Returns whether or not the drive is a fake one. There is only one and corresponds to a file which is used when the user wants to burn to a file.
gchar *
brasero_drive_get_display_name (BraseroDrive *drive
);
Gets a string holding the name for the drive. That string can be then displayed in a user interface.
const gchar *
brasero_drive_get_device (BraseroDrive *drive
);
Gets a string holding the device path for the drive.
const gchar *
brasero_drive_get_block_device (BraseroDrive *drive
);
Gets a string holding the block device path for the drive. This can be used on some other OSes, like Solaris, for GIO operations instead of the device path.
Solaris uses block device for GIO operations and uses raw device for system calls and backends like cdrtool.
If such a path is not available, it returns the device path.
gchar *
brasero_drive_get_bus_target_lun_string
(BraseroDrive *drive
);
Returns the bus, target, lun ("{bus},{target},{lun}") as a string which is sometimes needed by some backends like cdrecord.
NOTE: that function returns either bus/target/lun or the device path according to OSes. Basically it returns bus/target/lun only for FreeBSD which is the only OS in need for that. For all others it returns the device path.
BraseroDriveCaps
brasero_drive_get_caps (BraseroDrive *drive
);
Returns what type(s) of disc the drive can write to.
gboolean
brasero_drive_can_write (BraseroDrive *drive
);
Returns whether the disc can burn any disc at all.
gboolean
brasero_drive_can_eject (BraseroDrive *drive
);
Returns whether the drive can eject media.
gboolean brasero_drive_eject (BraseroDrive *drive
,gboolean wait
,GError **error
);
Open the drive tray or ejects the media if there is any inside.
void
brasero_drive_cancel_current_operation
(BraseroDrive *drive
);
Cancels all operations currently running for drive
gboolean
brasero_drive_is_door_open (BraseroDrive *drive
);
Returns whether or not the drive door is open.
gboolean
brasero_drive_can_use_exclusively (BraseroDrive *drive
);
Returns whether or not the drive can be used exclusively, that is whether or not it is currently used by another application.
gboolean brasero_drive_lock (BraseroDrive *drive
,const gchar *reason
,gchar **reason_for_failure
);
Locks a BraseroDrive. Manual ejection shouldn't be possible any more.
gboolean
brasero_drive_unlock (BraseroDrive *drive
);
Unlocks a BraseroDrive.
“device”
property “device” char *
Device path for the drive.
Owner: BraseroDrive
Flags: Read / Write / Construct Only
Default value: NULL
“gdrive”
property “gdrive” GDrive *
A GDrive object for the drive.
Owner: BraseroDrive
Flags: Read / Write
“medium-added”
signalvoid user_function (BraseroDrive *drive, BraseroMedium *medium, gpointer user_data)
This signal gets emitted when a new medium was detected
drive |
the object which received the signal |
|
medium |
the new medium which was added |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Recursion
“medium-removed”
signalvoid user_function (BraseroDrive *drive, BraseroMedium *medium, gpointer user_data)
This signal gets emitted when a medium is not longer available
drive |
the object which received the signal |
|
medium |
the medium which was removed |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Recursion