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.
 
 
 
 
 

99 lines
14 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: qqmlcoreapp.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">qqmlcoreapp.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_QQMLCOREAPP_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define QTMVVM_QQMLCOREAPP_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;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;QtMvvmCore/CoreApp&gt;</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">#ifdef DOXYGEN_RUN</span></div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="namespacede_1_1skycoder42_1_1_qt_mvvm_1_1_core.html"> 9</a></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="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html"> 18</a></span>&#160;<span class="keyword">class </span><a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html">CoreApp</a></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;#else</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;namespace <a class="code" href="namespace_qt_mvvm.html">QtMvvm</a> {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="keyword">class </span>QQmlCoreApp : <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></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#endif</span></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; Q_OBJECT</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;<span class="keyword">public</span>:</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <span class="keyword">explicit</span> QQmlCoreApp(<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="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; Q_INVOKABLE <a class="code" href="class_qt_mvvm_1_1_message_result.html">QtMvvm::MessageResult</a> *<a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#af097b363ab9aa927efaa6bc5011fc394">showDialog</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_message_config.html">QtMvvm::MessageConfig</a> &amp;config);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; Q_INVOKABLE <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/qvariant.html">QVariant</a> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#a5ccb6df42162fe41a305d493911c1f42">safeCastInputType</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;type, <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/qvariant.html">QVariant</a> &amp;value);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">public</span> Q_SLOTS:</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#a09fccdfb06615211054d2a4ce02a5bb6">show</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;viewModelName, <span class="keyword">const</span> QVariantHash &amp;params = {}, <a class="code" href="class_qt_mvvm_1_1_view_model.html">QtMvvm::ViewModel</a> *parentViewModel = <span class="keyword">nullptr</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;Q_SIGNALS:</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#a7e8e988b7173ca97bd27bc30411d8864">appStarted</a>();</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;};</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</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 // QTMVVM_QQMLCOREAPP_H</span></div><div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app_html_a09fccdfb06615211054d2a4ce02a5bb6"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#a09fccdfb06615211054d2a4ce02a5bb6">de::skycoder42::QtMvvm::Core::CoreApp::show</a></div><div class="ttdeci">void show(const QString &amp;viewModelName, const QVariantHash &amp;params={}, QtMvvm::ViewModel *parentViewModel=nullptr)</div><div class="ttdoc">Show a new ViewModel by its name. </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_core_app_html_a5ccb6df42162fe41a305d493911c1f42"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#a5ccb6df42162fe41a305d493911c1f42">de::skycoder42::QtMvvm::Core::CoreApp::safeCastInputType</a></div><div class="ttdeci">Q_INVOKABLE QVariant safeCastInputType(const QString &amp;type, const QVariant &amp;value)</div><div class="ttdoc">Safely casts a value of the given edit type to the corresponding variant type. </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#l00020">message.h:20</a></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_core_app_html_a7e8e988b7173ca97bd27bc30411d8864"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#a7e8e988b7173ca97bd27bc30411d8864">de::skycoder42::QtMvvm::Core::CoreApp::appStarted</a></div><div class="ttdeci">void appStarted()</div><div class="ttdoc">Is emitted once the app has successfully started. </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#l00021">viewmodel.h:21</a></div></div>
<div class="ttc" id="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app_html_af097b363ab9aa927efaa6bc5011fc394"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html#af097b363ab9aa927efaa6bc5011fc394">de::skycoder42::QtMvvm::Core::CoreApp::showDialog</a></div><div class="ttdeci">Q_INVOKABLE QtMvvm::MessageResult * showDialog(const QtMvvm::MessageConfig &amp;config)</div><div class="ttdoc">Show a basic dialog. </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#l00204">message.h:204</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="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_core_app_html"><div class="ttname"><a href="classde_1_1skycoder42_1_1_qt_mvvm_1_1_core_1_1_core_app.html">de::skycoder42::QtMvvm::Core::CoreApp</a></div><div class="ttdoc">A QML singleton to access some QtMvvm::CoreApp functionality. </div><div class="ttdef"><b>Definition:</b> <a href="qqmlcoreapp_8h_source.html#l00018">qqmlcoreapp.h:18</a></div></div>
<div class="ttc" id="qvariant_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qvariant.html">QVariant</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>