Top |
Functions
Functions
brasero_status_new ()
BraseroStatus *
brasero_status_new (void
);
Creates a new BraseroStatus object.
brasero_status_get_result ()
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.
Returns
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.
brasero_status_get_progress ()
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.
brasero_status_get_error ()
GError *
brasero_status_get_error (BraseroStatus *status
);
If brasero_status_get_result()
returned BRASERO_BURN_ERR,
this function returns the error.
brasero_status_get_current_action ()
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.
brasero_status_set_completed ()
void
brasero_status_set_completed (BraseroStatus *status
);
Sets the status for a request to BRASERO_BURN_OK.
brasero_status_set_not_ready ()
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.
brasero_status_set_error ()
void brasero_status_set_error (BraseroStatus *status
,GError *error
);
Sets the status for a request to BRASERO_BURN_ERR.