Top | ![]() |
![]() |
![]() |
![]() |
BurnerBurnResult
burner_status_get_result (BurnerStatus *status
);
After an object (see burner_burn_track_get_status()
) has
been requested its status, this function returns that status.
a BurnerBurnResult. BURNER_BURN_OK if the object is ready. BURNER_BURN_NOT_READY if some time should be given to the object before it is ready. BURNER_BURN_ERR if there is an error.
gdouble
burner_status_get_progress (BurnerStatus *status
);
If burner_status_get_result()
returned BURNER_BURN_NOT_READY,
this function returns the progress regarding the operation completion.
GError *
burner_status_get_error (BurnerStatus *status
);
If burner_status_get_result()
returned BURNER_BURN_ERR,
this function returns the error.
gchar *
burner_status_get_current_action (BurnerStatus *status
);
If burner_status_get_result()
returned BURNER_BURN_NOT_READY,
this function returns a string describing the operation currently performed.
Free the string when it is not needed anymore.
void
burner_status_set_completed (BurnerStatus *status
);
Sets the status for a request to BURNER_BURN_OK.
void burner_status_set_not_ready (BurnerStatus *status
,gdouble progress
,const gchar *current_action
);
Sets the status for a request to BURNER_BURN_NOT_READY. Allows to set a string describing the operation currently performed as well as the progress regarding the operation completion.
void burner_status_set_error (BurnerStatus *status
,GError *error
);
Sets the status for a request to BURNER_BURN_ERR.