~ubuntu-branches/ubuntu/quantal/gbonds/quantal

« back to all changes in this revision

Viewing changes to src/rules.h

  • Committer: Bazaar Package Importer
  • Author(s): Richard Laager
  • Date: 2007-03-14 23:50:34 UTC
  • Revision ID: james.westby@ubuntu.com-20070314235034-997qegw33jx0wb9r
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  (GBONDS) GNOME based Savings Bond Inventory Program
 
3
 *
 
4
 *  rules.h:  Savings Bond Rules module header file.
 
5
 *
 
6
 *  Copyright (C) 2000-2003  Jim Evins <evins@snaught.com>.
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License as published by
 
10
 *  the Free Software Foundation; either version 2 of the License, or
 
11
 *  (at your option) any later version.
 
12
 *
 
13
 *  This program is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 *  GNU General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU General Public License
 
19
 *  along with this program; if not, write to the Free Software
 
20
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
21
 */
 
22
 
 
23
#ifndef __RULES_H__
 
24
#define __RULES_H__
 
25
 
 
26
#include "types.h"
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
gbStatus  gb_rules_test_series_denom           (gbSeries  series,
 
31
                                                gdouble   denom );
 
32
 
 
33
gbStatus  gb_rules_test_issue                  (gbSeries  series,
 
34
                                                gbDate    idate );
 
35
 
 
36
gbStatus  gb_rules_determine_issue             (gbSeries  series,
 
37
                                                gdouble   denom,
 
38
                                                gdouble  *issue);
 
39
 
 
40
gbStatus  gb_rules_determine_maturity          (gbSeries  series,
 
41
                                                gbDate    idate,
 
42
                                                gbDate   *mdate);
 
43
 
 
44
gbStatus  gb_rules_get_last_accrual            (gbSeries  series,
 
45
                                                gbDate    idate,
 
46
                                                gbDate    rdate,
 
47
                                                gbDate    mdate,
 
48
                                                gbDate   *a1date);
 
49
 
 
50
gbStatus  gb_rules_get_next_accrual            (gbSeries  series,
 
51
                                                gbDate    idate,
 
52
                                                gbDate    rdate,
 
53
                                                gbDate    mdate,
 
54
                                                gbDate   *a2date);
 
55
 
 
56
gbStatus  gb_rules_determine_exchangeability   (gbSeries  series,
 
57
                                                gbDate    idate,
 
58
                                                gbDate    mdate,
 
59
                                                gbDate    rdate,
 
60
                                                gboolean *exchangeable_flag);
 
61
 
 
62
gbStatus  gb_rules_determine_nopay             (gbSeries  series,
 
63
                                                gbDate    idate,
 
64
                                                gbDate    rdate,
 
65
                                                gboolean *nopay_flag);
 
66
 
 
67
G_END_DECLS
 
68
 
 
69
#endif /* __RULES_H__ */
 
70
 
 
71