diff options
author | Not Zed <NotZed@Ximian.com> | 2004-11-04 13:34:05 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-11-04 13:34:05 +0800 |
commit | 0b736de5187a40f7e2c1414387cc8251e8d5ac9a (patch) | |
tree | 7daaedce122b86bda5dc333808c705e67e40c0f6 /camel/camel-store.h | |
parent | 584ff682e56b90d2a20dc77250ab691a525a2873 (diff) | |
download | gsoc2013-evolution-0b736de5187a40f7e2c1414387cc8251e8d5ac9a.tar gsoc2013-evolution-0b736de5187a40f7e2c1414387cc8251e8d5ac9a.tar.gz gsoc2013-evolution-0b736de5187a40f7e2c1414387cc8251e8d5ac9a.tar.bz2 gsoc2013-evolution-0b736de5187a40f7e2c1414387cc8251e8d5ac9a.tar.lz gsoc2013-evolution-0b736de5187a40f7e2c1414387cc8251e8d5ac9a.tar.xz gsoc2013-evolution-0b736de5187a40f7e2c1414387cc8251e8d5ac9a.tar.zst gsoc2013-evolution-0b736de5187a40f7e2c1414387cc8251e8d5ac9a.zip |
check interfaces for events too. (camel_object_trigger_event): check
2004-11-02 Not Zed <NotZed@Ximian.com>
* camel-object.c (camel_object_hook_event): check interfaces for
events too.
(camel_object_trigger_event): check interfaces for events too.
(camel_object_class_add_event): more checks for interfaces vs
normal object classes.
(camel_object_class_add_interface): add an interface to a class.
(camel_object_get_interface): query for interfaces on an object.
(camel_object_get_type): register the interface type.
svn path=/trunk/; revision=27834
Diffstat (limited to 'camel/camel-store.h')
-rw-r--r-- | camel/camel-store.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/camel/camel-store.h b/camel/camel-store.h index adffedfa31..3a7676340d 100644 --- a/camel/camel-store.h +++ b/camel/camel-store.h @@ -164,7 +164,6 @@ typedef struct { CamelException *ex); } CamelStoreClass; - /* Standard Camel function */ CamelType camel_store_get_type (void); @@ -231,6 +230,20 @@ int camel_store_folder_uri_equal (CamelStore *store, const char *uri0, const char *uri1); +typedef struct _CamelISubscribe CamelISubscribe; +struct _CamelISubscribe { + CamelInterface iface; + + gboolean (*subscribed)(CamelStore *store, const char *folder_name); + void (*subscribe)(CamelStore *store, const char *folder_name, CamelException *ex); + void (*unsubscribe)(CamelStore *store, const char *folder_name, CamelException *ex); +}; + +CamelType camel_isubscribe_get_type (void); +gboolean camel_isubscribe_subscribed(CamelStore *store, const char *name); +void camel_isubscribe_subscribe(CamelStore *store, const char *folder_name, CamelException *ex); +void camel_isubscribe_unsubscribe(CamelStore *store, const char *folder_name, CamelException *ex); + #ifdef __cplusplus } #endif /* __cplusplus */ |