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

« back to all changes in this revision

Viewing changes to doc/html/fx-0_88_80_2lib_2ofx__request__accountinfo_8cpp-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:
 
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">
 
5
</head><body>
 
6
<!-- Generated by Doxygen 1.3.9.1 -->
 
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
<div class="nav">
 
9
<a class="el" href="dir_000003.html">libofx-0.8.0</a>&nbsp;/&nbsp;<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>
 
24
00019 
 
25
00020 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
 
26
00021 <span class="preprocessor"></span><span class="preprocessor">#include &lt;config.h&gt;</span>
 
27
00022 <span class="preprocessor">#endif</span>
 
28
00023 <span class="preprocessor"></span>
 
29
00024 <span class="preprocessor">#include &lt;string&gt;</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>
 
32
00027 
 
33
00028 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
 
34
00029 
 
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 )
 
36
00031 {
 
37
00032   <a class="code" href="classOfxAccountInfoRequest.html">OfxAccountInfoRequest</a> strq( *login );
 
38
00033   string request = OfxHeader() + strq.Output();
 
39
00034 
 
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;
 
44
00039   
 
45
00040   <span class="keywordflow">return</span> result;
 
46
00041 }
 
47
00042 
 
48
00043 <span class="comment">/*</span>
 
49
00044 <span class="comment">&lt;OFX&gt;</span>
 
50
00045 <span class="comment">&lt;SIGNONMSGSRQV1&gt;</span>
 
51
00046 <span class="comment">&lt;SONRQ&gt;</span>
 
52
00047 <span class="comment">&lt;DTCLIENT&gt;20050417210306</span>
 
53
00048 <span class="comment">&lt;USERID&gt;GnuCash</span>
 
54
00049 <span class="comment">&lt;USERPASS&gt;gcash</span>
 
55
00050 <span class="comment">&lt;LANGUAGE&gt;ENG</span>
 
56
00051 <span class="comment">&lt;FI&gt;</span>
 
57
00052 <span class="comment">&lt;ORG&gt;ReferenceFI</span>
 
58
00053 <span class="comment">&lt;FID&gt;00000</span>
 
59
00054 <span class="comment">&lt;/FI&gt;</span>
 
60
00055 <span class="comment">&lt;APPID&gt;QWIN</span>
 
61
00056 <span class="comment">&lt;APPVER&gt;1100</span>
 
62
00057 <span class="comment">&lt;/SONRQ&gt;</span>
 
63
00058 <span class="comment">&lt;/SIGNONMSGSRQV1&gt;</span>
 
64
00059 <span class="comment"></span>
 
65
00060 <span class="comment">&lt;SIGNUPMSGSRQV1&gt;</span>
 
66
00061 <span class="comment">&lt;ACCTINFOTRNRQ&gt;</span>
 
67
00062 <span class="comment">&lt;TRNUID&gt;FFAAA4AA-A9B1-47F4-98E9-DE635EB41E77</span>
 
68
00063 <span class="comment">&lt;CLTCOOKIE&gt;4</span>
 
69
00064 <span class="comment"></span>
 
70
00065 <span class="comment">&lt;ACCTINFORQ&gt;</span>
 
71
00066 <span class="comment">&lt;DTACCTUP&gt;19700101000000</span>
 
72
00067 <span class="comment">&lt;/ACCTINFORQ&gt;</span>
 
73
00068 <span class="comment"></span>
 
74
00069 <span class="comment">&lt;/ACCTINFOTRNRQ&gt;</span>
 
75
00070 <span class="comment">&lt;/SIGNUPMSGSRQV1&gt;</span>
 
76
00071 <span class="comment">&lt;/OFX&gt;</span>
 
77
00072 <span class="comment">*/</span>
 
78
00073 
 
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>&amp; fi ):
 
80
00075   <a class="code" href="classOfxRequest.html">OfxRequest</a>(fi)
 
81
00076 {
 
82
00077   <a class="code" href="classOfxAggregate.html#a1">Add</a>( <a class="code" href="classOfxRequest.html#b0">SignOnRequest</a>() );
 
83
00078 
 
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) );
 
87
00082 }
 
88
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jul 31 15:38:35 2005 for LibOFX by&nbsp;
 
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>
 
91
</body>
 
92
</html>