QOF: qofevent-p.h Source File

QOF 0.7.5

qofevent-p.h
1 /********************************************************************
2 * qofevent-p.h -- private engine event handling interface *
3 * Copyright 2000 Dave Peticolas <dave@krondo.com> *
4 * *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation; either version 2 of *
8 * the License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License*
16 * along with this program; if not, contact: *
17 * *
18 * Free Software Foundation Voice: +1-617-542-5942 *
19 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20 * Boston, MA 02110-1301, USA gnu@gnu.org *
21 * *
22 ********************************************************************/
23
24 #ifndef QOF_EVENT_P_H
25 #define QOF_EVENT_P_H
26
27 #include "qofevent.h"
28 #include "qofid.h"
29
30 /* for backwards compatibility - to be moved back to qofevent.c in libqof2 */
31 typedef struct
32 {
33 #ifndef QOF_DISABLE_DEPRECATED
34 GNCEngineEventHandler old_handler;
35 #endif
36 QofEventHandler handler;
37 gpointer user_data;
38
39 gint handler_id;
40 } HandlerInfo;
41
46 void
47 qof_event_generate (const GUID * guid, QofIdType e_type, QofEventId event_id);
48
49 /* generates an event even when events are suspended! */
50 void qof_event_force (QofEntity * entity, QofEventId event_id,
51 gpointer event_data);
52
53 #endif
QofIdType
const gchar * QofIdType
Definition: qofid.h:81
qofevent.h
QOF event handling interface.
QofEntity_s
Definition: qofid.h:147
QofEventHandler
void(* QofEventHandler)(QofEntity *ent, QofEventId event_type, gpointer handler_data, gpointer event_data)
Handler invoked when an event is generated.
Definition: qofevent.h:104
HandlerInfo
Definition: qofevent-p.h:31
qofid.h
QOF entity type identification system.
GNCEngineEventHandler
void(* GNCEngineEventHandler)(GUID *entity, QofIdType type, QofEventId event_type, gpointer user_data)
Definition: deprecated.h:110
HandlerInfo::handler
QofEventHandler handler
Definition: qofevent-p.h:36
QofEventId
gint QofEventId
Definition: qofevent.h:40
_GUID
Definition: guid.h:53