Top | ![]() |
![]() |
![]() |
![]() |
BraseroStatus * | brasero_status_new () |
BraseroBurnResult | brasero_status_get_result () |
gdouble | brasero_status_get_progress () |
GError * | brasero_status_get_error () |
gchar * | brasero_status_get_current_action () |
void | brasero_status_set_completed () |
void | brasero_status_set_not_ready () |
void | brasero_status_set_error () |
BraseroStatus *
brasero_status_new (void
);
Creates a new BraseroStatus object.
BraseroBurnResult
brasero_status_get_result (BraseroStatus *status
);
After an object (see brasero_burn_track_get_status()
) has
been requested its status, this function returns that status.
a BraseroBurnResult. BRASERO_BURN_OK if the object is ready. BRASERO_BURN_NOT_READY if some time should be given to the object before it is ready. BRASERO_BURN_ERR if there is an error.
gdouble
brasero_status_get_progress (BraseroStatus *status
);
If brasero_status_get_result()
returned BRASERO_BURN_NOT_READY,
this function returns the progress regarding the operation completion.
GError *
brasero_status_get_error (BraseroStatus *status
);
If brasero_status_get_result()
returned BRASERO_BURN_ERR,
this function returns the error.
gchar *
brasero_status_get_current_action (BraseroStatus *status
);
If brasero_status_get_result()
returned BRASERO_BURN_NOT_READY,
this function returns a string describing the operation currently performed.
Free the string when it is not needed anymore.
void
brasero_status_set_completed (BraseroStatus *status
);
Sets the status for a request to BRASERO_BURN_OK.
void brasero_status_set_not_ready (BraseroStatus *status
,gdouble progress
,const gchar *current_action
);
Sets the status for a request to BRASERO_BURN_NOT_READY. Allows to set a string describing the operation currently performed as well as the progress regarding the operation completion.
void brasero_status_set_error (BraseroStatus *status
,GError *error
);
Sets the status for a request to BRASERO_BURN_ERR.