dialog-customer.h

00001 /*
00002  * dialog-customer.h -- Dialog(s) for Customer search and entry
00003  * Copyright (C) 2001 Derek Atkins
00004  * Author: Derek Atkins <warlord@MIT.EDU>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of
00009  * the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, contact:
00018  *
00019  * Free Software Foundation           Voice:  +1-617-542-5942
00020  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00021  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00022  */
00023 
00024 
00025 #ifndef GNC_DIALOG_CUSTOMER_H_
00026 #define GNC_DIALOG_CUSTOMER_H_
00027 
00028 typedef struct _customer_window CustomerWindow;
00029 
00030 #include "gncCustomer.h"
00031 #include "dialog-search.h"
00032 
00033 /* Functions to create and edit a customer */
00034 CustomerWindow * gnc_ui_customer_edit (GncCustomer *cust);
00035 CustomerWindow * gnc_ui_customer_new (QofBook *book);
00036 
00037 /* Search for customers */
00038 GNCSearchWindow *gnc_customer_search (GncCustomer *start, QofBook *book);
00039 
00040 /*
00041  * These callbacks are for use with the gnc_general_search widget
00042  *
00043  * select() provides a Select Dialog and returns it.
00044  * edit() opens the existing customer for editing and returns NULL.
00045  */
00046 GNCSearchWindow * gnc_customer_search_select (gpointer start, gpointer book);
00047 GNCSearchWindow * gnc_customer_search_edit (gpointer start, gpointer book);
00048 
00049 #endif /* GNC_DIALOG_CUSTOMER_H_ */

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