00001 /********************************************************************\ 00002 * account.h -- implements accounts for 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_ACCOUNT_H 00025 #define POSTGRES_ACCOUNT_H 00026 00027 #include "Account.h" 00028 #include "qof.h" 00029 00030 #include "PostgresBackend.h" 00031 00032 void pgendGetAllAccountsInBook (PGBackend *be, QofBook *); 00033 00034 void pgendGetAllAccounts (PGBackend *be); 00035 00036 void pgendStoreAccountTree (PGBackend *be, Account *root); 00037 void pgendStoreAccountTreeNoLock (PGBackend *be, Account *root, 00038 gboolean do_mark, gboolean do_check_version); 00039 Account * pgendCopyAccountToEngine (PGBackend *be, const GUID *acct_guid); 00040 00041 void pgend_account_commit_edit (QofBackend * bend, Account * acct); 00042 00043 #endif /* POSTGRES_ACCOUNT_H */
1.5.2