20 #ifndef GNC_COMPONENT_MANAGER_H 21 #define GNC_COMPONENT_MANAGER_H 32 #define NO_COMPONENT (-1) 76 typedef void (*GNCComponentRefreshHandler) (GHashTable *changes,
88 typedef void (*GNCComponentCloseHandler) (gpointer user_data);
99 typedef gboolean (*GNCComponentFindHandler) (gpointer
find_data,
111 typedef gboolean (*GNCComponentHandler) (
const char *component_class,
119 void gnc_component_manager_init (
void);
124 void gnc_component_manager_shutdown (
void);
153 gint gnc_register_gui_component (
const char *component_class,
154 GNCComponentRefreshHandler refresh_handler,
155 GNCComponentCloseHandler close_handler,
164 void gnc_gui_component_set_session (gint component_id, gpointer session);
175 void gnc_gui_component_watch_entity (gint component_id,
188 void gnc_gui_component_watch_entity_type (gint component_id,
202 const EventInfo * gnc_gui_get_entity_events (GHashTable *changes,
210 void gnc_gui_component_clear_watches (gint component_id);
217 void gnc_unregister_gui_component (gint component_id);
227 void gnc_unregister_gui_component_by_data (
const char *component_class,
235 void gnc_suspend_gui_refresh (
void);
244 void gnc_resume_gui_refresh (
void);
253 void gnc_gui_refresh_all (
void);
258 gboolean gnc_gui_refresh_suspended (
void);
265 void gnc_close_gui_component (gint component_id);
276 void gnc_close_gui_component_by_data (
const char *component_class,
286 void gnc_close_gui_component_by_session (gpointer session);
303 GList * gnc_find_gui_components (
const char *component_class,
304 GNCComponentFindHandler find_handler,
321 gpointer gnc_find_first_gui_component (
const char *component_class,
322 GNCComponentFindHandler find_handler,
336 gint gnc_forall_gui_components (
const char *component_class,
337 GNCComponentHandler handler,
const gchar * QofIdTypeConst
QofIdTypeConst declaration.
gint QofEventId
Define the type of events allowed.
The type used to store guids in C.