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
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
|
|
 <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&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&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> |
|
|
<a href="#namespaces">Namespaces</a> |
|
|
<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 <type_traits></code><br />
|
|
<code>#include <QtCore/qobject.h></code><br />
|
|
<code>#include <QtCore/qscopedpointer.h></code><br />
|
|
<code>#include <QtCore/qcoreapplication.h></code><br />
|
|
<code>#include "QtMvvmCore/qtmvvmcore_global.h"</code><br />
|
|
<code>#include "QtMvvmCore/viewmodel.h"</code><br />
|
|
<code>#include "QtMvvmCore/ipresenter.h"</code><br />
|
|
<code>#include "QtMvvmCore/message.h"</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  </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"> </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"> </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">  </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"> </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"> </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 </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"> </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"> </td></tr>
|
|
<tr class="memitem:ad47c7c14522a30f104fc131cb99b753a"><td class="memItemLeft" align="right" valign="top"><a id="ad47c7c14522a30f104fc131cb99b753a"></a>
|
|
#define </td><td class="memItemRight" valign="bottom"><a class="el" href="coreapp_8h.html#ad47c7c14522a30f104fc131cb99b753a">coreApp</a>   <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"> </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"> </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">◆ </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"> </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<QtMvvm::CoreApp, T>::value, <span class="stringliteral">"QTMVVM_REGISTER_CORE_APP must be used with a class that extends QtMvvm::CoreApp"</span>); \</div><div class="line"> auto app = <span class="keyword">new</span> T(<span class="keyword">nullptr</span>); \</div><div class="line"> app->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  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.14
|
|
</small></address>
|
|
</body>
|
|
</html>
|
|
|