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.
 
 
 
 
 

103 lines
28 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: widgetspresenter.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.0.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_76c24b6617e988b741f1d4e00cd0eae4.html">mvvmwidgets</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">widgetspresenter.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_WIDGETSPRESENTER_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define QTMVVM_WIDGETSPRESENTER_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.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#include &lt;QtCore/qscopedpointer.h&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/ipresenter.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &lt;QtMvvmCore/serviceregistry.h&gt;</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;QtWidgets/qwidget.h&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="preprocessor">#include &quot;QtMvvmWidgets/qtmvvmwidgets_global.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &quot;QtMvvmWidgets/inputwidgetfactory.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_qt_mvvm.html">QtMvvm</a> {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">class </span>WidgetsPresenterPrivate;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_widgets_presenter.html"> 19</a></span>&#160;<span class="keyword">class </span>Q_MVVMWIDGETS_EXPORT <a class="code" href="class_qt_mvvm_1_1_widgets_presenter.html">WidgetsPresenter</a> : <span class="keyword">public</span> <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.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="code" href="class_qt_mvvm_1_1_i_presenter.html">IPresenter</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; Q_OBJECT</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; Q_INTERFACES(<a class="code" href="class_qt_mvvm_1_1_i_presenter.html">QtMvvm::IPresenter</a>)</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</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"><a class="line" href="class_qt_mvvm_1_1_widgets_presenter.html#a8d7ca39d6041fe36b5fd620ff3fc13f4"> 25</a></span>&#160; Q_PROPERTY(<a class="code" href="class_qt_mvvm_1_1_input_widget_factory.html">InputWidgetFactory</a>* inputWidgetFactory READ inputWidgetFactory WRITE setInputWidgetFactory NOTIFY inputWidgetFactoryChanged)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <a class="code" href="injection_8h.html#a0a6e278ad53a06df6f32b1b636ec6151">QTMVVM_INJECT</a>(<a class="code" href="class_qt_mvvm_1_1_input_widget_factory.html">InputWidgetFactory</a>*, inputWidgetFactory)</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;public:</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; Q_INVOKABLE explicit <a class="code" href="class_qt_mvvm_1_1_widgets_presenter.html">WidgetsPresenter</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.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="keywordtype">nullptr</span>);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; ~<a class="code" href="class_qt_mvvm_1_1_widgets_presenter.html">WidgetsPresenter</a>();</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; template &lt;typename TPresenter&gt;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; static <span class="keywordtype">void</span> registerAsPresenter();</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; template &lt;typename TView&gt;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; static <span class="keywordtype">void</span> registerView();</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; static <span class="keywordtype">void</span> registerView(const <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> *viewType);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; template &lt;typename TViewModel, typename TView&gt;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; static <span class="keywordtype">void</span> registerViewExplicitly();</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; static <span class="keywordtype">void</span> registerViewExplicitly(const <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> *viewModelType, const <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> *viewType);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordtype">void</span> present(<a class="code" href="class_qt_mvvm_1_1_view_model.html">ViewModel</a> *viewModel, const QVariantHash &amp;params, <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qpointer.html">QPointer</a>&lt;<a class="code" href="class_qt_mvvm_1_1_view_model.html">ViewModel</a>&gt; parent) override;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordtype">void</span> showDialog(const <a class="code" href="class_qt_mvvm_1_1_message_config.html">MessageConfig</a> &amp;config, <a class="code" href="class_qt_mvvm_1_1_message_result.html">MessageResult</a> *result) override;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="code" href="class_qt_mvvm_1_1_input_widget_factory.html">InputWidgetFactory</a>* inputWidgetFactory() const;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;public Q_SLOTS:</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">void</span> setInputWidgetFactory(<a class="code" href="class_qt_mvvm_1_1_input_widget_factory.html">InputWidgetFactory</a>* inputWidgetFactory);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;Q_SIGNALS:</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">void</span> inputWidgetFactoryChanged(<a class="code" href="class_qt_mvvm_1_1_input_widget_factory.html">InputWidgetFactory</a>* inputWidgetFactory, QPrivateSignal);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;protected:</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; virtual const <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> *findWidgetMetaObject(const <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a> *viewModelMetaObject);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; virtual <span class="keywordtype">bool</span> tryPresent(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_widget.html">QWidget</a> *view, <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_widget.html">QWidget</a> *parentView);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; virtual <span class="keywordtype">void</span> showForeground(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_widget.html">QWidget</a> *view) const;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; virtual <span class="keywordtype">void</span> presentMessageBox(const <a class="code" href="class_qt_mvvm_1_1_message_config.html">MessageConfig</a> &amp;config, <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qpointer.html">QPointer</a>&lt;<a class="code" href="class_qt_mvvm_1_1_message_result.html">MessageResult</a>&gt; result);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; virtual <span class="keywordtype">void</span> presentInputDialog(const <a class="code" href="class_qt_mvvm_1_1_message_config.html">MessageConfig</a> &amp;config, <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qpointer.html">QPointer</a>&lt;<a class="code" href="class_qt_mvvm_1_1_message_result.html">MessageResult</a>&gt; result);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; virtual <span class="keywordtype">void</span> presentFileDialog(const <a class="code" href="class_qt_mvvm_1_1_message_config.html">MessageConfig</a> &amp;config, <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qpointer.html">QPointer</a>&lt;<a class="code" href="class_qt_mvvm_1_1_message_result.html">MessageResult</a>&gt; result);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; virtual <span class="keywordtype">void</span> presentOtherDialog(const <a class="code" href="class_qt_mvvm_1_1_message_config.html">MessageConfig</a> &amp;config, <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qpointer.html">QPointer</a>&lt;<a class="code" href="class_qt_mvvm_1_1_message_result.html">MessageResult</a>&gt; result);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;private:</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.10.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/qscopedpointer.html">QScopedPointer</a>&lt;WidgetsPresenterPrivate&gt; d;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;};</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="comment">// ------------- Generic Implementation -------------</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;template&lt;typename TPresenter&gt;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_widgets_presenter.html#a9d707a6c2003469d6d62d5370356f515"> 88</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_widgets_presenter.html">WidgetsPresenter</a>::registerAsPresenter()</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;{</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; static_assert(std::is_base_of&lt;WidgetsPresenter, TPresenter&gt;::value, <span class="stringliteral">&quot;TPresenter must inherit QtMvvm::WidgetsPresenter!&quot;</span>);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="class_qt_mvvm_1_1_service_registry.html#aabda69c79dc04cebfd2ebaea25e9ee62">ServiceRegistry::instance</a>()-&gt;<a class="code" href="class_qt_mvvm_1_1_service_registry.html#abacfa0d81764df255df41e4ccf175ad8">registerInterface</a>&lt;<a class="code" href="class_qt_mvvm_1_1_i_presenter.html">IPresenter</a>, TPresenter&gt;();</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;}</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TView&gt;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_widgets_presenter.html#a0b665bb6c87884d5789f616814c80cf6"> 95</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_widgets_presenter.html#a0b665bb6c87884d5789f616814c80cf6">WidgetsPresenter::registerView</a>()</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;{</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; static_assert(std::is_base_of&lt;QWidget, TView&gt;::value, <span class="stringliteral">&quot;TWidget must inherit QWidget!&quot;</span>);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordflow">if</span>(<span class="keyword">false</span>) { <span class="comment">//compile time check for the constructor</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; Q_UNREACHABLE();</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; Q_UNUSED(<span class="keyword">new</span> TView(static_cast&lt;ViewModel*&gt;(<span class="keyword">nullptr</span>), static_cast&lt;QWidget*&gt;(<span class="keyword">nullptr</span>)))</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; registerView(&amp;TView::staticMetaObject);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;}</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TViewModel, <span class="keyword">typename</span> TView&gt;</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_widgets_presenter.html#a3ff4fc6783162f3d9e8895d025e949c5"> 106</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_widgets_presenter.html#a3ff4fc6783162f3d9e8895d025e949c5">WidgetsPresenter::registerViewExplicitly</a>()</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;{</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; static_assert(std::is_base_of&lt;QWidget, TView&gt;::value, <span class="stringliteral">&quot;TWidget must inherit QWidget!&quot;</span>);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; static_assert(std::is_base_of&lt;ViewModel, TViewModel&gt;::value, <span class="stringliteral">&quot;TViewModel must inherit ViewModel!&quot;</span>);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordflow">if</span>(<span class="keyword">false</span>) { <span class="comment">//compile time check for the constructor</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; Q_UNREACHABLE();</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; Q_UNUSED(<span class="keyword">new</span> TView(static_cast&lt;ViewModel*&gt;(<span class="keyword">nullptr</span>), static_cast&lt;QWidget*&gt;(<span class="keyword">nullptr</span>)))</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; registerViewExplicitly(&amp;TViewModel::staticMetaObject, &amp;TView::staticMetaObject);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160;}</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</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="preprocessor">#endif // QTMVVM_WIDGETSPRESENTER_H</span></div><div class="ttc" id="qpointer_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qpointer.html">QPointer</a></div></div>
<div class="ttc" id="qmetaobject_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qmetaobject.html">QMetaObject</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html">QtMvvm::MessageConfig</a></div><div class="ttdoc">A configuration for a simple dialog to be shown from the core code. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00018">message.h:18</a></div></div>
<div class="ttc" id="qscopedpointer_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qscopedpointer.html">QScopedPointer</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_widgets_presenter_html"><div class="ttname"><a href="class_qt_mvvm_1_1_widgets_presenter.html">QtMvvm::WidgetsPresenter</a></div><div class="ttdoc">The IPresenter implementation for the widgets module. </div><div class="ttdef"><b>Definition:</b> <a href="widgetspresenter_8h_source.html#l00019">widgetspresenter.h:19</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_i_presenter_html"><div class="ttname"><a href="class_qt_mvvm_1_1_i_presenter.html">QtMvvm::IPresenter</a></div><div class="ttdoc">The interface for a GUI view presenter. </div><div class="ttdef"><b>Definition:</b> <a href="ipresenter_8h_source.html#l00036">ipresenter.h:36</a></div></div>
<div class="ttc" id="injection_8h_html_a0a6e278ad53a06df6f32b1b636ec6151"><div class="ttname"><a href="injection_8h.html#a0a6e278ad53a06df6f32b1b636ec6151">QTMVVM_INJECT</a></div><div class="ttdeci">#define QTMVVM_INJECT(classType, name)</div><div class="ttdoc">Mark a property for injection. </div></div>
<div class="ttc" id="class_qt_mvvm_1_1_view_model_html"><div class="ttname"><a href="class_qt_mvvm_1_1_view_model.html">QtMvvm::ViewModel</a></div><div class="ttdoc">The base class for all viewmodels. </div><div class="ttdef"><b>Definition:</b> <a href="viewmodel_8h_source.html#l00020">viewmodel.h:20</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_widgets_presenter_html_a0b665bb6c87884d5789f616814c80cf6"><div class="ttname"><a href="class_qt_mvvm_1_1_widgets_presenter.html#a0b665bb6c87884d5789f616814c80cf6">QtMvvm::WidgetsPresenter::registerView</a></div><div class="ttdeci">static void registerView()</div><div class="ttdoc">Register a view to be found by the presenter. </div><div class="ttdef"><b>Definition:</b> <a href="widgetspresenter_8h_source.html#l00095">widgetspresenter.h:95</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_message_result_html"><div class="ttname"><a href="class_qt_mvvm_1_1_message_result.html">QtMvvm::MessageResult</a></div><div class="ttdoc">A result watcher to get the result once a dialog has finished. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00172">message.h:172</a></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="class_qt_mvvm_1_1_input_widget_factory_html"><div class="ttname"><a href="class_qt_mvvm_1_1_input_widget_factory.html">QtMvvm::InputWidgetFactory</a></div><div class="ttdoc">A factory class to generate input edit widgets by their type names. </div><div class="ttdef"><b>Definition:</b> <a href="inputwidgetfactory_8h_source.html#l00017">inputwidgetfactory.h:17</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="binding_8h_source.html#l00010">binding.h:10</a></div></div>
<div class="ttc" id="class_q_widget_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/class_q_widget.html">QWidget</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_service_registry_html_abacfa0d81764df255df41e4ccf175ad8"><div class="ttname"><a href="class_qt_mvvm_1_1_service_registry.html#abacfa0d81764df255df41e4ccf175ad8">QtMvvm::ServiceRegistry::registerInterface</a></div><div class="ttdeci">void registerInterface(bool weak=false)</div><div class="ttdoc">Register a service for its interface via the type. </div><div class="ttdef"><b>Definition:</b> <a href="serviceregistry_8h_source.html#l00155">serviceregistry.h:155</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_widgets_presenter_html_a3ff4fc6783162f3d9e8895d025e949c5"><div class="ttname"><a href="class_qt_mvvm_1_1_widgets_presenter.html#a3ff4fc6783162f3d9e8895d025e949c5">QtMvvm::WidgetsPresenter::registerViewExplicitly</a></div><div class="ttdeci">static void registerViewExplicitly()</div><div class="ttdoc">Register a view for a viewmodel to be found by the presenter. </div><div class="ttdef"><b>Definition:</b> <a href="widgetspresenter_8h_source.html#l00106">widgetspresenter.h:106</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_service_registry_html_aabda69c79dc04cebfd2ebaea25e9ee62"><div class="ttname"><a href="class_qt_mvvm_1_1_service_registry.html#aabda69c79dc04cebfd2ebaea25e9ee62">QtMvvm::ServiceRegistry::instance</a></div><div class="ttdeci">static ServiceRegistry * instance()</div><div class="ttdoc">Returns the ServiceRegistry singleton instance. </div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 14 2018 16:19:58 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>