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.
 
 
 
 
 

153 lines
9.2 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: coreapp.h File Reference</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_8373e943c4cd41f1987d0cef0f366888.html">mvvmcore</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> </div>
<div class="headertitle">
<div class="title">coreapp.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>The Header that defines the <a class="el" href="class_qt_mvvm_1_1_core_app.html" title="A logicaly application object to drive the mvvm application from the core part. ">QtMvvm::CoreApp</a> class.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;type_traits&gt;</code><br />
<code>#include &lt;QtCore/qobject.h&gt;</code><br />
<code>#include &lt;QtCore/qscopedpointer.h&gt;</code><br />
<code>#include &lt;QtCore/qcoreapplication.h&gt;</code><br />
<code>#include &quot;QtMvvmCore/qtmvvmcore_global.h&quot;</code><br />
<code>#include &quot;QtMvvmCore/viewmodel.h&quot;</code><br />
<code>#include &quot;QtMvvmCore/ipresenter.h&quot;</code><br />
<code>#include &quot;QtMvvmCore/message.h&quot;</code><br />
</div>
<p><a href="coreapp_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qt_mvvm_1_1_core_app.html">QtMvvm::CoreApp</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A logicaly application object to drive the mvvm application from the core part. <a href="class_qt_mvvm_1_1_core_app.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespace_qt_mvvm"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qt_mvvm.html">QtMvvm</a></td></tr>
<tr class="memdesc:namespace_qt_mvvm"><td class="mdescLeft">&#160;</td><td class="mdescRight">The primary namespace of the <a class="el" href="namespace_qt_mvvm.html" title="The primary namespace of the QtMvvm library. ">QtMvvm</a> library. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:aab7ff1f0090a9c98ecb7863f0d4c8af5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coreapp_8h.html#aab7ff1f0090a9c98ecb7863f0d4c8af5">QTMVVM_REGISTER_CORE_APP</a>(T)</td></tr>
<tr class="memdesc:aab7ff1f0090a9c98ecb7863f0d4c8af5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers you custom CoreApp class as CoreApp to be used. <a href="#aab7ff1f0090a9c98ecb7863f0d4c8af5">More...</a><br /></td></tr>
<tr class="separator:aab7ff1f0090a9c98ecb7863f0d4c8af5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad47c7c14522a30f104fc131cb99b753a"><td class="memItemLeft" align="right" valign="top"><a id="ad47c7c14522a30f104fc131cb99b753a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="coreapp_8h.html#ad47c7c14522a30f104fc131cb99b753a">coreApp</a>&#160;&#160;&#160;<a class="el" href="class_qt_mvvm_1_1_core_app.html#a6a65f39119145655a19c35ebe4d77392">QtMvvm::CoreApp::instance</a>()</td></tr>
<tr class="memdesc:ad47c7c14522a30f104fc131cb99b753a"><td class="mdescLeft">&#160;</td><td class="mdescRight">A define as shortcut to the CoreApp. Can be redefined to cast to your custom class type. <br /></td></tr>
<tr class="separator:ad47c7c14522a30f104fc131cb99b753a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The Header that defines the <a class="el" href="class_qt_mvvm_1_1_core_app.html" title="A logicaly application object to drive the mvvm application from the core part. ">QtMvvm::CoreApp</a> class. </p>
<p class="definition">Definition in file <a class="el" href="coreapp_8h_source.html">coreapp.h</a>.</p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="aab7ff1f0090a9c98ecb7863f0d4c8af5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab7ff1f0090a9c98ecb7863f0d4c8af5">&#9670;&nbsp;</a></span>QTMVVM_REGISTER_CORE_APP</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define QTMVVM_REGISTER_CORE_APP</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">T</td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">namespace </span>{\</div><div class="line"> void __setup_ ## T ## _hook() { \</div><div class="line"> static_assert(std::is_base_of&lt;QtMvvm::CoreApp, T&gt;::value, <span class="stringliteral">&quot;QTMVVM_REGISTER_CORE_APP must be used with a class that extends QtMvvm::CoreApp&quot;</span>); \</div><div class="line"> auto app = <span class="keyword">new</span> T(<span class="keyword">nullptr</span>); \</div><div class="line"> app-&gt;registerApp(); \</div><div class="line"> } \</div><div class="line"> } \</div><div class="line"> Q_COREAPP_STARTUP_FUNCTION(__setup_ ## T ## _hook)</div></div><!-- fragment -->
<p>Registers you custom CoreApp class as CoreApp to be used. </p>
<p class="definition">Definition at line <a class="el" href="coreapp_8h_source.html#l00106">106</a> of file <a class="el" href="coreapp_8h_source.html">coreapp.h</a>.</p>
</div>
</div>
</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>