GDigicam 0.3 Reference Manual | ||||
---|---|---|---|---|
Error handling functionsError handling functions — Methods to manage the operation errors in GDigicam. |
#define G_DIGICAM_ERROR enum GDigicamError; GQuark g_digicam_error_quark (void); GError* g_digicam_error_new (GDigicamError error_id, const gchar *str, ...); void g_digicam_set_error (GError **orig_error, GDigicamError error_id, const gchar *str, ...);
These tools bring together all the needed to handle the GDigicamError codes in order to identify and notify the possible operation errors.
#define G_DIGICAM_ERROR g_digicam_error_quark ()
GQuark identifier for GDigicamError.
Returns : | the GDigicamError GQuark. |
typedef enum { /*< skip >*/ G_DIGICAM_ERROR_FAILED = 0, G_DIGICAM_ERROR_GSTREAMER_BIN_NOT_SET, G_DIGICAM_ERROR_VIEWFINDER_NOT_SUPPORTED, G_DIGICAM_ERROR_MODE_NOT_SUPPORTED, G_DIGICAM_ERROR_INVALID_MODE, G_DIGICAM_ERROR_FLASHMODE_NOT_SUPPORTED, G_DIGICAM_ERROR_FOCUSMODE_NOT_SUPPORTED, G_DIGICAM_ERROR_INVALID_FOCUSMODE, G_DIGICAM_ERROR_AUTOFOCUS_LOCKED, G_DIGICAM_ERROR_EXPOSUREMODE_NOT_SUPPORTED, G_DIGICAM_ERROR_ISOSENSITIVITYMODE_NOT_SUPPORTED, G_DIGICAM_ERROR_WHITEBALANCEMODE_NOT_SUPPORTED, G_DIGICAM_ERROR_METERINGMODE_NOT_SUPPORTED, G_DIGICAM_ERROR_ASPECTRATIO_NOT_SUPPORTED, G_DIGICAM_ERROR_QUALITY_NOT_SUPPORTED, G_DIGICAM_ERROR_RESOLUTION_NOT_SUPPORTED, G_DIGICAM_ERROR_LOCK_NOT_POSSIBLE, G_DIGICAM_ERROR_ZOOM_NOT_SUPPORTED, G_DIGICAM_ERROR_ZOOM_OUT_OF_RANGE, G_DIGICAM_ERROR_AUDIO_NOT_SUPPORTED, G_DIGICAM_ERROR_PREVIEW_NOT_SUPPORTED, } GDigicamError;
Indicates the type of GError.
GQuark g_digicam_error_quark (void);
Creates a new GQuark for error managing.
Returns : | the GQuark |
GError* g_digicam_error_new (GDigicamError error_id, const gchar *str, ...);
Creates a new GDigicam Gerror with the proper id and string
error_id : |
the error id |
str : |
strings to be shown on error message |
... : |
variable arguments following the format as in printf function. |
Returns : | the new GDigicam GError |
void g_digicam_set_error (GError **orig_error, GDigicamError error_id, const gchar *str, ...);
Sets or creates a gdigicam error with the proper id and string
orig_error : |
the original GError |
error_id : |
the error id to set |
str : |
strings to be shown on error message |
... : |
variable arguments following the format as in printf function. |