qofevent-p.h

00001 /********************************************************************
00002  * qofevent-p.h -- private engine event handling interface         *
00003  * Copyright 2000 Dave Peticolas <dave@krondo.com>                  *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021  *                                                                  *
00022  ********************************************************************/
00023 
00024 #ifndef QOF_EVENT_P_H
00025 #define QOF_EVENT_P_H
00026 
00027 #include "qofevent.h"
00028 #include "qofid.h"
00029 
00030 /* for backwards compatibility - to be moved back to qofevent.c in libqof2 */
00031 typedef struct
00032 {
00033 #ifndef QOF_DISABLE_DEPRECATED
00034     GNCEngineEventHandler old_handler;      
00035 #endif
00036     QofEventHandler handler;
00037     gpointer user_data;
00038 
00039     gint handler_id;
00040 } HandlerInfo;
00041 
00046 void
00047 qof_event_generate (const GUID * guid, QofIdType e_type, QofEventId event_id);
00048 
00049 /* generates an event even when events are suspended! */
00050 void qof_event_force (QofEntity * entity, QofEventId event_id,
00051                       gpointer event_data);
00052 
00053 #endif

Generated on Thu Jan 31 22:50:25 2008 for QOF by  doxygen 1.5.4