aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-exception.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-12-18 03:19:59 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-12-18 03:19:59 +0800
commit0c6cc80cdf8c85ee86b588c1d49d5cbd4fbe5e82 (patch)
tree81e907bd7f2cedeabfebecb28d12024ff2d6c513 /camel/camel-exception.h
parente69ca1a88ce35fb744a0b4233dc5305eaa145d2f (diff)
downloadgsoc2013-evolution-0c6cc80cdf8c85ee86b588c1d49d5cbd4fbe5e82.tar.gz
gsoc2013-evolution-0c6cc80cdf8c85ee86b588c1d49d5cbd4fbe5e82.tar.zst
gsoc2013-evolution-0c6cc80cdf8c85ee86b588c1d49d5cbd4fbe5e82.zip
use exception mechanism. (camel_folder_set_name): idem.
1999-12-17 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-folder.c (_set_name): use exception mechanism. (camel_folder_set_name): idem. (camel_folder_set_full_name): idem. (_get_name): idem. (camel_folder_get_name): idem. (_get_full_name): idem. (camel_folder_get_full_name): idem. (_can_hold_folders): idem. (_can_hold_messages): idem. (_exists): idem. (camel_folder_exists): idem. (_is_open): idem. (_get_subfolder): idem. (camel_folder_get_subfolder): idem. * camel/camel-exception.c (camel_exception_clear): New function. Clear an exception. (camel_exception_get_id): New function. (camel_exception_get_description): New function. * camel/camel-folder.c (_set_name): Use the exception system. When the folder has no parent, don't set its full name field. svn path=/trunk/; revision=1499
Diffstat (limited to 'camel/camel-exception.h')
-rw-r--r--camel/camel-exception.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/camel/camel-exception.h b/camel/camel-exception.h
index ead903daa3..384f23a6f8 100644
--- a/camel/camel-exception.h
+++ b/camel/camel-exception.h
@@ -44,21 +44,30 @@ typedef enum {
} ExceptionId;
typedef struct {
-
+ /* do not access the fields directly */
ExceptionId id;
char *desc;
} CamelException;
-void camel_exception_free (CamelException *exception);
CamelException *camel_exception_new ();
+void camel_exception_free (CamelException *exception);
+
+
+void camel_exception_clear (CamelException *exception);
void camel_exception_set (CamelException *ex,
ExceptionId id,
const char *desc);
+
+
void camel_exception_xfer (CamelException *ex_dst,
CamelException *ex_src);
+ExceptionId camel_exception_get_id (CamelException *ex);
+const gchar *camel_exception_get_description (CamelException *ex);
+
+
#ifdef __cplusplus
}