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.
124 lines
108 KiB
124 lines
108 KiB
7 years ago
|
<!-- 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: message.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
|
||
|
 <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&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="headertitle">
|
||
|
<div class="title">message.h</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef QTMVVM_MESSAGE_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define QTMVVM_MESSAGE_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <functional></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <QtCore/qcoreapplication.h></span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <QtCore/qshareddata.h></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <QtCore/qscopedpointer.h></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <QtCore/qurl.h></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <QtCore/qvariant.h></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "QtMvvmCore/qtmvvmcore_global.h"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="keyword">namespace </span><a class="code" href="namespace_qt_mvvm.html">QtMvvm</a> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">class </span>MessageConfigPrivate;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_message_config.html"> 18</a></span> <span class="keyword">class </span>Q_MVVMCORE_EXPORT <a class="code" href="class_qt_mvvm_1_1_message_config.html">MessageConfig</a></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  Q_GADGET</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  Q_DECLARE_TR_FUNCTIONS(<a class="code" href="class_qt_mvvm_1_1_message_config.html">MessageConfig</a>)</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_message_config.html#a8ddd0717a5f8a07f520df25743ded0da"> 24</a></span>  Q_PROPERTY(<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/qbytearray.html">QByteArray</a> type READ type WRITE setType)</div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_message_config.html#aa9f8a83b2ce22d09daf24aad158d7974"> 26</a></span>  Q_PROPERTY(<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/qbytearray.html">QByteArray</a> subType READ subType WRITE setSubType RESET resetSubType)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_message_config.html#afb1800a2cda243e13cf7cb7e2df67cc1"> 29</a></span>  Q_PROPERTY(<a class="codeRef" target=
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_a4e605350d96923e7bdf000388fc514f5"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#a4e605350d96923e7bdf000388fc514f5">QtMvvm::MessageConfig::TypeFileDialog</a></div><div class="ttdeci">static const QByteArray TypeFileDialog</div><div class="ttdoc">A type to show a generic file dialog. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00078">message.h:78</a></div></div>
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_ac1f47659b3654bceabe0214f509574fd"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#ac1f47659b3654bceabe0214f509574fd">QtMvvm::MessageConfig::SubTypeSaveFile</a></div><div class="ttdeci">static const QByteArray SubTypeSaveFile</div><div class="ttdoc">A subType for to show a save file dialog. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00108">message.h:108</a></div></div>
|
||
|
<div class="ttc" id="qbytearray_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qbytearray.html">QByteArray</a></div></div>
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_a3cddb350d1e1945691ef81972fab9cfb"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#a3cddb350d1e1945691ef81972fab9cfb">QtMvvm::MessageConfig::SubTypeOpenFile</a></div><div class="ttdeci">static const QByteArray SubTypeOpenFile</div><div class="ttdoc">A subType for to show an open file dialog. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00104">message.h:104</a></div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_a48aa33f9cc2ccf23a6ab12dc777380d4"><div class="ttname"><a href="namespace_qt_mvvm.html#a48aa33f9cc2ccf23a6ab12dc777380d4">QtMvvm::getOpenFiles</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * getOpenFiles(const QString &title={}, const QStringList &supportedMimeTypes={}, const QUrl &dir={})</div><div class="ttdoc">A shortcut to show a file dialog to select multiple existing files. </div></div>
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_ad6b7b271e558619f15c5eb9a3cf78fb8"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#ad6b7b271e558619f15c5eb9a3cf78fb8">QtMvvm::MessageConfig::StandardButton</a></div><div class="ttdeci">StandardButton</div><div class="ttdoc">The Possible Buttons a dialog can have. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00044">message.h:44</a></div></div>
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_ae80918dc646fe89d59a1ddfed729d1b7"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#ae80918dc646fe89d59a1ddfed729d1b7">QtMvvm::MessageConfig::TypeInputDialog</a></div><div class="ttdeci">static const QByteArray TypeInputDialog</div><div class="ttdoc">A type to show a generic input dialog. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00076">message.h:76</a></div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_af4a7cfc37c449b39e324cc29049de30d"><div class="ttname"><a href="namespace_qt_mvvm.html#af4a7cfc37c449b39e324cc29049de30d">QtMvvm::getSaveFile</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * getSaveFile(const QString &title={}, const QStringList &supportedMimeTypes={}, const QUrl &dir={})</div><div class="ttdoc">A shortcut to show a file dialog to select a new file for saving. </div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_a16ece10b0a810b7f8ea4a8e2c2dadebd"><div class="ttname"><a href="namespace_qt_mvvm.html#a16ece10b0a810b7f8ea4a8e2c2dadebd">QtMvvm::getInput</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * getInput(const QString &title, const QString &text, const char *inputType, const QVariant &defaultValue={}, const QVariantMap &viewProperties={}, const QString &okText={}, const QString &cancelText={})</div><div class="ttdoc">A shortcut to show an input dialog based of a type name. </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="class_qt_mvvm_1_1_message_config_html_a7ea76429894925348673ce056e6333a5"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#a7ea76429894925348673ce056e6333a5">QtMvvm::MessageConfig::SubTypeOpenFiles</a></div><div class="ttdeci">static const QByteArray SubTypeOpenFiles</div><div class="ttdoc">A subType for to show an open files dialog. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00106">message.h:106</a></div></div>
|
||
|
<div class="ttc" id="qhash_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qhash.html">QHash</a></div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_a1567e3d6c664b42dfafee8cfbf5ee789"><div class="ttname"><a href="namespace_qt_mvvm.html#a1567e3d6c664b42dfafee8cfbf5ee789">QtMvvm::getOpenFile</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * getOpenFile(const QString &title={}, const QStringList &supportedMimeTypes={}, const QUrl &dir={})</div><div class="ttdoc">A shortcut to show a file dialog to select an existing file. </div></div>
|
||
|
<div class="ttc" id="qscopedpointer_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qscopedpointer.html">QScopedPointer< MessageResultPrivate ></a></div></div>
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_af1da936978c654528209f5e56a0edc92"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#af1da936978c654528209f5e56a0edc92">QtMvvm::MessageConfig::SubTypeQuestion</a></div><div class="ttdeci">static const QByteArray SubTypeQuestion</div><div class="ttdoc">A subType to show a question message. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00092">message.h:92</a></div></div>
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_ac5827989812703233c53f480de71e673"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#ac5827989812703233c53f480de71e673">QtMvvm::MessageConfig::SubTypeAbout</a></div><div class="ttdeci">static const QByteArray SubTypeAbout</div><div class="ttdoc">A subType to show an about dialog. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00094">message.h:94</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="qlist_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qlist.html">QList</a></div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_a6a668c8af9c38f98a7cb79a1bdc48273"><div class="ttname"><a href="namespace_qt_mvvm.html#a6a668c8af9c38f98a7cb79a1bdc48273">QtMvvm::about</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * about(const QString &description, const QUrl &websiteUrl=QUrl(), const QString &licenseName=QString(), const QUrl &licenseUrl=QUrl(), const QString &companyName=QString(), bool addQtVersion=true, const QStringList &extraTopInfos=QStringList(), const QString &extraBottomInfos=QString())</div><div class="ttdoc">A shortcut to show a rich but simple about dialog. </div></div>
|
||
|
<div class="ttc" id="qstringlist_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qstringlist.html">QStringList</a></div></div>
|
||
|
<div class="ttc" id="class_qt_mvvm_1_1_message_config_html_a52c3ad5e63a25795a4ec3034a152f477"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#a52c3ad5e63a25795a4ec3034a152f477">QtMvvm::MessageConfig::SubTypeCritical</a></div><div class="ttdeci">static const QByteArray SubTypeCritical</div><div class="ttdoc">A subType to show a critical error message. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00090">message.h:90</a></div></div>
|
||
|
<div class="ttc" id="qurl_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qurl.html">QUrl</a></div></div>
|
||
|
<div class="ttc" id="qvariant_html_fromValue"><div class="ttname"><a href="https://doc.qt.io/qt-5/qvariant.html#fromValue">QVariant::fromValue</a></div><div class="ttdeci">QVariant fromValue(const T &value)</div></div>
|
||
|
<div class="ttc" id="qmetatype_html_typeName"><div class="ttname"><a href="https://doc.qt.io/qt-5/qmetatype.html#typeName">QMetaType::typeName</a></div><div class="ttdeci">const char * typeName(int typeId)</div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_adafd61fd34161741fa78cf3141f59e68"><div class="ttname"><a href="namespace_qt_mvvm.html#adafd61fd34161741fa78cf3141f59e68">QtMvvm::critical</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * critical(const QString &title, const QString &text, const QString &okText={})</div><div class="ttdoc">A shortcut to show a simple critical error messagebox. </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="qvariant_html_isValid"><div class="ttname"><a href="https://doc.qt.io/qt-5/qvariant.html#isValid">QVariant::isValid</a></div><div class="ttdeci">bool isValid() const</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_qt_mvvm_1_1_message_config_html_a92ead36d20317f7d25c717e179ac9d02"><div class="ttname"><a href="class_qt_mvvm_1_1_message_config.html#a92ead36d20317f7d25c717e179ac9d02">QtMvvm::MessageConfig::SubTypeWarning</a></div><div class="ttdeci">static const QByteArray SubTypeWarning</div><div class="ttdoc">A subType to show a warning message. </div><div class="ttdef"><b>Definition:</b> <a href="message_8h_source.html#l00088">message.h:88</a></div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_afc3d66e8ff6416cd6faff0deda2248ae"><div class="ttname"><a href="namespace_qt_mvvm.html#afc3d66e8ff6416cd6faff0deda2248ae">QtMvvm::warning</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * warning(const QString &title, const QString &text, const QString &okText={})</div><div class="ttdoc">A shortcut to show a simple warning messagebox. </div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_a8f6889d8a2501931cb930b37ef1f0f98"><div class="ttname"><a href="namespace_qt_mvvm.html#a8f6889d8a2501931cb930b37ef1f0f98">QtMvvm::getExistingDirectory</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * getExistingDirectory(const QString &title={}, const QUrl &dir={})</div><div class="ttdoc">A shortcut to show a file dialog to select an existing directory. </div></div>
|
||
|
<div class="ttc" id="qmetamethod_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qmetamethod.html">QMetaMethod</a></div></div>
|
||
|
<div class="ttc" id="namespace_qt_mvvm_html_aa455b495d75883cc529f5a4c47d567d5"><div class="ttname"><a href="namespace_qt_mvvm.html#aa455b495d75883cc529f5a4c47d567d5">QtMvvm::information</a></div><div class="ttdeci">Q_MVVMCORE_EXPORT MessageResult * information(const QString &title, const QString &text, const QString &okText={})</div><div class="ttdoc">A shortcut to show a simple information messagebox. </div></div>
|
||
|
<div class="ttc" id="qshareddatapointer_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qshareddatapointer.html">QSharedDataPointer< MessageConfigPrivate ></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 Mar 14 2018 16:19:58 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>
|