File: ofx__request__accountinfo_8cpp_source.html

package info (click to toggle)
libofx 1%3A0.9.10-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 11,192 kB
  • sloc: sh: 11,428; cpp: 6,240; ansic: 2,459; makefile: 170; xml: 61
file content (172 lines) | stat: -rw-r--r-- 18,943 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LibOFX: ofx_request_accountinfo.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LibOFX
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ofx__request__accountinfo_8cpp_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ofx_request_accountinfo.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ofx__request__accountinfo_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">         ofx_request_accountinfo.cpp</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">                             -------------------</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">    copyright            : (C) 2005 by Ace Jones</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">    email                : acejones@users.sourceforge.net</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">***************************************************************************/</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">/***************************************************************************</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *                                                                         *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   This program is free software; you can redistribute it and/or modify  *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *   it under the terms of the GNU General Public License as published by  *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *   the Free Software Foundation; either version 2 of the License, or     *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   (at your option) any later version.                                   *</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *                                                                         *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> ***************************************************************************/</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifdef HAVE_CONFIG_H</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;config.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;libofx.h&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ofx__request__accountinfo_8hh.html">ofx_request_accountinfo.hh</a>&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keywordtype">char</span>* <a class="code" href="inc_2libofx_8h.html#aa704542b215cc1554bf243b8d2056183">libofx_request_accountinfo</a>( <span class="keyword">const</span> <a class="code" href="structOfxFiLogin.html">OfxFiLogin</a>* login )</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  <a class="code" href="classOfxAccountInfoRequest.html">OfxAccountInfoRequest</a> strq( *login );</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <span class="keywordtype">string</span> request = OfxHeader(login-&gt;header_version) + strq.Output();</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <span class="keywordtype">unsigned</span> size = request.size();</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  <span class="keywordtype">char</span>* result = (<span class="keywordtype">char</span>*)malloc(size + 1);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  request.copy(result, size);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  result[size] = 0;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;}</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">&lt;OFX&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">&lt;SIGNONMSGSRQV1&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">&lt;SONRQ&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">&lt;DTCLIENT&gt;20050417210306</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">&lt;USERID&gt;GnuCash</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">&lt;USERPASS&gt;gcash</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment">&lt;LANGUAGE&gt;ENG</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">&lt;FI&gt;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">&lt;ORG&gt;ReferenceFI</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">&lt;FID&gt;00000</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">&lt;/FI&gt;</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">&lt;APPID&gt;QWIN</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="comment">&lt;APPVER&gt;1100</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">&lt;/SONRQ&gt;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">&lt;/SIGNONMSGSRQV1&gt;</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">&lt;SIGNUPMSGSRQV1&gt;</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">&lt;ACCTINFOTRNRQ&gt;</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">&lt;TRNUID&gt;FFAAA4AA-A9B1-47F4-98E9-DE635EB41E77</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment">&lt;CLTCOOKIE&gt;4</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment">&lt;ACCTINFORQ&gt;</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment">&lt;DTACCTUP&gt;19700101000000</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment">&lt;/ACCTINFORQ&gt;</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">&lt;/ACCTINFOTRNRQ&gt;</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">&lt;/SIGNUPMSGSRQV1&gt;</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="comment">&lt;/OFX&gt;</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classOfxAccountInfoRequest.html#a95e70762fc3a59b38956fda4000cb1c8">   75</a></span>&#160;<a class="code" href="classOfxAccountInfoRequest.html#a95e70762fc3a59b38956fda4000cb1c8">OfxAccountInfoRequest::OfxAccountInfoRequest</a>( <span class="keyword">const</span> <a class="code" href="structOfxFiLogin.html">OfxFiLogin</a>&amp; fi ):</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  <a class="code" href="classOfxRequest.html">OfxRequest</a>(fi)</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;{</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <a class="code" href="classOfxAggregate.html#a5abc7ac34d575eaecde5f16310c766b8">Add</a>( <a class="code" href="classOfxRequest.html#ab653f985a56f4cff3e87a82c700f4450">SignOnRequest</a>() );</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  <a class="code" href="classOfxAggregate.html">OfxAggregate</a> acctinforqTag(<span class="stringliteral">&quot;ACCTINFORQ&quot;</span>);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  acctinforqTag.<a class="code" href="classOfxAggregate.html#a5abc7ac34d575eaecde5f16310c766b8">Add</a>( <span class="stringliteral">&quot;DTACCTUP&quot;</span>, time_t_to_ofxdate( 0 ) );</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <a class="code" href="classOfxAggregate.html#a5abc7ac34d575eaecde5f16310c766b8">Add</a> ( <a class="code" href="classOfxRequest.html#ae56ceb8ef12b9431dcd4d63eec60a377">RequestMessage</a>(<span class="stringliteral">&quot;SIGNUP&quot;</span>, <span class="stringliteral">&quot;ACCTINFO&quot;</span>, acctinforqTag) );</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}</div>
<div class="ttc" id="classOfxAccountInfoRequest_html"><div class="ttname"><a href="classOfxAccountInfoRequest.html">OfxAccountInfoRequest</a></div><div class="ttdoc">An account information request. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__request__accountinfo_8hh_source.html#l00037">ofx_request_accountinfo.hh:37</a></div></div>
<div class="ttc" id="classOfxRequest_html_ab653f985a56f4cff3e87a82c700f4450"><div class="ttname"><a href="classOfxRequest.html#ab653f985a56f4cff3e87a82c700f4450">OfxRequest::SignOnRequest</a></div><div class="ttdeci">OfxAggregate SignOnRequest(void) const </div><div class="ttdef"><b>Definition:</b> <a href="ofx__request_8cpp_source.html#l00084">ofx_request.cpp:84</a></div></div>
<div class="ttc" id="inc_2libofx_8h_html_aa704542b215cc1554bf243b8d2056183"><div class="ttname"><a href="inc_2libofx_8h.html#aa704542b215cc1554bf243b8d2056183">libofx_request_accountinfo</a></div><div class="ttdeci">char * libofx_request_accountinfo(const struct OfxFiLogin *login)</div><div class="ttdoc">Creates an OFX account info (list) request in string form. </div></div>
<div class="ttc" id="classOfxRequest_html"><div class="ttname"><a href="classOfxRequest.html">OfxRequest</a></div><div class="ttdoc">A generic request. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__request_8hh_source.html#l00036">ofx_request.hh:36</a></div></div>
<div class="ttc" id="classOfxAggregate_html"><div class="ttname"><a href="classOfxAggregate.html">OfxAggregate</a></div><div class="ttdoc">A single aggregate as described in the OFX 1.02 specification. </div><div class="ttdef"><b>Definition:</b> <a href="ofx__aggregate_8hh_source.html#l00042">ofx_aggregate.hh:42</a></div></div>
<div class="ttc" id="ofx__request__accountinfo_8hh_html"><div class="ttname"><a href="ofx__request__accountinfo_8hh.html">ofx_request_accountinfo.hh</a></div><div class="ttdoc">Declaration of OfxRequestAccountInfo create an OFX file containing a request for all account info at ...</div></div>
<div class="ttc" id="classOfxAggregate_html_a5abc7ac34d575eaecde5f16310c766b8"><div class="ttname"><a href="classOfxAggregate.html#a5abc7ac34d575eaecde5f16310c766b8">OfxAggregate::Add</a></div><div class="ttdeci">void Add(const string &amp;tag, const string &amp;data)</div><div class="ttdef"><b>Definition:</b> <a href="ofx__aggregate_8hh_source.html#l00059">ofx_aggregate.hh:59</a></div></div>
<div class="ttc" id="classOfxAccountInfoRequest_html_a95e70762fc3a59b38956fda4000cb1c8"><div class="ttname"><a href="classOfxAccountInfoRequest.html#a95e70762fc3a59b38956fda4000cb1c8">OfxAccountInfoRequest::OfxAccountInfoRequest</a></div><div class="ttdeci">OfxAccountInfoRequest(const OfxFiLogin &amp;fi)</div><div class="ttdef"><b>Definition:</b> <a href="ofx__request__accountinfo_8cpp_source.html#l00075">ofx_request_accountinfo.cpp:75</a></div></div>
<div class="ttc" id="classOfxRequest_html_ae56ceb8ef12b9431dcd4d63eec60a377"><div class="ttname"><a href="classOfxRequest.html#ae56ceb8ef12b9431dcd4d63eec60a377">OfxRequest::RequestMessage</a></div><div class="ttdeci">OfxAggregate RequestMessage(const string &amp;msgtype, const string &amp;trntype, const OfxAggregate &amp;aggregate) const </div><div class="ttdef"><b>Definition:</b> <a href="ofx__request_8cpp_source.html#l00112">ofx_request.cpp:112</a></div></div>
<div class="ttc" id="structOfxFiLogin_html"><div class="ttname"><a href="structOfxFiLogin.html">OfxFiLogin</a></div><div class="ttdoc">Information sufficient to log into an financial institution. </div><div class="ttdef"><b>Definition:</b> <a href="inc_2libofx_8h_source.html#l00805">inc/libofx.h:805</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_92da12de3a7e435e6ac7f35fe8c95afc.html">lib</a></li><li class="navelem"><a class="el" href="ofx__request__accountinfo_8cpp.html">ofx_request_accountinfo.cpp</a></li>
    <li class="footer">Generated on Fri Sep 12 2014 15:59:20 for LibOFX by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>