~ubuntu-branches/ubuntu/natty/libofx/natty

« back to all changes in this revision

Viewing changes to doc/html/inc_2libofx_8h-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2005-11-29 00:12:00 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051129001200-aplj8zbj80f68xby
Tags: 1:0.8.0-9
Generate autotools using Debian libtool (rerun libtoolize --copy
--force, aclocal-1.9, autoconf). (Closes: #341190)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<title>LibOFX: libofx.h Source File</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
</head><body>
6
 
<!-- Generated by Doxygen 1.3.7 -->
 
6
<!-- Generated by Doxygen 1.3.9.1 -->
7
7
<div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
8
 
<h1>libofx.h</h1><a href="inc_2libofx_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">/***************************************************************************</span>
 
8
<div class="nav">
 
9
<a class="el" href="dir_000005.html">inc</a></div>
 
10
<h1>inc/libofx.h</h1><a href="inc_2libofx_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/***************************************************************************</span>
9
11
00002 <span class="comment">              libofx.h  -  Main header file for the libofx API</span>
10
12
00003 <span class="comment">                             -------------------</span>
11
13
00004 <span class="comment">    copyright            : (C) 2002 by Benoit Gr�goire</span>
42
44
00054 <span class="preprocessor"></span><span class="preprocessor">#define OFX_BALANCE_NAME_LENGTH        32 + 1</span>
43
45
00055 <span class="preprocessor"></span><span class="preprocessor">#define OFX_BALANCE_DESCRIPTION_LENGTH 80 + 1</span>
44
46
00056 <span class="preprocessor"></span><span class="preprocessor">#define OFX_CURRENCY_LENGTH            3 + 1 </span><span class="comment">/* In ISO-4217 format */</span>
45
 
00057 <span class="preprocessor">#define OFX_BANKID_LENGTH              9</span>
 
47
00057 <span class="preprocessor">#define OFX_BANKID_LENGTH              9 + 1</span>
46
48
00058 <span class="preprocessor"></span><span class="preprocessor">#define OFX_BRANCHID_LENGTH            22 + 1</span>
47
49
00059 <span class="preprocessor"></span><span class="preprocessor">#define OFX_ACCTID_LENGTH              22 + 1 </span>
48
50
00060 <span class="preprocessor"></span><span class="preprocessor">#define OFX_ACCTKEY_LENGTH             22 + 1</span>
56
58
00068 <span class="preprocessor"></span><span class="preprocessor">#define OFX_UNIQUE_ID_TYPE_LENGTH      10 + 1</span>
57
59
00069 <span class="preprocessor"></span><span class="preprocessor">#define OFX_SECNAME_LENGTH             32 + 1</span>
58
60
00070 <span class="preprocessor"></span><span class="preprocessor">#define OFX_TICKER_LENGTH              32 + 1</span>
59
 
00071 <span class="preprocessor"></span>
60
 
00072 <span class="comment">/*</span>
61
 
00073 <span class="comment">#define OFX_STATEMENT_CB               0;</span>
62
 
00074 <span class="comment">#define OFX_ACCOUNT_CB                 1;</span>
63
 
00075 <span class="comment">#define OFX_TRACSACTION_CB             2;</span>
64
 
00076 <span class="comment">#define OFX_SECURITY_CB                3;</span>
65
 
00077 <span class="comment">#define OFX_STATUS_CB                  4;</span>
66
 
00078 <span class="comment">*/</span>
67
 
00079 
68
 
00080 <span class="keyword">typedef</span> <span class="keywordtype">void</span> * LibofxContextPtr;
69
 
00086 CFCT LibofxContextPtr <a class="code" href="inc_2libofx_8h.html#a79">libofx_get_new_context</a>();
70
 
00092 CFCT <span class="keywordtype">int</span> <a class="code" href="inc_2libofx_8h.html#a80">libofx_free_context</a>( LibofxContextPtr );
71
 
00093 
72
 
<a name="l00095"></a><a class="code" href="inc_2libofx_8h.html#a90">00095</a> <span class="keyword">enum</span> <a class="code" href="inc_2libofx_8h.html#a90">LibofxFileFormat</a>{ <a class="code" href="inc_2libofx_8h.html#a90a34">AUTODETECT</a>, 
73
 
00096                      <a class="code" href="inc_2libofx_8h.html#a90a35">OFX</a>, 
74
 
00097                      <a class="code" href="inc_2libofx_8h.html#a90a36">OFC</a>, 
75
 
00098                      <a class="code" href="inc_2libofx_8h.html#a90a37">QIF</a>, 
76
 
00099                      <a class="code" href="inc_2libofx_8h.html#a90a38">UNKNOWN</a>, 
77
 
00100                      <a class="code" href="inc_2libofx_8h.html#a90a39">LAST</a> 
78
 
00101 };
79
 
00102 
80
 
00103 <span class="keyword">struct </span>LibofxFileFormatInfo{
81
 
00104 <span class="keyword">enum</span> <a class="code" href="inc_2libofx_8h.html#a90">LibofxFileFormat</a> format;
82
 
00105 <span class="keyword">const</span> <span class="keywordtype">char</span> * format_name;  
83
 
00106 <span class="keyword">const</span> <span class="keywordtype">char</span> * description; 
84
 
00107 };
85
 
00108 
86
 
00109 <span class="keyword">const</span> <span class="keyword">struct </span>LibofxFileFormatInfo LibofxImportFormatList[] = 
87
 
00110 {
88
 
00111 {<a class="code" href="inc_2libofx_8h.html#a90a34">AUTODETECT</a>, <span class="stringliteral">"AUTODETECT"</span>, <span class="stringliteral">"AUTODETECT (File format will be automatically detected later)"</span>},
89
 
00112 {<a class="code" href="inc_2libofx_8h.html#a90a35">OFX</a>, <span class="stringliteral">"OFX"</span>, <span class="stringliteral">"OFX (Open Financial eXchange (OFX or QFX))"</span>},
90
 
00113 {<a class="code" href="inc_2libofx_8h.html#a90a36">OFC</a>, <span class="stringliteral">"OFC"</span>, <span class="stringliteral">"OFC (Microsoft Open Financial Connectivity)"</span>},
91
 
00114 {<a class="code" href="inc_2libofx_8h.html#a90a37">QIF</a>, <span class="stringliteral">"QIF"</span>, <span class="stringliteral">"QIF (Intuit Quicken Interchange Format) NOT IMPLEMENTED"</span>},
92
 
00115 {<a class="code" href="inc_2libofx_8h.html#a90a39">LAST</a>, <span class="stringliteral">"LAST"</span>, <span class="stringliteral">"Not a file format, meant as a loop breaking condition"</span>}
93
 
00116 };
94
 
00117 
95
 
00118 <span class="keyword">const</span> <span class="keyword">struct </span>LibofxFileFormatInfo LibofxExportFormatList[] = 
96
 
00119 {
97
 
00120 {<a class="code" href="inc_2libofx_8h.html#a90a37">QIF</a>, <span class="stringliteral">"QIF"</span>, <span class="stringliteral">"QIF (Intuit Quicken Interchange Format) NOT IMPLEMENTED"</span>},
98
 
00121 {<a class="code" href="inc_2libofx_8h.html#a90a39">LAST</a>, <span class="stringliteral">"LAST"</span>, <span class="stringliteral">"Not a file format, meant as a loop breaking condition"</span>}
99
 
00122 };
100
 
00123 
101
 
00131 CFCT <span class="keyword">enum</span> <a class="code" href="inc_2libofx_8h.html#a90">LibofxFileFormat</a> libofx_get_file_format_from_str(<span class="keyword">const</span> <span class="keyword">struct</span> LibofxFileFormatInfo format_list[], <span class="keyword">const</span> <span class="keywordtype">char</span> * file_type_string);
102
 
00132 
103
 
00140 CFCT <span class="keyword">const</span> <span class="keywordtype">char</span> * libofx_get_file_format_description(<span class="keyword">const</span> <span class="keyword">struct</span> LibofxFileFormatInfo format_list[], <span class="keyword">enum</span> LibofxFileFormat file_format);
104
 
00141 
105
 
00148 CFCT <span class="keywordtype">int</span> <a class="code" href="inc_2libofx_8h.html#a83">libofx_proc_file</a>(LibofxContextPtr libofx_context,
106
 
00149                           <span class="keyword">const</span> <span class="keywordtype">char</span> * p_filename,
107
 
00150                           <span class="keyword">enum</span> LibofxFileFormat ftype);
108
 
00151 
109
 
00152 
110
 
<a name="l00165"></a><a class="code" href="structOfxStatusData.html">00165</a> <span class="keyword">struct </span><a class="code" href="structOfxStatusData.html">OfxStatusData</a>{  
111
 
00170   <span class="keywordtype">char</span> ofx_element_name[OFX_ELEMENT_NAME_LENGTH];
112
 
00172   <span class="keywordtype">int</span> <a class="code" href="structOfxStatusData.html#z0_1">ofx_element_name_valid</a>;
113
 
00173   
114
 
00178   <span class="keywordtype">int</span> <a class="code" href="structOfxStatusData.html#z1_1">code</a>;            
115
 
<a name="l00179"></a><a class="code" href="structOfxStatusData.html#z1_2">00179</a>   <span class="keywordtype">char</span>* <a class="code" href="structOfxStatusData.html#z1_2">name</a>;          
116
 
<a name="l00180"></a><a class="code" href="structOfxStatusData.html#z1_3">00180</a>   <span class="keywordtype">char</span>* <a class="code" href="structOfxStatusData.html#z1_3">description</a>;   
117
 
00181   <span class="keywordtype">int</span> <a class="code" href="structOfxStatusData.html#z1_4">code_valid</a>;      
118
 
<a name="l00184"></a><a class="code" href="structOfxStatusData.html#z1_0">00184</a>     <span class="keyword">enum</span> <a class="code" href="structOfxStatusData.html#z1_0">Severity</a>{<a class="code" href="structOfxStatusData.html#z11_0w0">INFO</a>, 
119
 
00185                 <a class="code" href="structOfxStatusData.html#z11_0w1">WARN</a>, 
120
 
00186                 <a class="code" href="structOfxStatusData.html#z11_0w2">ERROR</a> 
121
 
00187   } severity;
122
 
00188   <span class="keywordtype">int</span> severity_valid;
123
 
00189   
124
 
<a name="l00195"></a><a class="code" href="structOfxStatusData.html#z2_0">00195</a>   <span class="keywordtype">char</span>* <a class="code" href="structOfxStatusData.html#z2_0">server_message</a>; 
125
 
00197   <span class="keywordtype">int</span> server_message_valid;
126
 
00199 };
127
 
00200 
128
 
00201 
129
 
<a name="l00210"></a><a class="code" href="inc_2libofx_8h.html#a29">00210</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcStatusCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxStatusData.html">OfxStatusData</a> data, void * status_data);
130
 
00211 
131
 
<a name="l00218"></a><a class="code" href="structOfxAccountData.html">00218</a> <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a>{
132
 
00219   
133
 
00230   <span class="keywordtype">char</span> <a class="code" href="structOfxAccountData.html#z3_1">account_id</a>[OFX_ACCOUNT_ID_LENGTH];
134
 
00236   <span class="keywordtype">char</span> <a class="code" href="structOfxAccountData.html#z3_2">account_name</a>[OFX_ACCOUNT_NAME_LENGTH];
135
 
00237   <span class="keywordtype">int</span> account_id_valid;<span class="comment">/* Use for both account_id and account_name */</span>
136
 
00238 
137
 
<a name="l00240"></a><a class="code" href="structOfxAccountData.html#z3_0">00240</a>     <span class="keyword">enum</span> <a class="code" href="structOfxAccountData.html#z3_0">AccountType</a>{
138
 
00241     <a class="code" href="structOfxAccountData.html#z13_0w0">OFX_CHECKING</a>,  
139
 
00242     <a class="code" href="structOfxAccountData.html#z13_0w1">OFX_SAVINGS</a>,   
140
 
00243     <a class="code" href="structOfxAccountData.html#z13_0w2">OFX_MONEYMRKT</a>, 
141
 
00244     <a class="code" href="structOfxAccountData.html#z13_0w3">OFX_CREDITLINE</a>,
142
 
00245     <a class="code" href="structOfxAccountData.html#z13_0w4">OFX_CMA</a>,       
143
 
00246     <a class="code" href="structOfxAccountData.html#z13_0w5">OFX_CREDITCARD</a>,
144
 
00247     <a class="code" href="structOfxAccountData.html#z13_0w6">OFX_INVESTMENT</a> 
145
 
00248   } account_type;
146
 
00249   <span class="keywordtype">int</span> account_type_valid;
147
 
00250   <span class="keywordtype">char</span> currency[OFX_CURRENCY_LENGTH]; 
148
 
00251   <span class="keywordtype">int</span> currency_valid;
149
 
00252 
150
 
00253 };
151
 
00254 
152
 
<a name="l00267"></a><a class="code" href="inc_2libofx_8h.html#a30">00267</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcAccountCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a> data, void * account_data);
153
 
00268 
154
 
<a name="l00275"></a><a class="code" href="structOfxSecurityData.html">00275</a> <span class="keyword">struct </span><a class="code" href="structOfxSecurityData.html">OfxSecurityData</a>{
155
 
00281   <span class="keywordtype">char</span> <a class="code" href="structOfxSecurityData.html#z4_0">unique_id</a>[OFX_UNIQUE_ID_LENGTH];   
156
 
00282   <span class="keywordtype">int</span> unique_id_valid;
157
 
00283   <span class="keywordtype">char</span> <a class="code" href="structOfxSecurityData.html#z4_2">unique_id_type</a>[OFX_UNIQUE_ID_TYPE_LENGTH];
158
 
00285   <span class="keywordtype">int</span> unique_id_type_valid;
159
 
00286   <span class="keywordtype">char</span> <a class="code" href="structOfxSecurityData.html#z4_4">secname</a>[OFX_SECNAME_LENGTH];
160
 
00287   <span class="keywordtype">int</span> secname_valid;
161
 
00288 
162
 
00294   <span class="keywordtype">char</span> <a class="code" href="structOfxSecurityData.html#z5_0">ticker</a>[OFX_TICKER_LENGTH];
163
 
00295   <span class="keywordtype">int</span> ticker_valid;
164
 
00296 
165
 
00297   <span class="keywordtype">double</span> <a class="code" href="structOfxSecurityData.html#z5_2">unitprice</a>;
166
 
00299   <span class="keywordtype">int</span> unitprice_valid;
167
 
00300 
168
 
00301   time_t <a class="code" href="structOfxSecurityData.html#z5_4">date_unitprice</a>;
169
 
00302   <span class="keywordtype">int</span> date_unitprice_valid;
170
 
00303 
171
 
00304   <span class="keywordtype">char</span> <a class="code" href="structOfxSecurityData.html#z5_6">currency</a>[OFX_CURRENCY_LENGTH]; 
172
 
00307   <span class="keywordtype">int</span> currency_valid;
173
 
00308   <span class="keywordtype">char</span> <a class="code" href="structOfxSecurityData.html#z5_8">memo</a>[OFX_MEMO2_LENGTH];
174
 
00309   <span class="keywordtype">int</span> memo_valid;
175
 
00310 };<span class="comment">/* end struct OfxSecurityData */</span>
176
 
00311 
177
 
<a name="l00323"></a><a class="code" href="inc_2libofx_8h.html#a31">00323</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcSecurityCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxSecurityData.html">OfxSecurityData</a> data, void * security_data);
178
 
00324 
179
 
<a name="l00325"></a><a class="code" href="inc_2libofx_8h.html#a91">00325</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
180
 
00326     <a class="code" href="inc_2libofx_8h.html#a91a40">OFX_CREDIT</a>,     
181
 
00327     <a class="code" href="inc_2libofx_8h.html#a91a41">OFX_DEBIT</a>,      
182
 
00328     <a class="code" href="inc_2libofx_8h.html#a91a42">OFX_INT</a>,        
183
 
00329     <a class="code" href="inc_2libofx_8h.html#a91a43">OFX_DIV</a>,        
184
 
00330     <a class="code" href="inc_2libofx_8h.html#a91a44">OFX_FEE</a>,        
185
 
00331     <a class="code" href="inc_2libofx_8h.html#a91a45">OFX_SRVCHG</a>,     
186
 
00332     <a class="code" href="inc_2libofx_8h.html#a91a46">OFX_DEP</a>,        
187
 
00333     <a class="code" href="inc_2libofx_8h.html#a91a47">OFX_ATM</a>,        
188
 
00334     <a class="code" href="inc_2libofx_8h.html#a91a48">OFX_POS</a>,        
189
 
00335     <a class="code" href="inc_2libofx_8h.html#a91a49">OFX_XFER</a>,       
190
 
00336     <a class="code" href="inc_2libofx_8h.html#a91a50">OFX_CHECK</a>,      
191
 
00337     <a class="code" href="inc_2libofx_8h.html#a91a51">OFX_PAYMENT</a>,    
192
 
00338     <a class="code" href="inc_2libofx_8h.html#a91a52">OFX_CASH</a>,       
193
 
00339     <a class="code" href="inc_2libofx_8h.html#a91a53">OFX_DIRECTDEP</a>,  
194
 
00340     <a class="code" href="inc_2libofx_8h.html#a91a54">OFX_DIRECTDEBIT</a>,
195
 
00341     <a class="code" href="inc_2libofx_8h.html#a91a55">OFX_REPEATPMT</a>,  
196
 
00342     <a class="code" href="inc_2libofx_8h.html#a91a56">OFX_OTHER</a>       
197
 
00343   } <a class="code" href="inc_2libofx_8h.html#a91">TransactionType</a>;
198
 
00344 
199
 
<a name="l00345"></a><a class="code" href="inc_2libofx_8h.html#a92">00345</a> <span class="keyword">typedef</span>  <span class="keyword">enum</span>{
200
 
00346     <a class="code" href="inc_2libofx_8h.html#a92a57">OFX_BUYDEBT</a>,        
201
 
00347     <a class="code" href="inc_2libofx_8h.html#a92a58">OFX_BUYMF</a>,          
202
 
00348     <a class="code" href="inc_2libofx_8h.html#a92a59">OFX_BUYOPT</a>,         
203
 
00349     <a class="code" href="inc_2libofx_8h.html#a92a60">OFX_BUYOTHER</a>,       
204
 
00350     <a class="code" href="inc_2libofx_8h.html#a92a61">OFX_BUYSTOCK</a>,       
205
 
00351     <a class="code" href="inc_2libofx_8h.html#a92a62">OFX_CLOSUREOPT</a>,     
206
 
00352     <a class="code" href="inc_2libofx_8h.html#a92a63">OFX_INCOME</a>,         
207
 
00353     <a class="code" href="inc_2libofx_8h.html#a92a64">OFX_INVEXPENSE</a>,     
208
 
00354     <a class="code" href="inc_2libofx_8h.html#a92a65">OFX_JRNLFUND</a>,       
209
 
00355     <a class="code" href="inc_2libofx_8h.html#a92a66">OFX_JRNLSEC</a>,        
210
 
00356     <a class="code" href="inc_2libofx_8h.html#a92a67">OFX_MARGININTEREST</a>, 
211
 
00357     <a class="code" href="inc_2libofx_8h.html#a92a68">OFX_REINVEST</a>,       
212
 
00358     <a class="code" href="inc_2libofx_8h.html#a92a69">OFX_RETOFCAP</a>,       
213
 
00359     <a class="code" href="inc_2libofx_8h.html#a92a70">OFX_SELLDEBT</a>,       
214
 
00360     <a class="code" href="inc_2libofx_8h.html#a92a71">OFX_SELLMF</a>,         
215
 
00361     <a class="code" href="inc_2libofx_8h.html#a92a72">OFX_SELLOPT</a>,        
216
 
00362     <a class="code" href="inc_2libofx_8h.html#a92a73">OFX_SELLOTHER</a>,      
217
 
00363     <a class="code" href="inc_2libofx_8h.html#a92a74">OFX_SELLSTOCK</a>,      
218
 
00364     <a class="code" href="inc_2libofx_8h.html#a92a75">OFX_SPLIT</a>,          
219
 
00365     <a class="code" href="inc_2libofx_8h.html#a92a76">OFX_TRANSFER</a>        
220
 
00366   }  <a class="code" href="inc_2libofx_8h.html#a92">InvTransactionType</a>;
221
 
<a name="l00367"></a><a class="code" href="inc_2libofx_8h.html#a93">00367</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
222
 
00368     <a class="code" href="inc_2libofx_8h.html#a93a77">DELETE</a>, 
223
 
00370     <a class="code" href="inc_2libofx_8h.html#a93a78">REPLACE</a> 
224
 
00372   } <a class="code" href="inc_2libofx_8h.html#a93">FiIdCorrectionAction</a>;
225
 
00373 
226
 
<a name="l00380"></a><a class="code" href="structOfxTransactionData.html">00380</a> <span class="keyword">struct </span><a class="code" href="structOfxTransactionData.html">OfxTransactionData</a>{
227
 
00381   
228
 
00387   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z6_0">account_id</a>[OFX_ACCOUNT_ID_LENGTH];
229
 
<a name="l00390"></a><a class="code" href="structOfxTransactionData.html#z6_1">00390</a>   <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a> * <a class="code" href="structOfxTransactionData.html#z6_1">account_ptr</a>; 
230
 
00392   <span class="keywordtype">int</span> account_id_valid;
231
 
00393 
232
 
00394   <a class="code" href="inc_2libofx_8h.html#a91">TransactionType</a> transactiontype;
233
 
00395   <span class="keywordtype">int</span> <a class="code" href="structOfxTransactionData.html#z6_4">transactiontype_valid</a>;
234
 
00396  
235
 
00400   <a class="code" href="inc_2libofx_8h.html#a92">InvTransactionType</a> invtransactiontype;
236
 
00401   <span class="keywordtype">int</span>  invtransactiontype_valid;
237
 
00402 
238
 
00403   <span class="keywordtype">double</span> <a class="code" href="structOfxTransactionData.html#z6_7">units</a>;     
239
 
00409   <span class="keywordtype">int</span> units_valid;
240
 
00410   <span class="keywordtype">double</span> <a class="code" href="structOfxTransactionData.html#z6_9">unitprice</a>; 
241
 
00412   <span class="keywordtype">int</span> unitprice_valid;
242
 
00413   <span class="keywordtype">double</span> <a class="code" href="structOfxTransactionData.html#z6_11">amount</a>;    
243
 
00417   <span class="keywordtype">int</span> amount_valid;
244
 
00418   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z6_13">fi_id</a>[256];  
245
 
00421   <span class="keywordtype">int</span> fi_id_valid;
246
 
00422   
247
 
00430   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_0">unique_id</a>[OFX_UNIQUE_ID_LENGTH];  
248
 
00431   <span class="keywordtype">int</span> unique_id_valid;
249
 
00432   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_2">unique_id_type</a>[OFX_UNIQUE_ID_TYPE_LENGTH];
250
 
00434   <span class="keywordtype">int</span> unique_id_type_valid;
251
 
00435   <span class="keyword">struct </span><a class="code" href="structOfxSecurityData.html">OfxSecurityData</a> *security_data_ptr;  
252
 
00436   <span class="keywordtype">int</span> <a class="code" href="structOfxTransactionData.html#z7_5">security_data_valid</a>;
253
 
00437   
254
 
00438   time_t <a class="code" href="structOfxTransactionData.html#z7_6">date_posted</a>;
255
 
00443   <span class="keywordtype">int</span> date_posted_valid;
256
 
00444   
257
 
00445   time_t <a class="code" href="structOfxTransactionData.html#z7_8">date_initiated</a>;
258
 
00451   <span class="keywordtype">int</span> date_initiated_valid;
259
 
00452   time_t <a class="code" href="structOfxTransactionData.html#z7_10">date_funds_available</a>;
260
 
00455   <span class="keywordtype">int</span> date_funds_available_valid;
261
 
00459   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_12">fi_id_corrected</a>[256];
262
 
00460   <span class="keywordtype">int</span> fi_id_corrected_valid;
263
 
00463   <a class="code" href="inc_2libofx_8h.html#a93">FiIdCorrectionAction</a> <a class="code" href="structOfxTransactionData.html#z7_14">fi_id_correction_action</a>;
264
 
00464   <span class="keywordtype">int</span> fi_id_correction_action_valid;
265
 
00465   
266
 
00468   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_16">server_transaction_id</a>[OFX_SVRTID2_LENGTH];
267
 
00469   <span class="keywordtype">int</span> server_transaction_id_valid;
268
 
00473 <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_18">check_number</a>[OFX_CHECK_NUMBER_LENGTH];
269
 
00474   <span class="keywordtype">int</span> check_number_valid;
270
 
00477   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_20">reference_number</a>[OFX_REFERENCE_NUMBER_LENGTH];
271
 
00478   <span class="keywordtype">int</span> reference_number_valid;
272
 
00479   <span class="keywordtype">long</span> <span class="keywordtype">int</span> <a class="code" href="structOfxTransactionData.html#z7_22">standard_industrial_code</a>;
273
 
00481   <span class="keywordtype">int</span> standard_industrial_code_valid;
274
 
00482   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_24">payee_id</a>[OFX_SVRTID2_LENGTH];
275
 
00483   <span class="keywordtype">int</span> payee_id_valid;
276
 
00484   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_26">name</a>[OFX_TRANSACTION_NAME_LENGTH];
277
 
00486   <span class="keywordtype">int</span> name_valid;
278
 
00487   <span class="keywordtype">char</span> <a class="code" href="structOfxTransactionData.html#z7_28">memo</a>[OFX_MEMO2_LENGTH];
279
 
00488   <span class="keywordtype">int</span> memo_valid;
280
 
00489 
281
 
00490   <span class="comment">/*********** NOT YET COMPLETE!!! *********************/</span>
282
 
00491 };
283
 
00492 
284
 
<a name="l00501"></a><a class="code" href="inc_2libofx_8h.html#a32">00501</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcTransactionCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxTransactionData.html">OfxTransactionData</a> data, void * transaction_data);
285
 
00502 
286
 
<a name="l00511"></a><a class="code" href="structOfxStatementData.html">00511</a> <span class="keyword">struct </span><a class="code" href="structOfxStatementData.html">OfxStatementData</a>{
287
 
00512 
288
 
00520   <span class="keywordtype">char</span> <a class="code" href="structOfxStatementData.html#z8_0">currency</a>[OFX_CURRENCY_LENGTH]; 
289
 
00521   <span class="keywordtype">int</span> currency_valid;
290
 
00522   <span class="keywordtype">char</span> <a class="code" href="structOfxStatementData.html#z8_2">account_id</a>[OFX_ACCOUNT_ID_LENGTH];
291
 
<a name="l00524"></a><a class="code" href="structOfxStatementData.html#z8_3">00524</a>   <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a> * <a class="code" href="structOfxStatementData.html#z8_3">account_ptr</a>; 
292
 
00526   <span class="keywordtype">int</span> account_id_valid;
293
 
00529   <span class="keywordtype">double</span> <a class="code" href="structOfxStatementData.html#z8_5">ledger_balance</a>;
294
 
00530   <span class="keywordtype">int</span> ledger_balance_valid;
295
 
00531   time_t <a class="code" href="structOfxStatementData.html#z8_7">ledger_balance_date</a>;
296
 
00532   <span class="keywordtype">int</span> ledger_balance_date_valid;
297
 
00533   
298
 
00539   <span class="keywordtype">double</span> <a class="code" href="structOfxStatementData.html#z9_0">available_balance</a>; 
299
 
00542   <span class="keywordtype">int</span> available_balance_valid;
300
 
00543   time_t available_balance_date;
301
 
00544   <span class="keywordtype">int</span> <a class="code" href="structOfxStatementData.html#z9_3">available_balance_date_valid</a>;
302
 
00549   time_t <a class="code" href="structOfxStatementData.html#z9_4">date_start</a>;
303
 
00550   <span class="keywordtype">int</span> date_start_valid;
304
 
00555   time_t <a class="code" href="structOfxStatementData.html#z9_6">date_end</a>;
305
 
00556   <span class="keywordtype">int</span> date_end_valid;
306
 
00559   <span class="keywordtype">char</span> <a class="code" href="structOfxStatementData.html#z9_8">marketing_info</a>[OFX_MARKETING_INFO_LENGTH];
307
 
00560   <span class="keywordtype">int</span> marketing_info_valid;
308
 
00561 };
309
 
00562 
310
 
<a name="l00570"></a><a class="code" href="inc_2libofx_8h.html#a33">00570</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcStatementCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxStatementData.html">OfxStatementData</a> data, void * statement_data);
311
 
00571 
312
 
<a name="l00575"></a><a class="code" href="structOfxCurrency.html">00575</a> <span class="keyword">struct </span><a class="code" href="structOfxCurrency.html">OfxCurrency</a>{
313
 
00576   <span class="keywordtype">char</span> <a class="code" href="structOfxCurrency.html#o0">currency</a>[OFX_CURRENCY_LENGTH]; 
314
 
00577   <span class="keywordtype">double</span> <a class="code" href="structOfxCurrency.html#o1">exchange_rate</a>;  
315
 
00578   <span class="keywordtype">int</span> <a class="code" href="structOfxCurrency.html#o2">must_convert</a>;   
 
61
00071 <span class="preprocessor"></span><span class="preprocessor">#define OFX_ORG_LENGTH                 32 + 1</span>
 
62
00072 <span class="preprocessor"></span><span class="preprocessor">#define OFX_FID_LENGTH                 32 + 1</span>
 
63
00073 <span class="preprocessor"></span><span class="preprocessor">#define OFX_USERID_LENGTH              32 + 1</span>
 
64
00074 <span class="preprocessor"></span><span class="preprocessor">#define OFX_USERPASS_LENGTH            32 + 1</span>
 
65
00075 <span class="preprocessor"></span>
 
66
00076 <span class="comment">/*</span>
 
67
00077 <span class="comment">#define OFX_STATEMENT_CB               0;</span>
 
68
00078 <span class="comment">#define OFX_ACCOUNT_CB                 1;</span>
 
69
00079 <span class="comment">#define OFX_TRACSACTION_CB             2;</span>
 
70
00080 <span class="comment">#define OFX_SECURITY_CB                3;</span>
 
71
00081 <span class="comment">#define OFX_STATUS_CB                  4;</span>
 
72
00082 <span class="comment">*/</span>
 
73
00083 
 
74
00084 <span class="keyword">typedef</span> <span class="keywordtype">void</span> * LibofxContextPtr;
 
75
00090 CFCT LibofxContextPtr <a class="code" href="inc_2libofx_8h.html#a88">libofx_get_new_context</a>();
 
76
00096 CFCT <span class="keywordtype">int</span> <a class="code" href="inc_2libofx_8h.html#a89">libofx_free_context</a>( LibofxContextPtr );
 
77
00097 
 
78
<a name="l00099"></a><a class="code" href="inc_2libofx_8h.html#a101">00099</a> <span class="keyword">enum</span> <a class="code" href="inc_2libofx_8h.html#a101">LibofxFileFormat</a>{ AUTODETECT, 
 
79
00100                      OFX, 
 
80
00101                      OFC, 
 
81
00102                      QIF, 
 
82
00103                      UNKNOWN, 
 
83
00104                      <a class="code" href="inc_2libofx_8h.html#a101a43">LAST</a> 
 
84
00105 };
 
85
00106 
 
86
00107 <span class="keyword">struct </span>LibofxFileFormatInfo{
 
87
00108 <span class="keyword">enum</span> <a class="code" href="inc_2libofx_8h.html#a101">LibofxFileFormat</a> format;
 
88
00109 <span class="keyword">const</span> <span class="keywordtype">char</span> * format_name;  
 
89
00110 <span class="keyword">const</span> <span class="keywordtype">char</span> * description; 
 
90
00111 };
 
91
00112 
 
92
00113 
 
93
00114 <span class="preprocessor">#ifndef OFX_AQUAMANIAC_UGLY_HACK1</span>
 
94
00115 <span class="preprocessor"></span>
 
95
00116 <span class="keyword">const</span> <span class="keyword">struct </span>LibofxFileFormatInfo LibofxImportFormatList[] = 
 
96
00117 {
 
97
00118 {AUTODETECT, <span class="stringliteral">"AUTODETECT"</span>, <span class="stringliteral">"AUTODETECT (File format will be automatically detected later)"</span>},
 
98
00119 {OFX, <span class="stringliteral">"OFX"</span>, <span class="stringliteral">"OFX (Open Financial eXchange (OFX or QFX))"</span>},
 
99
00120 {OFC, <span class="stringliteral">"OFC"</span>, <span class="stringliteral">"OFC (Microsoft Open Financial Connectivity)"</span>},
 
100
00121 {QIF, <span class="stringliteral">"QIF"</span>, <span class="stringliteral">"QIF (Intuit Quicken Interchange Format) NOT IMPLEMENTED"</span>},
 
101
00122 {LAST, <span class="stringliteral">"LAST"</span>, <span class="stringliteral">"Not a file format, meant as a loop breaking condition"</span>}
 
102
00123 };
 
103
00124 
 
104
00125 <span class="keyword">const</span> <span class="keyword">struct </span>LibofxFileFormatInfo LibofxExportFormatList[] = 
 
105
00126 {
 
106
00127 {QIF, <span class="stringliteral">"QIF"</span>, <span class="stringliteral">"QIF (Intuit Quicken Interchange Format) NOT IMPLEMENTED"</span>},
 
107
00128 {LAST, <span class="stringliteral">"LAST"</span>, <span class="stringliteral">"Not a file format, meant as a loop breaking condition"</span>}
 
108
00129 };
 
109
00130 
 
110
00138 CFCT <span class="keyword">enum</span> <a class="code" href="inc_2libofx_8h.html#a101">LibofxFileFormat</a> libofx_get_file_format_from_str(<span class="keyword">const</span> <span class="keyword">struct</span> LibofxFileFormatInfo format_list[], <span class="keyword">const</span> <span class="keywordtype">char</span> * file_type_string);
 
111
00139 
 
112
00147 CFCT <span class="keyword">const</span> <span class="keywordtype">char</span> * libofx_get_file_format_description(<span class="keyword">const</span> <span class="keyword">struct</span> LibofxFileFormatInfo format_list[], <span class="keyword">enum</span> LibofxFileFormat file_format);
 
113
00148 
 
114
00149 <span class="preprocessor">#endif</span>
 
115
00150 <span class="preprocessor"></span>
 
116
00157 CFCT <span class="keywordtype">int</span> <a class="code" href="inc_2libofx_8h.html#a92">libofx_proc_file</a>(LibofxContextPtr libofx_context,
 
117
00158                           <span class="keyword">const</span> <span class="keywordtype">char</span> * p_filename,
 
118
00159                           <span class="keyword">enum</span> LibofxFileFormat ftype);
 
119
00160 
 
120
00161 
 
121
<a name="l00174"></a><a class="code" href="structOfxStatusData.html">00174</a> <span class="keyword">struct </span><a class="code" href="structOfxStatusData.html">OfxStatusData</a>{  
 
122
00179   <span class="keywordtype">char</span> ofx_element_name[OFX_ELEMENT_NAME_LENGTH];
 
123
00181   <span class="keywordtype">int</span> ofx_element_name_valid;
 
124
00182   
 
125
00187   <span class="keywordtype">int</span> code;            
 
126
<a name="l00188"></a><a class="code" href="structOfxStatusData.html#z9_2">00188</a>   <span class="keywordtype">char</span>* name;          
 
127
<a name="l00189"></a><a class="code" href="structOfxStatusData.html#z9_3">00189</a>   <span class="keywordtype">char</span>* description;   
 
128
00190   <span class="keywordtype">int</span> code_valid;      
 
129
<a name="l00193"></a><a class="code" href="structOfxStatusData.html#z9_0">00193</a>     <span class="keyword">enum</span> Severity{INFO, 
 
130
00194                 WARN, 
 
131
00195                 <a class="code" href="messages_8hh.html#a12a9">ERROR</a> 
 
132
00196   } severity;
 
133
00197   <span class="keywordtype">int</span> severity_valid;
 
134
00198   
 
135
<a name="l00204"></a><a class="code" href="structOfxStatusData.html#z10_0">00204</a>   <span class="keywordtype">char</span>* server_message; 
 
136
00206   <span class="keywordtype">int</span> server_message_valid;
 
137
00208 };
 
138
00209 
 
139
00210 
 
140
<a name="l00219"></a><a class="code" href="inc_2libofx_8h.html#a33">00219</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcStatusCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxStatusData.html">OfxStatusData</a> data, void * status_data);
 
141
00220 
 
142
<a name="l00227"></a><a class="code" href="structOfxAccountData.html">00227</a> <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a>{
 
143
00228   
 
144
00239   <span class="keywordtype">char</span> account_id[OFX_ACCOUNT_ID_LENGTH];
 
145
00245   <span class="keywordtype">char</span> account_name[OFX_ACCOUNT_NAME_LENGTH];
 
146
00246   <span class="keywordtype">int</span> account_id_valid;<span class="comment">/* Use for both account_id and account_name */</span>
 
147
00247 
 
148
<a name="l00249"></a><a class="code" href="structOfxAccountData.html#z11_0">00249</a>     <span class="keyword">enum</span> AccountType{
 
149
00250     OFX_CHECKING,  
 
150
00251     OFX_SAVINGS,   
 
151
00252     OFX_MONEYMRKT, 
 
152
00253     OFX_CREDITLINE,
 
153
00254     OFX_CMA,       
 
154
00255     OFX_CREDITCARD,
 
155
00256     OFX_INVESTMENT 
 
156
00257   } account_type;
 
157
00258   <span class="keywordtype">int</span> account_type_valid;
 
158
00259   <span class="keywordtype">char</span> currency[OFX_CURRENCY_LENGTH]; 
 
159
00260   <span class="keywordtype">int</span> currency_valid;
 
160
00261 
 
161
00262   <span class="keywordtype">char</span> bank_id[OFX_BANKID_LENGTH];
 
162
00263   <span class="keywordtype">int</span> bank_id_valid;
 
163
00264 
 
164
00265   <span class="keywordtype">char</span> branch_id[OFX_BRANCHID_LENGTH];
 
165
00266   <span class="keywordtype">int</span> branch_id_valid;
 
166
00267 
 
167
00268   <span class="keywordtype">char</span> account_number[OFX_ACCTID_LENGTH];
 
168
00269   <span class="keywordtype">int</span> account_number_valid;
 
169
00270 
 
170
00271 };
 
171
00272 
 
172
<a name="l00285"></a><a class="code" href="inc_2libofx_8h.html#a34">00285</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcAccountCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a> data, void * account_data);
 
173
00286 
 
174
<a name="l00293"></a><a class="code" href="structOfxSecurityData.html">00293</a> <span class="keyword">struct </span><a class="code" href="structOfxSecurityData.html">OfxSecurityData</a>{
 
175
00299   <span class="keywordtype">char</span> unique_id[OFX_UNIQUE_ID_LENGTH];   
 
176
00300   <span class="keywordtype">int</span> unique_id_valid;
 
177
00301   <span class="keywordtype">char</span> unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH];
 
178
00303   <span class="keywordtype">int</span> unique_id_type_valid;
 
179
00304   <span class="keywordtype">char</span> secname[OFX_SECNAME_LENGTH];
 
180
00305   <span class="keywordtype">int</span> secname_valid;
 
181
00306 
 
182
00312   <span class="keywordtype">char</span> ticker[OFX_TICKER_LENGTH];
 
183
00313   <span class="keywordtype">int</span> ticker_valid;
 
184
00314 
 
185
00315   <span class="keywordtype">double</span> unitprice;
 
186
00317   <span class="keywordtype">int</span> unitprice_valid;
 
187
00318 
 
188
00319   time_t date_unitprice;
 
189
00320   <span class="keywordtype">int</span> date_unitprice_valid;
 
190
00321 
 
191
00322   <span class="keywordtype">char</span> currency[OFX_CURRENCY_LENGTH]; 
 
192
00325   <span class="keywordtype">int</span> currency_valid;
 
193
00326   <span class="keywordtype">char</span> memo[OFX_MEMO2_LENGTH];
 
194
00327   <span class="keywordtype">int</span> memo_valid;
 
195
00328 };<span class="comment">/* end struct OfxSecurityData */</span>
 
196
00329 
 
197
<a name="l00341"></a><a class="code" href="inc_2libofx_8h.html#a35">00341</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcSecurityCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxSecurityData.html">OfxSecurityData</a> data, void * security_data);
 
198
00342 
 
199
<a name="l00343"></a><a class="code" href="inc_2libofx_8h.html#a102">00343</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
 
200
00344     OFX_CREDIT,     
 
201
00345     OFX_DEBIT,      
 
202
00346     OFX_INT,        
 
203
00347     OFX_DIV,        
 
204
00348     OFX_FEE,        
 
205
00349     OFX_SRVCHG,     
 
206
00350     OFX_DEP,        
 
207
00351     OFX_ATM,        
 
208
00352     OFX_POS,        
 
209
00353     OFX_XFER,       
 
210
00354     OFX_CHECK,      
 
211
00355     OFX_PAYMENT,    
 
212
00356     OFX_CASH,       
 
213
00357     OFX_DIRECTDEP,  
 
214
00358     OFX_DIRECTDEBIT,
 
215
00359     OFX_REPEATPMT,  
 
216
00360     <a class="code" href="inc_2libofx_8h.html#a102a60">OFX_OTHER</a>       
 
217
00361   } TransactionType;
 
218
00362 
 
219
<a name="l00363"></a><a class="code" href="inc_2libofx_8h.html#a103">00363</a> <span class="keyword">typedef</span>  <span class="keyword">enum</span>{
 
220
00364     OFX_BUYDEBT,        
 
221
00365     OFX_BUYMF,          
 
222
00366     OFX_BUYOPT,         
 
223
00367     OFX_BUYOTHER,       
 
224
00368     OFX_BUYSTOCK,       
 
225
00369     OFX_CLOSUREOPT,     
 
226
00370     OFX_INCOME,         
 
227
00371     OFX_INVEXPENSE,     
 
228
00372     OFX_JRNLFUND,       
 
229
00373     OFX_JRNLSEC,        
 
230
00374     OFX_MARGININTEREST, 
 
231
00375     OFX_REINVEST,       
 
232
00376     OFX_RETOFCAP,       
 
233
00377     OFX_SELLDEBT,       
 
234
00378     OFX_SELLMF,         
 
235
00379     OFX_SELLOPT,        
 
236
00380     OFX_SELLOTHER,      
 
237
00381     OFX_SELLSTOCK,      
 
238
00382     OFX_SPLIT,          
 
239
00383     <a class="code" href="inc_2libofx_8h.html#a103a80">OFX_TRANSFER</a>        
 
240
00384   }  InvTransactionType;
 
241
<a name="l00385"></a><a class="code" href="inc_2libofx_8h.html#a104">00385</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
 
242
00386     DELETE, 
 
243
00388     <a class="code" href="inc_2libofx_8h.html#a104a82">REPLACE</a> 
 
244
00390   } FiIdCorrectionAction;
 
245
00391 
 
246
<a name="l00398"></a><a class="code" href="structOfxTransactionData.html">00398</a> <span class="keyword">struct </span><a class="code" href="structOfxTransactionData.html">OfxTransactionData</a>{
 
247
00399   
 
248
00405   <span class="keywordtype">char</span> account_id[OFX_ACCOUNT_ID_LENGTH];
 
249
<a name="l00408"></a><a class="code" href="structOfxTransactionData.html#z14_1">00408</a>   <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a> * account_ptr; 
 
250
00410   <span class="keywordtype">int</span> account_id_valid;
 
251
00411 
 
252
00412   <a class="code" href="inc_2libofx_8h.html#a102">TransactionType</a> transactiontype;
 
253
00413   <span class="keywordtype">int</span> transactiontype_valid;
 
254
00414  
 
255
00418   <a class="code" href="inc_2libofx_8h.html#a103">InvTransactionType</a> invtransactiontype;
 
256
00419   <span class="keywordtype">int</span>  invtransactiontype_valid;
 
257
00420 
 
258
00421   <span class="keywordtype">double</span> units;     
 
259
00427   <span class="keywordtype">int</span> units_valid;
 
260
00428   <span class="keywordtype">double</span> unitprice; 
 
261
00430   <span class="keywordtype">int</span> unitprice_valid;
 
262
00431   <span class="keywordtype">double</span> amount;    
 
263
00435   <span class="keywordtype">int</span> amount_valid;
 
264
00436   <span class="keywordtype">char</span> fi_id[256];  
 
265
00439   <span class="keywordtype">int</span> fi_id_valid;
 
266
00440   
 
267
00448   <span class="keywordtype">char</span> unique_id[OFX_UNIQUE_ID_LENGTH];  
 
268
00449   <span class="keywordtype">int</span> unique_id_valid;
 
269
00450   <span class="keywordtype">char</span> unique_id_type[OFX_UNIQUE_ID_TYPE_LENGTH];
 
270
00452   <span class="keywordtype">int</span> unique_id_type_valid;
 
271
00453   <span class="keyword">struct </span><a class="code" href="structOfxSecurityData.html">OfxSecurityData</a> *security_data_ptr;  
 
272
00454   <span class="keywordtype">int</span> security_data_valid;
 
273
00455   
 
274
00456   time_t date_posted;
 
275
00461   <span class="keywordtype">int</span> date_posted_valid;
 
276
00462   
 
277
00463   time_t date_initiated;
 
278
00469   <span class="keywordtype">int</span> date_initiated_valid;
 
279
00470   time_t date_funds_available;
 
280
00473   <span class="keywordtype">int</span> date_funds_available_valid;
 
281
00477   <span class="keywordtype">char</span> fi_id_corrected[256];
 
282
00478   <span class="keywordtype">int</span> fi_id_corrected_valid;
 
283
00481   <a class="code" href="inc_2libofx_8h.html#a104">FiIdCorrectionAction</a> fi_id_correction_action;
 
284
00482   <span class="keywordtype">int</span> fi_id_correction_action_valid;
 
285
00483   
 
286
00486   <span class="keywordtype">char</span> server_transaction_id[OFX_SVRTID2_LENGTH];
 
287
00487   <span class="keywordtype">int</span> server_transaction_id_valid;
 
288
00491 <span class="keywordtype">char</span> check_number[OFX_CHECK_NUMBER_LENGTH];
 
289
00492   <span class="keywordtype">int</span> check_number_valid;
 
290
00495   <span class="keywordtype">char</span> reference_number[OFX_REFERENCE_NUMBER_LENGTH];
 
291
00496   <span class="keywordtype">int</span> reference_number_valid;
 
292
00497   <span class="keywordtype">long</span> <span class="keywordtype">int</span> standard_industrial_code;
 
293
00499   <span class="keywordtype">int</span> standard_industrial_code_valid;
 
294
00500   <span class="keywordtype">char</span> payee_id[OFX_SVRTID2_LENGTH];
 
295
00501   <span class="keywordtype">int</span> payee_id_valid;
 
296
00502   <span class="keywordtype">char</span> name[OFX_TRANSACTION_NAME_LENGTH];
 
297
00504   <span class="keywordtype">int</span> name_valid;
 
298
00505   <span class="keywordtype">char</span> memo[OFX_MEMO2_LENGTH];
 
299
00506   <span class="keywordtype">int</span> memo_valid;
 
300
00507 
 
301
00508   <span class="comment">/*********** NOT YET COMPLETE!!! *********************/</span>
 
302
00509 };
 
303
00510 
 
304
<a name="l00519"></a><a class="code" href="inc_2libofx_8h.html#a36">00519</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcTransactionCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxTransactionData.html">OfxTransactionData</a> data, void * transaction_data);
 
305
00520 
 
306
<a name="l00529"></a><a class="code" href="structOfxStatementData.html">00529</a> <span class="keyword">struct </span><a class="code" href="structOfxStatementData.html">OfxStatementData</a>{
 
307
00530 
 
308
00538   <span class="keywordtype">char</span> currency[OFX_CURRENCY_LENGTH]; 
 
309
00539   <span class="keywordtype">int</span> currency_valid;
 
310
00540   <span class="keywordtype">char</span> account_id[OFX_ACCOUNT_ID_LENGTH];
 
311
<a name="l00542"></a><a class="code" href="structOfxStatementData.html#z16_3">00542</a>   <span class="keyword">struct </span><a class="code" href="structOfxAccountData.html">OfxAccountData</a> * account_ptr; 
 
312
00544   <span class="keywordtype">int</span> account_id_valid;
 
313
00547   <span class="keywordtype">double</span> ledger_balance;
 
314
00548   <span class="keywordtype">int</span> ledger_balance_valid;
 
315
00549   time_t ledger_balance_date;
 
316
00550   <span class="keywordtype">int</span> ledger_balance_date_valid;
 
317
00551   
 
318
00557   <span class="keywordtype">double</span> available_balance; 
 
319
00560   <span class="keywordtype">int</span> available_balance_valid;
 
320
00561   time_t available_balance_date;
 
321
00562   <span class="keywordtype">int</span> available_balance_date_valid;
 
322
00567   time_t date_start;
 
323
00568   <span class="keywordtype">int</span> date_start_valid;
 
324
00573   time_t date_end;
 
325
00574   <span class="keywordtype">int</span> date_end_valid;
 
326
00577   <span class="keywordtype">char</span> marketing_info[OFX_MARKETING_INFO_LENGTH];
 
327
00578   <span class="keywordtype">int</span> marketing_info_valid;
316
328
00579 };
317
329
00580 
318
 
00581 
319
 
00588 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a84">ofx_set_status_cb</a>(LibofxContextPtr ctx,
320
 
00589                             LibofxProcStatusCallback cb,
321
 
00590                             <span class="keywordtype">void</span> *user_data);
322
 
00597 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a85">ofx_set_account_cb</a>(LibofxContextPtr ctx,
323
 
00598                              LibofxProcAccountCallback cb,
324
 
00599                              <span class="keywordtype">void</span> *user_data);
325
 
00606 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a86">ofx_set_security_cb</a>(LibofxContextPtr ctx,
326
 
00607                               LibofxProcSecurityCallback cb,
327
 
00608                               <span class="keywordtype">void</span> *user_data);
328
 
00615 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a87">ofx_set_transaction_cb</a>(LibofxContextPtr ctx,
329
 
00616                                  LibofxProcTransactionCallback cb,
330
 
00617                                  <span class="keywordtype">void</span> *user_data);
331
 
00618 
332
 
00625 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a88">ofx_set_statement_cb</a>(LibofxContextPtr ctx,
333
 
00626                                LibofxProcStatementCallback cb,
334
 
00627                                <span class="keywordtype">void</span> *user_data);
335
 
00628 
336
 
00629 
337
 
00633 CFCT <span class="keywordtype">int</span> <a class="code" href="fx-0_87_80_2lib_2ofx__preproc_8cpp.html#a4">libofx_proc_buffer</a>(LibofxContextPtr ctx,
338
 
00634                             <span class="keyword">const</span> <span class="keywordtype">char</span> *s, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size);
339
 
00635 
 
330
<a name="l00588"></a><a class="code" href="inc_2libofx_8h.html#a37">00588</a> CFCT <span class="keyword">typedef</span> int (*LibofxProcStatementCallback)(<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structOfxStatementData.html">OfxStatementData</a> data, void * statement_data);
 
331
00589 
 
332
<a name="l00593"></a><a class="code" href="structOfxCurrency.html">00593</a> <span class="keyword">struct </span><a class="code" href="structOfxCurrency.html">OfxCurrency</a>{
 
333
00594   <span class="keywordtype">char</span> currency[OFX_CURRENCY_LENGTH]; 
 
334
00595   <span class="keywordtype">double</span> exchange_rate;  
 
335
00596   <span class="keywordtype">int</span> must_convert;   
 
336
00597 };
 
337
00598 
 
338
00599 
 
339
00606 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a93">ofx_set_status_cb</a>(LibofxContextPtr ctx,
 
340
00607                             LibofxProcStatusCallback cb,
 
341
00608                             <span class="keywordtype">void</span> *user_data);
 
342
00615 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a94">ofx_set_account_cb</a>(LibofxContextPtr ctx,
 
343
00616                              LibofxProcAccountCallback cb,
 
344
00617                              <span class="keywordtype">void</span> *user_data);
 
345
00624 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a95">ofx_set_security_cb</a>(LibofxContextPtr ctx,
 
346
00625                               LibofxProcSecurityCallback cb,
 
347
00626                               <span class="keywordtype">void</span> *user_data);
 
348
00633 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a96">ofx_set_transaction_cb</a>(LibofxContextPtr ctx,
 
349
00634                                  LibofxProcTransactionCallback cb,
 
350
00635                                  <span class="keywordtype">void</span> *user_data);
340
351
00636 
341
 
00637 
342
 
00638 <span class="preprocessor">#endif</span>
343
 
00639 <span class="preprocessor"></span>
344
 
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Fri Oct 8 20:34:47 2004 for LibOFX by
 
352
00643 CFCT <span class="keywordtype">void</span> <a class="code" href="inc_2libofx_8h.html#a97">ofx_set_statement_cb</a>(LibofxContextPtr ctx,
 
353
00644                                LibofxProcStatementCallback cb,
 
354
00645                                <span class="keywordtype">void</span> *user_data);
 
355
00646 
 
356
00647 
 
357
00651 CFCT <span class="keywordtype">int</span> <a class="code" href="fx-0_88_80_2lib_2ofx__preproc_8cpp.html#a4">libofx_proc_buffer</a>(LibofxContextPtr ctx,
 
358
00652                             <span class="keyword">const</span> <span class="keywordtype">char</span> *s, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size);
 
359
00653                             
 
360
00659 
 
361
<a name="l00669"></a><a class="code" href="structOfxFiLogin.html">00669</a> <span class="keyword">struct </span><a class="code" href="structOfxFiLogin.html">OfxFiLogin</a>{
 
362
00670   <span class="keywordtype">char</span> fid[OFX_FID_LENGTH];
 
363
00671   <span class="keywordtype">char</span> org[OFX_ORG_LENGTH];
 
364
00672   <span class="keywordtype">char</span> userid[OFX_USERID_LENGTH];
 
365
00673   <span class="keywordtype">char</span> userpass[OFX_USERPASS_LENGTH];
 
366
00674 };
 
367
00675 
 
368
00676 <span class="keyword">typedef</span> <span class="keyword">enum</span>{
 
369
00677   OFX_NO_ACCOUNT=0,
 
370
00678   OFX_BANK_ACCOUNT,
 
371
00679   OFX_INVEST_ACCOUNT,
 
372
00680   OFX_CREDITCARD_ACCOUNT,
 
373
00681   OFX_INVALID_ACCOUNT
 
374
00682 } AccountType;
 
375
00683 
 
376
<a name="l00692"></a><a class="code" href="structOfxAccountInfo.html">00692</a> <span class="keyword">struct </span><a class="code" href="structOfxAccountInfo.html">OfxAccountInfo</a>{
 
377
00693   <span class="keywordtype">char</span> accountid[OFX_ACCOUNT_ID_LENGTH];
 
378
00694   <span class="keywordtype">char</span> bankid[OFX_BANKID_LENGTH];
 
379
00695   <span class="keywordtype">char</span> brokerid[OFX_BROKERID_LENGTH];
 
380
00696   AccountType type;
 
381
00697 };
 
382
00698 
 
383
00711 CFCT <span class="keywordtype">char</span>* <a class="code" href="inc_2libofx_8h.html#a99">libofx_request_statement</a>( <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxFiLogin.html">OfxFiLogin</a>* fi, <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxAccountInfo.html">OfxAccountInfo</a>* account, time_t date_from );
 
384
00712 
 
385
00724 CFCT <span class="keywordtype">char</span>* <a class="code" href="inc_2libofx_8h.html#a100">libofx_request_accountinfo</a>( <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structOfxFiLogin.html">OfxFiLogin</a>* login );
 
386
00725 
 
387
00727 
 
388
00728 <span class="preprocessor">#endif</span>
 
389
00729 <span class="preprocessor"></span>
 
390
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jul 31 15:38:34 2005 for LibOFX by&nbsp;
345
391
<a href="http://www.doxygen.org/index.html">
346
 
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
 
392
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
347
393
</body>
348
394
</html>