Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

112 lines
37 KiB

<!-- HTML header for doxygen 1.8.13-->
<!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>QtMvvm: qqmlmvvmbinding.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="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" style="display: inline;">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QtMvvm
&#160;<span id="projectnumber">1.1.0</span>
</div>
<div id="projectbrief">A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel</div>
</td>
</tr>
</tbody>
</table>
<a style="float: right;" target="_blank" href="https://github.com/Skycoder42/QtMvvm">
<img style="padding: 10px;" src="GitHub_Logo.png"/>
</a>
</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>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_a8bd8bcf293c2ab1210f2c2ecd8006f3.html">imports</a></li><li class="navelem"><a class="el" href="dir_29e33cf65180198299d19783a3e358d1.html">mvvmcore</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">qqmlmvvmbinding.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef QTMVVM_QQMLMVVMBINDING_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define QTMVVM_QQMLMVVMBINDING_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;QtCore/QObject&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;QtQml/QQmlParserStatus&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;QtMvvmCore/Binding&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#ifdef DOXYGEN_RUN</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacede_1_1skycoder42_1_1_qt_mvvm_1_1_core.html">de::skycoder42::QtMvvm::Core</a> {</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html"> 24</a></span>&#160;<span class="keyword">class </span><a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html">MvvmBinding</a> : <span class="keyword">public</span> QtObject</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;namespace <a class="code" href="namespace_qt_mvvm.html">QtMvvm</a> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">class </span>QQmlMvvmBinding : <span class="keyword">public</span> <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a>, <span class="keyword">public</span> <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtqml/qtqml.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qqmlparserstatus.html">QQmlParserStatus</a></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#endif</span></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; Q_OBJECT</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; Q_INTERFACES(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtqml/qtqml.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qqmlparserstatus.html">QQmlParserStatus</a>)</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a614653530bca9248d1ced77e8644ae01"> 43</a></span>&#160; Q_PROPERTY(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a>* <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a614653530bca9248d1ced77e8644ae01">viewModel</a> MEMBER _viewModel NOTIFY <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a6f50d6a9a8b62d40707a4042d89323a9">viewModelChanged</a>)</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a3bf79ff7af5929f53b31d77af257ec0d"> 53</a></span>&#160; Q_PROPERTY(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a3bf79ff7af5929f53b31d77af257ec0d">viewModelProperty</a> MEMBER _viewModelProperty NOTIFY <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a8bcf0edb64e9dd25843536e5d7eeb82d">viewModelPropertyChanged</a>)</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#aae369f976c94cf2479d3f6d8a8d7f404"> 63</a></span>&#160; Q_PROPERTY(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a>* <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#aae369f976c94cf2479d3f6d8a8d7f404">view</a> MEMBER _view NOTIFY <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a49119d57ef85e8dd7d4e0cc43eebc4b6">viewChanged</a>)</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a15638987a70e48b819f7c818a440f006"> 73</a></span>&#160; Q_PROPERTY(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a15638987a70e48b819f7c818a440f006">viewProperty</a> MEMBER _viewProperty NOTIFY <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a5a8e6551236be1420fabb3f1add9f355">viewPropertyChanged</a>)</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#afa297faa7c1a8d4610e9bd60d2e19438"> 84</a></span>&#160; Q_PROPERTY(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#afa297faa7c1a8d4610e9bd60d2e19438">viewModelChangeSignal</a> MEMBER _viewModelChangeSignal NOTIFY <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a5fe7ba08e8741840290803941c87db11">viewModelChangeSignalChanged</a>)</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#af6121cf5f8a3fb205c49b8dcc53c4d3c"> 95</a></span>&#160; Q_PROPERTY(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#af6121cf5f8a3fb205c49b8dcc53c4d3c">viewChangeSignal</a> MEMBER _viewChangeSignal NOTIFY <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a72a6696eb515a6124f0e4e26bbf43968">viewChangeSignalChanged</a>)</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a69c967fd8f6ad14d68290631ca5db026"> 105</a></span>&#160; Q_PROPERTY(BindingDirection type READ type WRITE setType NOTIFY <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#ae4821f7d5ec17537446b1d24fc1f4243">typeChanged</a>) <span class="comment">//MEMBER is broken for flags</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;public:</div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7ee"> 109</a></span>&#160; enum <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7ee">BindingDirectionFlag</a> { <span class="comment">//copy flags from binding</span></div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeabbc70a0e5095dbc3b6933d5b2cb9af6e"> 110</a></span>&#160; <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeabbc70a0e5095dbc3b6933d5b2cb9af6e">SingleInit</a> = Binding::SingleInit, </div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeafb561fa09318a1e5c5b8f2069fff07ba"> 111</a></span>&#160; <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeafb561fa09318a1e5c5b8f2069fff07ba">OneWayToView</a> = Binding::OneWayToView, </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeae9a3030a013a3cba87a647ceed502d50"> 112</a></span>&#160; <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeae9a3030a013a3cba87a647ceed502d50">OneWayToViewModel</a> = Binding::OneWayToViewModel, </div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eea64d301545d44bab378d460a2763b8bd0"> 113</a></span>&#160; <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eea64d301545d44bab378d460a2763b8bd0">TwoWay</a> = Binding::TwoWay </div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; };</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; Q_DECLARE_FLAGS(BindingDirection, <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7ee">BindingDirectionFlag</a>)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; Q_FLAG(BindingDirection)</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keyword">explicit</span> QQmlMvvmBinding(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *parent = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordtype">void</span> classBegin() <span class="keyword">override</span>;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordtype">void</span> componentComplete() <span class="keyword">override</span>;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; BindingDirection type() <span class="keyword">const</span>;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; Q_INVOKABLE <span class="keywordtype">bool</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a3528ccff57bf4c96c709d8f86a08acd0">isValid</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;<span class="preprocessor">#ifdef DOXYGEN_RUN</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="keyword">public</span> Q_SLOTS:</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keywordtype">void</span> setType(BindingDirection type);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a76e26a96c68252dbc8077046acc2eb39">unbind</a>();</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;Q_SIGNALS:</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a6f50d6a9a8b62d40707a4042d89323a9">viewModelChanged</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a>* <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a614653530bca9248d1ced77e8644ae01">viewModel</a>);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a8bcf0edb64e9dd25843536e5d7eeb82d">viewModelPropertyChanged</a>(<span class="keyword">const</span> <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &amp;<a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a3bf79ff7af5929f53b31d77af257ec0d">viewModelProperty</a>);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a49119d57ef85e8dd7d4e0cc43eebc4b6">viewChanged</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a>* <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#aae369f976c94cf2479d3f6d8a8d7f404">view</a>);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a5a8e6551236be1420fabb3f1add9f355">viewPropertyChanged</a>(<span class="keyword">const</span> <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &amp;<a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a15638987a70e48b819f7c818a440f006">viewProperty</a>);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#ae4821f7d5ec17537446b1d24fc1f4243">typeChanged</a>(BindingDirection type);</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a5fe7ba08e8741840290803941c87db11">viewModelChangeSignalChanged</a>(<span class="keyword">const</span> <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &amp;<a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#afa297faa7c1a8d4610e9bd60d2e19438">viewModelChangeSignal</a>);</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a72a6696eb515a6124f0e4e26bbf43968">viewChangeSignalChanged</a>(<span class="keyword">const</span> <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> &amp;<a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#af6121cf5f8a3fb205c49b8dcc53c4d3c">viewChangeSignal</a>);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="keyword">private</span> Q_SLOTS:</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keywordtype">void</span> resetBinding();</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordtype">void</span> viewWasSet();</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordtype">void</span> viewModelWasSet();</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; Binding _binding;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordtype">bool</span> _completed = <span class="keyword">false</span>;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keywordtype">bool</span> _viewSet = <span class="keyword">false</span>;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordtype">bool</span> _viewModelSet = <span class="keyword">false</span>;</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a>* _viewModel = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> _viewModelProperty;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a>* _view = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> _viewProperty;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; BindingDirection _type = <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eea64d301545d44bab378d460a2763b8bd0">TwoWay</a>;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> _viewModelChangeSignal;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qstring.html">QString</a> _viewChangeSignal;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;};</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;}</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="preprocessor">#endif // QTMVVM_QQMLMVVMBINDING_H</span></div><div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a0b01dfe1a8b4a7c6b2d888fd561ed7eea64d301545d44bab378d460a2763b8bd0"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eea64d301545d44bab378d460a2763b8bd0">de::skycoder42::QtMvvm::Core::MvvmBinding::TwoWay</a></div><div class="ttdoc">All changes on both sides are propagated to the other one. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00113">qqmlmvvmbinding.h:113</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html">de::skycoder42::QtMvvm::Core::MvvmBinding</a></div><div class="ttdoc">A QML class to create a local mvvm multiway binding. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00024">qqmlmvvmbinding.h:24</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a49119d57ef85e8dd7d4e0cc43eebc4b6"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a49119d57ef85e8dd7d4e0cc43eebc4b6">de::skycoder42::QtMvvm::Core::MvvmBinding::viewChanged</a></div><div class="ttdeci">void viewChanged(QObject *view)</div><div class="ttdoc">NOTIFY accessor for MvvmBinding::view. </div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a0b01dfe1a8b4a7c6b2d888fd561ed7eeae9a3030a013a3cba87a647ceed502d50"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeae9a3030a013a3cba87a647ceed502d50">de::skycoder42::QtMvvm::Core::MvvmBinding::OneWayToViewModel</a></div><div class="ttdoc">All changes done to the view are propagated to the viewmodel. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00112">qqmlmvvmbinding.h:112</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a0b01dfe1a8b4a7c6b2d888fd561ed7eeabbc70a0e5095dbc3b6933d5b2cb9af6e"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeabbc70a0e5095dbc3b6933d5b2cb9af6e">de::skycoder42::QtMvvm::Core::MvvmBinding::SingleInit</a></div><div class="ttdoc">Only initialize the view by settings it to the viewmodels value on creation. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00110">qqmlmvvmbinding.h:110</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a0b01dfe1a8b4a7c6b2d888fd561ed7eeafb561fa09318a1e5c5b8f2069fff07ba"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7eeafb561fa09318a1e5c5b8f2069fff07ba">de::skycoder42::QtMvvm::Core::MvvmBinding::OneWayToView</a></div><div class="ttdoc">All changes done to the viewmodel are propagated to the view. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00111">qqmlmvvmbinding.h:111</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a3bf79ff7af5929f53b31d77af257ec0d"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a3bf79ff7af5929f53b31d77af257ec0d">de::skycoder42::QtMvvm::Core::MvvmBinding::viewModelProperty</a></div><div class="ttdeci">QString viewModelProperty</div><div class="ttdoc">The property of the viewmodel to use in the binding. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00053">qqmlmvvmbinding.h:53</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a76e26a96c68252dbc8077046acc2eb39"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a76e26a96c68252dbc8077046acc2eb39">de::skycoder42::QtMvvm::Core::MvvmBinding::unbind</a></div><div class="ttdeci">void unbind()</div><div class="ttdoc">Remove the binding by disconnecting all change signals. </div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a5fe7ba08e8741840290803941c87db11"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a5fe7ba08e8741840290803941c87db11">de::skycoder42::QtMvvm::Core::MvvmBinding::viewModelChangeSignalChanged</a></div><div class="ttdeci">void viewModelChangeSignalChanged(const QString &amp;viewModelChangeSignal)</div><div class="ttdoc">NOTIFY accessor for MvvmBinding::viewChangeSignal. </div></div>
<div class="ttc" id="namespacede_1_1skycoder42_1_1_qt_mvvm_1_1_core_html"><div class="ttname"><a href="namespacede_1_1skycoder42_1_1_qt_mvvm_1_1_core.html">de::skycoder42::QtMvvm::Core</a></div><div class="ttdoc">The QML import for the QtMvvmCore QML module. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlcoreapp_8h_source.html#l00009">qqmlcoreapp.h:9</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a5a8e6551236be1420fabb3f1add9f355"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a5a8e6551236be1420fabb3f1add9f355">de::skycoder42::QtMvvm::Core::MvvmBinding::viewPropertyChanged</a></div><div class="ttdeci">void viewPropertyChanged(const QString &amp;viewProperty)</div><div class="ttdoc">NOTIFY accessor for MvvmBinding::viewProperty. </div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_afa297faa7c1a8d4610e9bd60d2e19438"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#afa297faa7c1a8d4610e9bd60d2e19438">de::skycoder42::QtMvvm::Core::MvvmBinding::viewModelChangeSignal</a></div><div class="ttdeci">QString viewModelChangeSignal</div><div class="ttdoc">An alternative signal to be used instead of the viewModelProperty notify signal to detect property ch...</div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00084">qqmlmvvmbinding.h:84</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a8bcf0edb64e9dd25843536e5d7eeb82d"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a8bcf0edb64e9dd25843536e5d7eeb82d">de::skycoder42::QtMvvm::Core::MvvmBinding::viewModelPropertyChanged</a></div><div class="ttdeci">void viewModelPropertyChanged(const QString &amp;viewModelProperty)</div><div class="ttdoc">NOTIFY accessor for MvvmBinding::viewModelProperty. </div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a3528ccff57bf4c96c709d8f86a08acd0"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a3528ccff57bf4c96c709d8f86a08acd0">de::skycoder42::QtMvvm::Core::MvvmBinding::isValid</a></div><div class="ttdeci">Q_INVOKABLE bool isValid() const</div><div class="ttdoc">Specifies whether the binding is a valid and active binding. </div></div>
<div class="ttc" id="qstring_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qstring.html">QString</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a72a6696eb515a6124f0e4e26bbf43968"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a72a6696eb515a6124f0e4e26bbf43968">de::skycoder42::QtMvvm::Core::MvvmBinding::viewChangeSignalChanged</a></div><div class="ttdeci">void viewChangeSignalChanged(const QString &amp;viewChangeSignal)</div><div class="ttdoc">NOTIFY accessor for MvvmBinding::type. </div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a15638987a70e48b819f7c818a440f006"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a15638987a70e48b819f7c818a440f006">de::skycoder42::QtMvvm::Core::MvvmBinding::viewProperty</a></div><div class="ttdeci">QString viewProperty</div><div class="ttdoc">The property of the view to use in the binding. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00073">qqmlmvvmbinding.h:73</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_af6121cf5f8a3fb205c49b8dcc53c4d3c"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#af6121cf5f8a3fb205c49b8dcc53c4d3c">de::skycoder42::QtMvvm::Core::MvvmBinding::viewChangeSignal</a></div><div class="ttdeci">QString viewChangeSignal</div><div class="ttdoc">An alternative signal to be used instead of the viewProperty notify signal to detect property changes...</div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00095">qqmlmvvmbinding.h:95</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a614653530bca9248d1ced77e8644ae01"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a614653530bca9248d1ced77e8644ae01">de::skycoder42::QtMvvm::Core::MvvmBinding::viewModel</a></div><div class="ttdeci">QObject viewModel</div><div class="ttdoc">The object in the role of a viewmodel. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00043">qqmlmvvmbinding.h:43</a></div></div>
<div class="ttc" id="qqmlparserstatus_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qqmlparserstatus.html">QQmlParserStatus</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_ae4821f7d5ec17537446b1d24fc1f4243"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#ae4821f7d5ec17537446b1d24fc1f4243">de::skycoder42::QtMvvm::Core::MvvmBinding::typeChanged</a></div><div class="ttdeci">void typeChanged(BindingDirection type)</div><div class="ttdoc">NOTIFY accessor for MvvmBinding::viewModelChangeSignal. </div></div>
<div class="ttc" id="class_q_object_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a6f50d6a9a8b62d40707a4042d89323a9"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a6f50d6a9a8b62d40707a4042d89323a9">de::skycoder42::QtMvvm::Core::MvvmBinding::viewModelChanged</a></div><div class="ttdeci">void viewModelChanged(QObject *viewModel)</div><div class="ttdoc">NOTIFY accessor for MvvmBinding::viewModel. </div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_aae369f976c94cf2479d3f6d8a8d7f404"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#aae369f976c94cf2479d3f6d8a8d7f404">de::skycoder42::QtMvvm::Core::MvvmBinding::view</a></div><div class="ttdeci">QObject view</div><div class="ttdoc">The object in the role of a view. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00063">qqmlmvvmbinding.h:63</a></div></div>
<div class="ttc" id="namespace_qt_mvvm_html"><div class="ttname"><a href="namespace_qt_mvvm.html">QtMvvm</a></div><div class="ttdoc">The primary namespace of the QtMvvm library. </div><div class="ttdef"><b>Definition:</b> <a href="androidsettingsaccessor_8h_source.html#l00009">androidsettingsaccessor.h:9</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding_html_a0b01dfe1a8b4a7c6b2d888fd561ed7ee"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_mvvm_binding.html#a0b01dfe1a8b4a7c6b2d888fd561ed7ee">de::skycoder42::QtMvvm::Core::MvvmBinding::BindingDirectionFlag</a></div><div class="ttdeci">BindingDirectionFlag</div><div class="ttdoc">Flags to control how to bind the properties. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlmvvmbinding_8h_source.html#l00109">qqmlmvvmbinding.h:109</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Aug 8 2018 19:15:45 for QtMvvm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>