dash-docs/en/doxygen/html/walletmodeltransaction_8h_source.html

130 lines
21 KiB
HTML

<!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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Dash Core: src/qt/walletmodeltransaction.h 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="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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 id="projectlogo"><img alt="Logo" src="bitcoin_logo_doxygen.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Dash Core
&#160;<span id="projectnumber">0.12.2.1</span>
</div>
<div id="projectbrief">P2P Digital Currency</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('walletmodeltransaction_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">walletmodeltransaction.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="walletmodeltransaction_8h.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">// Copyright (c) 2011-2013 The Bitcoin Core developers</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Distributed under the MIT software license, see the accompanying</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// file COPYING or http://www.opensource.org/licenses/mit-license.php.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#ifndef BITCOIN_QT_WALLETMODELTRANSACTION_H</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#define BITCOIN_QT_WALLETMODELTRANSACTION_H</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="walletmodel_8h.html">walletmodel.h</a>&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#include &lt;QObject&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">class </span><a class="code" href="classSendCoinsRecipient.html">SendCoinsRecipient</a>;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">class </span><a class="code" href="classCReserveKey.html">CReserveKey</a>;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">class </span><a class="code" href="classCWallet.html">CWallet</a>;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="keyword">class </span><a class="code" href="classCWalletTx.html">CWalletTx</a>;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classWalletModelTransaction.html"> 19</a></span>&#160;<span class="keyword">class </span><a class="code" href="classWalletModelTransaction.html">WalletModelTransaction</a></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;{</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classWalletModelTransaction.html#aab5bd2eb6244b6f0e12d8511d64caf82">WalletModelTransaction</a>(<span class="keyword">const</span> QList&lt;SendCoinsRecipient&gt; &amp;<a class="code" href="classWalletModelTransaction.html#a72bcaecaa08a1768b0023c7b833aa35b">recipients</a>);</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <a class="code" href="classWalletModelTransaction.html#a0f3a3babba43291051de5f29fecbff83">~WalletModelTransaction</a>();</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; QList&lt;SendCoinsRecipient&gt; <a class="code" href="classWalletModelTransaction.html#a477180740c53bbbaed217faec2ccb8fa">getRecipients</a>();</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <a class="code" href="classCWalletTx.html">CWalletTx</a> *<a class="code" href="classWalletModelTransaction.html#a1db8f14976edf56a7678d9f7b390c0c5">getTransaction</a>();</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classWalletModelTransaction.html#a90c87be7e23c1729edba4ab621771a5e">getTransactionSize</a>();</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classWalletModelTransaction.html#a1a5d5ee7f676a90b9e0bfc9f2b452c44">setTransactionFee</a>(<span class="keyword">const</span> <a class="code" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a>&amp; newFee);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="code" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> <a class="code" href="classWalletModelTransaction.html#ac9ca968ca58fb4609db74111525981d6">getTransactionFee</a>();</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="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> <a class="code" href="classWalletModelTransaction.html#a215d9f347eaf67189ef5eb2c4492384c">getTotalTransactionAmount</a>();</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classWalletModelTransaction.html#af6e3adde528f4578145be97699c45bb8">newPossibleKeyChange</a>(<a class="code" href="classCWallet.html">CWallet</a> *<a class="code" href="namespacewallet.html">wallet</a>);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classCReserveKey.html">CReserveKey</a> *<a class="code" href="classWalletModelTransaction.html#a58835446dab9397f823106d4a6ba6812">getPossibleKeyChange</a>();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classWalletModelTransaction.html#a267d58faa6b634e86b46b76d8b1ea494">reassignAmounts</a>(<span class="keywordtype">int</span> nChangePosRet); <span class="comment">// needed for the subtract-fee-from-amount feature</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classWalletModelTransaction.html#a72bcaecaa08a1768b0023c7b833aa35b"> 41</a></span>&#160; QList&lt;SendCoinsRecipient&gt; <a class="code" href="classWalletModelTransaction.html#a72bcaecaa08a1768b0023c7b833aa35b">recipients</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classWalletModelTransaction.html#a2f0f83ee9aec8398fd2b22033657eb25"> 42</a></span>&#160; <a class="code" href="classCWalletTx.html">CWalletTx</a> *<a class="code" href="classWalletModelTransaction.html#a2f0f83ee9aec8398fd2b22033657eb25">walletTransaction</a>;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classWalletModelTransaction.html#a84ed07592def7dbae5469982e7b8467a"> 43</a></span>&#160; <a class="code" href="classCReserveKey.html">CReserveKey</a> *<a class="code" href="classWalletModelTransaction.html#a84ed07592def7dbae5469982e7b8467a">keyChange</a>;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classWalletModelTransaction.html#a9265a45b77478e288b252210187e3d51"> 44</a></span>&#160; <a class="code" href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a> <a class="code" href="classWalletModelTransaction.html#a9265a45b77478e288b252210187e3d51">fee</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;};</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#endif // BITCOIN_QT_WALLETMODELTRANSACTION_H</span></div><div class="ttc" id="walletmodel_8h_html"><div class="ttname"><a href="walletmodel_8h.html">walletmodel.h</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a215d9f347eaf67189ef5eb2c4492384c"><div class="ttname"><a href="classWalletModelTransaction.html#a215d9f347eaf67189ef5eb2c4492384c">WalletModelTransaction::getTotalTransactionAmount</a></div><div class="ttdeci">CAmount getTotalTransactionAmount()</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00081">walletmodeltransaction.cpp:81</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_af6e3adde528f4578145be97699c45bb8"><div class="ttname"><a href="classWalletModelTransaction.html#af6e3adde528f4578145be97699c45bb8">WalletModelTransaction::newPossibleKeyChange</a></div><div class="ttdeci">void newPossibleKeyChange(CWallet *wallet)</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00091">walletmodeltransaction.cpp:91</a></div></div>
<div class="ttc" id="classCWallet_html"><div class="ttname"><a href="classCWallet.html">CWallet</a></div><div class="ttdef"><b>Definition:</b> <a href="wallet_8h_source.html#l00617">wallet.h:617</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a267d58faa6b634e86b46b76d8b1ea494"><div class="ttname"><a href="classWalletModelTransaction.html#a267d58faa6b634e86b46b76d8b1ea494">WalletModelTransaction::reassignAmounts</a></div><div class="ttdeci">void reassignAmounts(int nChangePosRet)</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00049">walletmodeltransaction.cpp:49</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a477180740c53bbbaed217faec2ccb8fa"><div class="ttname"><a href="classWalletModelTransaction.html#a477180740c53bbbaed217faec2ccb8fa">WalletModelTransaction::getRecipients</a></div><div class="ttdeci">QList&lt; SendCoinsRecipient &gt; getRecipients()</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00024">walletmodeltransaction.cpp:24</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a90c87be7e23c1729edba4ab621771a5e"><div class="ttname"><a href="classWalletModelTransaction.html#a90c87be7e23c1729edba4ab621771a5e">WalletModelTransaction::getTransactionSize</a></div><div class="ttdeci">unsigned int getTransactionSize()</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00034">walletmodeltransaction.cpp:34</a></div></div>
<div class="ttc" id="amount_8h_html_a4eaf3a5239714d8c45b851527f7cb564"><div class="ttname"><a href="amount_8h.html#a4eaf3a5239714d8c45b851527f7cb564">CAmount</a></div><div class="ttdeci">int64_t CAmount</div><div class="ttdef"><b>Definition:</b> <a href="amount_8h_source.html#l00014">amount.h:14</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a72bcaecaa08a1768b0023c7b833aa35b"><div class="ttname"><a href="classWalletModelTransaction.html#a72bcaecaa08a1768b0023c7b833aa35b">WalletModelTransaction::recipients</a></div><div class="ttdeci">QList&lt; SendCoinsRecipient &gt; recipients</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8h_source.html#l00041">walletmodeltransaction.h:41</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_ac9ca968ca58fb4609db74111525981d6"><div class="ttname"><a href="classWalletModelTransaction.html#ac9ca968ca58fb4609db74111525981d6">WalletModelTransaction::getTransactionFee</a></div><div class="ttdeci">CAmount getTransactionFee()</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00039">walletmodeltransaction.cpp:39</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a0f3a3babba43291051de5f29fecbff83"><div class="ttname"><a href="classWalletModelTransaction.html#a0f3a3babba43291051de5f29fecbff83">WalletModelTransaction::~WalletModelTransaction</a></div><div class="ttdeci">~WalletModelTransaction()</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00018">walletmodeltransaction.cpp:18</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html"><div class="ttname"><a href="classWalletModelTransaction.html">WalletModelTransaction</a></div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8h_source.html#l00019">walletmodeltransaction.h:19</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a1a5d5ee7f676a90b9e0bfc9f2b452c44"><div class="ttname"><a href="classWalletModelTransaction.html#a1a5d5ee7f676a90b9e0bfc9f2b452c44">WalletModelTransaction::setTransactionFee</a></div><div class="ttdeci">void setTransactionFee(const CAmount &amp;newFee)</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00044">walletmodeltransaction.cpp:44</a></div></div>
<div class="ttc" id="classCWalletTx_html"><div class="ttname"><a href="classCWalletTx.html">CWalletTx</a></div><div class="ttdef"><b>Definition:</b> <a href="wallet_8h_source.html#l00275">wallet.h:275</a></div></div>
<div class="ttc" id="namespacewallet_html"><div class="ttname"><a href="namespacewallet.html">wallet</a></div><div class="ttdef"><b>Definition:</b> <a href="wallet_8py_source.html#l00001">wallet.py:1</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a1db8f14976edf56a7678d9f7b390c0c5"><div class="ttname"><a href="classWalletModelTransaction.html#a1db8f14976edf56a7678d9f7b390c0c5">WalletModelTransaction::getTransaction</a></div><div class="ttdeci">CWalletTx * getTransaction()</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00029">walletmodeltransaction.cpp:29</a></div></div>
<div class="ttc" id="classCReserveKey_html"><div class="ttname"><a href="classCReserveKey.html">CReserveKey</a></div><div class="ttdef"><b>Definition:</b> <a href="wallet_8h_source.html#l01049">wallet.h:1049</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a84ed07592def7dbae5469982e7b8467a"><div class="ttname"><a href="classWalletModelTransaction.html#a84ed07592def7dbae5469982e7b8467a">WalletModelTransaction::keyChange</a></div><div class="ttdeci">CReserveKey * keyChange</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8h_source.html#l00043">walletmodeltransaction.h:43</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a2f0f83ee9aec8398fd2b22033657eb25"><div class="ttname"><a href="classWalletModelTransaction.html#a2f0f83ee9aec8398fd2b22033657eb25">WalletModelTransaction::walletTransaction</a></div><div class="ttdeci">CWalletTx * walletTransaction</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8h_source.html#l00042">walletmodeltransaction.h:42</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a9265a45b77478e288b252210187e3d51"><div class="ttname"><a href="classWalletModelTransaction.html#a9265a45b77478e288b252210187e3d51">WalletModelTransaction::fee</a></div><div class="ttdeci">CAmount fee</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8h_source.html#l00044">walletmodeltransaction.h:44</a></div></div>
<div class="ttc" id="classSendCoinsRecipient_html"><div class="ttname"><a href="classSendCoinsRecipient.html">SendCoinsRecipient</a></div><div class="ttdef"><b>Definition:</b> <a href="walletmodel_8h_source.html#l00038">walletmodel.h:38</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_a58835446dab9397f823106d4a6ba6812"><div class="ttname"><a href="classWalletModelTransaction.html#a58835446dab9397f823106d4a6ba6812">WalletModelTransaction::getPossibleKeyChange</a></div><div class="ttdeci">CReserveKey * getPossibleKeyChange()</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00096">walletmodeltransaction.cpp:96</a></div></div>
<div class="ttc" id="classWalletModelTransaction_html_aab5bd2eb6244b6f0e12d8511d64caf82"><div class="ttname"><a href="classWalletModelTransaction.html#aab5bd2eb6244b6f0e12d8511d64caf82">WalletModelTransaction::WalletModelTransaction</a></div><div class="ttdeci">WalletModelTransaction(const QList&lt; SendCoinsRecipient &gt; &amp;recipients)</div><div class="ttdef"><b>Definition:</b> <a href="walletmodeltransaction_8cpp_source.html#l00009">walletmodeltransaction.cpp:9</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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_f0c29a9f5764d78706f34c972e8114d8.html">qt</a></li><li class="navelem"><a class="el" href="walletmodeltransaction_8h.html">walletmodeltransaction.h</a></li>
<li class="footer">Generated on Thu Dec 14 2017 13:15:08 for Dash Core by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>