1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>LibOFX: ofx_request_accountinfo.cpp Source File</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.9.1 -->
7
<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
9
<a class="el" href="dir_000003.html">libofx-0.8.0</a> / <a class="el" href="dir_000004.html">lib</a></div>
10
<h1>fx-0.8.0/lib/ofx_request_accountinfo.cpp</h1><a href="fx-0_88_80_2lib_2ofx__request__accountinfo_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/***************************************************************************</span>
11
00002 <span class="comment"> ofx_request_accountinfo.cpp </span>
12
00003 <span class="comment"> -------------------</span>
13
00004 <span class="comment"> copyright : (C) 2005 by Ace Jones</span>
14
00005 <span class="comment"> email : acejones@users.sourceforge.net</span>
15
00006 <span class="comment">***************************************************************************/</span>
16
00011 <span class="comment">/***************************************************************************</span>
17
00012 <span class="comment"> * *</span>
18
00013 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span>
19
00014 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span>
20
00015 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span>
21
00016 <span class="comment"> * (at your option) any later version. *</span>
22
00017 <span class="comment"> * *</span>
23
00018 <span class="comment"> ***************************************************************************/</span>
25
00020 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
26
00021 <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span>
27
00022 <span class="preprocessor">#endif</span>
28
00023 <span class="preprocessor"></span>
29
00024 <span class="preprocessor">#include <string></span>
30
00025 <span class="preprocessor">#include "<a class="code" href="libofx-0_88_80_2inc_2libofx_8h.html">libofx.h</a>"</span>
31
00026 <span class="preprocessor">#include "<a class="code" href="fx-0_88_80_2lib_2ofx__request__accountinfo_8hh.html">ofx_request_accountinfo.hh</a>"</span>
33
00028 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
35
00030 <span class="keywordtype">char</span>* <a class="code" href="inc_2libofx_8h.html#a100">libofx_request_accountinfo</a>( <span class="keyword">const</span> <a class="code" href="structOfxFiLogin.html">OfxFiLogin</a>* login )
37
00032 <a class="code" href="classOfxAccountInfoRequest.html">OfxAccountInfoRequest</a> strq( *login );
38
00033 string request = OfxHeader() + strq.Output();
40
00035 <span class="keywordtype">unsigned</span> size = request.size();
41
00036 <span class="keywordtype">char</span>* result = (<span class="keywordtype">char</span>*)malloc(size + 1);
42
00037 request.copy(result,size);
43
00038 result[size] = 0;
45
00040 <span class="keywordflow">return</span> result;
48
00043 <span class="comment">/*</span>
49
00044 <span class="comment"><OFX></span>
50
00045 <span class="comment"><SIGNONMSGSRQV1></span>
51
00046 <span class="comment"><SONRQ></span>
52
00047 <span class="comment"><DTCLIENT>20050417210306</span>
53
00048 <span class="comment"><USERID>GnuCash</span>
54
00049 <span class="comment"><USERPASS>gcash</span>
55
00050 <span class="comment"><LANGUAGE>ENG</span>
56
00051 <span class="comment"><FI></span>
57
00052 <span class="comment"><ORG>ReferenceFI</span>
58
00053 <span class="comment"><FID>00000</span>
59
00054 <span class="comment"></FI></span>
60
00055 <span class="comment"><APPID>QWIN</span>
61
00056 <span class="comment"><APPVER>1100</span>
62
00057 <span class="comment"></SONRQ></span>
63
00058 <span class="comment"></SIGNONMSGSRQV1></span>
64
00059 <span class="comment"></span>
65
00060 <span class="comment"><SIGNUPMSGSRQV1></span>
66
00061 <span class="comment"><ACCTINFOTRNRQ></span>
67
00062 <span class="comment"><TRNUID>FFAAA4AA-A9B1-47F4-98E9-DE635EB41E77</span>
68
00063 <span class="comment"><CLTCOOKIE>4</span>
69
00064 <span class="comment"></span>
70
00065 <span class="comment"><ACCTINFORQ></span>
71
00066 <span class="comment"><DTACCTUP>19700101000000</span>
72
00067 <span class="comment"></ACCTINFORQ></span>
73
00068 <span class="comment"></span>
74
00069 <span class="comment"></ACCTINFOTRNRQ></span>
75
00070 <span class="comment"></SIGNUPMSGSRQV1></span>
76
00071 <span class="comment"></OFX></span>
77
00072 <span class="comment">*/</span>
79
00074 <a class="code" href="classOfxAccountInfoRequest.html#a0">OfxAccountInfoRequest::OfxAccountInfoRequest</a>( <span class="keyword">const</span> <a class="code" href="structOfxFiLogin.html">OfxFiLogin</a>& fi ):
80
00075 <a class="code" href="classOfxRequest.html">OfxRequest</a>(fi)
82
00077 <a class="code" href="classOfxAggregate.html#a1">Add</a>( <a class="code" href="classOfxRequest.html#b0">SignOnRequest</a>() );
84
00079 <a class="code" href="classOfxAggregate.html">OfxAggregate</a> acctinforqTag(<span class="stringliteral">"ACCTINFORQ"</span>);
85
00080 acctinforqTag.Add( <span class="stringliteral">"DTACCTUP"</span>, time_t_to_ofxdate( 0 ) );
86
00081 <a class="code" href="classOfxAggregate.html#a1">Add</a> ( <a class="code" href="classOfxRequest.html#b1">RequestMessage</a>(<span class="stringliteral">"SIGNUP"</span>,<span class="stringliteral">"ACCTINFO"</span>, acctinforqTag) );
88
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jul 31 15:38:35 2005 for LibOFX by
89
<a href="http://www.doxygen.org/index.html">
90
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>