GnuCash 2.4.99
qofinstance-p.h
00001 /********************************************************************\
00002  * qofinstance-p.h -- private fields common to all object instances *
00003  *                                                                  *
00004  * This program is free software; you can redistribute it and/or    *
00005  * modify it under the terms of the GNU General Public License as   *
00006  * published by the Free Software Foundation; either version 2 of   *
00007  * the License, or (at your option) any later version.              *
00008  *                                                                  *
00009  * This program is distributed in the hope that it will be useful,  *
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00012  * GNU General Public License for more details.                     *
00013  *                                                                  *
00014  * You should have received a copy of the GNU General Public License*
00015  * along with this program; if not, contact:                        *
00016  *                                                                  *
00017  * Free Software Foundation           Voice:  +1-617-542-5942       *
00018  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00019  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00020  *                                                                  *
00021 \********************************************************************/
00022 /*
00023  * Object instance holds many common fields that most
00024  * gnucash objects use.
00025  *
00026  * Copyright (C) 2003 Linas Vepstas <linas@linas.org>
00027  * Copyright (c) 2007 David Hampton <hampton@employees.org>
00028  */
00029 
00030 #ifndef QOF_INSTANCE_P_H
00031 #define QOF_INSTANCE_P_H
00032 
00033 #include "qofinstance.h"
00034 
00038 void qof_instance_set_collection (gconstpointer ptr, QofCollection *col);
00039 
00040 void qof_instance_set_slots (QofInstance *, KvpFrame *);
00041 
00042 /*  Set the last_update time. Reserved for use by the SQL backend;
00043  *  used for comparing version in local memory to that in remote
00044  *  server.
00045  */
00046 void qof_instance_set_last_update (QofInstance *inst, Timespec ts);
00047 
00050 void qof_instance_set_dirty_flag (gconstpointer inst, gboolean flag);
00051 
00052 #endif /* QOF_INSTANCE_P_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines