GnuCash  5.6-150-g038405b370+
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dialog-job.h
1 /*
2  * dialog-job.h -- Dialog(s) for Job search and entry
3  * Copyright (C) 2001,2002 Derek Atkins
4  * Author: Derek Atkins <warlord@MIT.EDU>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA gnu@gnu.org
22  */
23 
24 
25 #ifndef GNC_DIALOG_JOB_H_
26 #define GNC_DIALOG_JOB_H_
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 typedef struct _job_window JobWindow;
33 
34 #include "gncJob.h"
35 #include "gncOwner.h"
36 #include "dialog-search.h"
37 
38 /* Create or Edit a job */
39 JobWindow * gnc_ui_job_edit (GtkWindow *parent, GncJob *job);
40 JobWindow * gnc_ui_job_new (GtkWindow *parent, GncOwner *owner, QofBook *book);
41 
42 /* Search for Jobs */
43 GNCSearchWindow * gnc_job_search (GtkWindow *parent, GncJob *start,
44  GncOwner *owner, QofBook *book);
45 
46 /*
47  * These callbacks are for use with the gnc_general_search widget
48  *
49  * select() provides a Select Dialog and returns it.
50  * edit() opens the existing customer for editing and returns NULL.
51  */
52 GNCSearchWindow * gnc_job_search_select (GtkWindow *parent, gpointer start, gpointer book);
53 GNCSearchWindow * gnc_job_search_edit (GtkWindow *parent, gpointer start, gpointer book);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* GNC_DIALOG_JOB_H_ */
Business Interface: Object OWNERs.
Job Interface.