diff options
author | Dan Winship <danw@src.gnome.org> | 2000-02-25 00:25:23 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-02-25 00:25:23 +0800 |
commit | 55e6218d5907cc9f27ad81a15d750e7c3d2d5d75 (patch) | |
tree | f2ad503809bffcf7b66fd7d79d3c2e59fe8dc4af /camel/camel-folder.h | |
parent | 8fb12c9538858bbfdaa6e74f8c08c6f86acbe66d (diff) | |
download | gsoc2013-evolution-55e6218d5907cc9f27ad81a15d750e7c3d2d5d75.tar.gz gsoc2013-evolution-55e6218d5907cc9f27ad81a15d750e7c3d2d5d75.tar.zst gsoc2013-evolution-55e6218d5907cc9f27ad81a15d750e7c3d2d5d75.zip |
use CamelExceptions for run-time errors, not incorrect code. Don't bother
* camel-folder.c: use CamelExceptions for run-time errors, not
incorrect code. Don't bother validating that an object exists from
inside one of its methods, since you couldn't have gotten there if
it didn't. Fix some code style bugs.
svn path=/trunk/; revision=1918
Diffstat (limited to 'camel/camel-folder.h')
-rw-r--r-- | camel/camel-folder.h | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/camel/camel-folder.h b/camel/camel-folder.h index a646ce961e..c18d2404ff 100644 --- a/camel/camel-folder.h +++ b/camel/camel-folder.h @@ -114,25 +114,20 @@ typedef struct { const gchar *name, CamelException *ex); - /* void (*set_full_name) (CamelFolder *folder, const gchar *name); */ - const gchar * (*get_name) (CamelFolder *folder, CamelException *ex); const gchar * (*get_full_name) (CamelFolder *folder, CamelException *ex); - gboolean (*can_hold_folders) (CamelFolder *folder, - CamelException *ex); + gboolean (*can_hold_folders) (CamelFolder *folder); - gboolean (*can_hold_messages) (CamelFolder *folder, - CamelException *ex); + gboolean (*can_hold_messages) (CamelFolder *folder); gboolean (*exists) (CamelFolder *folder, CamelException *ex); - gboolean (*is_open) (CamelFolder *folder, - CamelException *ex); + gboolean (*is_open) (CamelFolder *folder); CamelFolder * (*get_subfolder) (CamelFolder *folder, const gchar *folder_name, @@ -163,7 +158,7 @@ typedef struct { GList * (*expunge) (CamelFolder *folder, CamelException *ex); - gboolean (*has_message_number_capability) (CamelFolder *folder, CamelException *ex); + gboolean (*has_message_number_capability) (CamelFolder *folder); CamelMimeMessage * (*get_message_by_number) (CamelFolder *folder, gint number, @@ -197,7 +192,8 @@ typedef struct { GList * (*get_uid_list) (CamelFolder *folder, CamelException *ex); - gboolean (*has_search_capability) (CamelFolder *folder, CamelException *ex); + gboolean (*has_search_capability) (CamelFolder *folder); + GList *(*search_by_expression) (CamelFolder *folder, const char *expression, CamelException *ex); } CamelFolderClass; @@ -262,8 +258,7 @@ const GList * camel_folder_list_permanent_flags (CamelFolder *folder, CamelException *ex); CamelFolderOpenMode camel_folder_get_mode (CamelFolder *folder, CamelException *ex); -gboolean camel_folder_is_open (CamelFolder *folder, - CamelException *ex); +gboolean camel_folder_is_open (CamelFolder *folder); @@ -278,15 +273,13 @@ void camel_folder_copy_message_to (CamelFolder *folder, /* summary related operations */ -gboolean camel_folder_has_summary_capability (CamelFolder *folder, - CamelException *ex); +gboolean camel_folder_has_summary_capability (CamelFolder *folder); CamelFolderSummary *camel_folder_get_summary (CamelFolder *folder, CamelException *ex); /* number based access operations */ -gboolean camel_folder_has_message_number_capability (CamelFolder *folder, - CamelException *ex); +gboolean camel_folder_has_message_number_capability (CamelFolder *folder); CamelMimeMessage * camel_folder_get_message_by_number (CamelFolder *folder, gint number, CamelException *ex); @@ -295,8 +288,7 @@ gint camel_folder_get_message_count (CamelFolder *folder, /* uid based access operations */ -gboolean camel_folder_has_uid_capability (CamelFolder *folder, - CamelException *ex); +gboolean camel_folder_has_uid_capability (CamelFolder *folder); const gchar * camel_folder_get_message_uid (CamelFolder *folder, CamelMimeMessage *message, CamelException *ex); @@ -307,8 +299,7 @@ GList * camel_folder_get_uid_list (CamelFolder *folder, CamelException *ex); /* search api */ -gboolean camel_folder_has_search_capability (CamelFolder *folder, - CamelException *ex); +gboolean camel_folder_has_search_capability (CamelFolder *folder); GList * camel_folder_search_by_expression (CamelFolder *folder, const char *expression, CamelException *ex); |