book.h

00001 /********************************************************************\
00002  * book.h -- implements books for the postgres backend              *
00003  * Copyright (c) 2000, 2001 Linas Vepstas <linas@linas.org>         *
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 POSTGRES_BOOK_H
00025 #define POSTGRES_BOOK_H
00026 
00027 #include "gnc-engine.h"
00028 
00029 #include "PostgresBackend.h"
00030 
00031 QofBookList * pgendGetAllBooks (PGBackend *be, QofBookList *);
00032 
00033 void pgendBookRestore (PGBackend *be, QofBook *book);
00034 void pgendStoreBookNoLock (PGBackend *be, QofBook *book, int do_check_version);
00035 void pgendStoreBook (PGBackend *be, QofBook *book);
00036 
00037 void pgend_book_transfer_begin (QofBackend *, QofBook*);
00038 void pgend_book_transfer_commit (QofBackend *, QofBook*);
00039 
00040 #endif /* POSTGRES_BOOK_H */

Generated on Thu Jul 3 05:06:28 2008 for GnuCash by  doxygen 1.5.2