GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-date-close.h
1 /*
2  * dialog-date-close.h -- Dialog to ask a question and request a date
3  * Copyright (C) 2002 Derek Atkins
4  * Author: Derek Atkins <[email protected]>
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 [email protected]
22  */
23 
24 #ifndef _DIALOG_DATE_CLOSE_H
25 #define _DIALOG_DATE_CLOSE_H
26 
27 #include "Account.h"
28 #include "qof.h"
29 #include "gncBillTerm.h"
30 
31 gboolean
32 gnc_dialog_date_close_parented (GtkWidget *parent, const char *message,
33  const char *label_message,
34  gboolean ok_is_default,
35  /* Returned data ... */
36  Timespec *date);
37 
38 
39 /*
40  * Note that the dialog will "own" (and free) the acct_types list.
41  * it should be a list of GNCAccountTypes. If memo is non-NULL,
42  * it will g_malloc() a string. The caller should g_free() it.
43  * The value of *acct will be used as preselection of the account
44  * selection widget.
45  */
46 
47 gboolean
48 gnc_dialog_dates_acct_question_parented (GtkWidget *parent, const char *message,
49  const char *ddue_label_message,
50  const char *post_label_message,
51  const char *acct_label_message,
52  const char *question_check_message,
53  gboolean ok_is_default,
54  gboolean set_default_acct,
55  GList * acct_types, GList * acct_commodities,
56  QofBook *book, GncBillTerm *terms,
57  /* Returned Data... */
58  Timespec *ddue, Timespec *post,
59  char **memo, Account **acct, gboolean *answer);
60 
61 #define gnc_dialog_dates_acct_parented(parent, message, \
62  ddue_label_message, \
63  post_label_message, \
64  acct_label_message, \
65  ok_is_default, \
66  acct_types, book, \
67  terms, \
68  /* Returned Data... */ \
69  ddue, post, \
70  memo, acct) \
71  gnc_dialog_dates_acct_question_parented (parent, message, \
72  ddue_label_message, \
73  post_label_message, \
74  acct_label_message, \
75  NULL, \
76  ok_is_default, \
77  acct_types, book, \
78  terms, \
79  /* Returned Data... */ \
80  ddue, post, \
81  memo, acct, NULL) \
82 
83 
84 gboolean
85 gnc_dialog_date_acct_parented (GtkWidget *parent, const char *message,
86  const char *date_label_message,
87  const char *acct_label_message,
88  gboolean ok_is_default,
89  GList * acct_types, QofBook *book,
90  /* Returned Data... */
91  Timespec *date, Account **acct);
92 
93 #endif /* _DIALOG_DATE_CLOSE_H */
Use a 64-bit unsigned int timespec.
Definition: gnc-date.h:299
Account handling public routines.
Billing Term interface.