<trclass="memdesc:a27a2d028f720d4d0545c050be34f02c1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A mapping from sync states to a text color. <br/></td></tr>
<trclass="memdesc:aa8adb3f05555aba4d6813586a01b901c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Synchronizes or reconnects with the server. <br/></td></tr>
<trclass="memdesc:a1f1dcb0a2a79797c20aeebc049cb94a3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show and edit information about this current device. <br/></td></tr>
<trclass="memdesc:a2830ad47789b08882832b5f42e631e12"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Start an import from a file. <br/></td></tr>
<trclass="memdesc:ad763e82bc74ce071657d7b8bcb752465"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show a confirmation dialog to reset the account (and then reset) <br/></td></tr>
<trclass="memdesc:ad72aed3f8ff5e1ba37e05e07ca06987f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show a dialog to change the remote server connected to. <br/></td></tr>
<trclass="memdesc:aa961aeee2538c0face47f77cce4afeb6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Start a network exchange by showing the <aclass="el"href="class_qt_mvvm_1_1_network_exchange_view_model.html"title="A viewmodel to show a dialog to exchange account data via the QtDataSync::UserExchangeManager. ">NetworkExchangeViewModel</a>. <br/></td></tr>
<trclass="memdesc:adf9c35f431c5d56c1aa581baa962937a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Remove the with the given index in the sorted model from the account. <ahref="#adf9c35f431c5d56c1aa581baa962937a">More...</a><br/></td></tr>
<trclass="memdesc:a7780c8c145315c104a6cf922d847562a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">WRITE accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a84c4d0f104f35fcc80b3c06fd0745e0e"title="A mapping of sync states to text colors. ">DataSyncViewModel::colorMap</a>. <br/></td></tr>
<trclass="memdesc:adac8eb4aa189713e5b697e700024c984"><tdclass="mdescLeft"> </td><tdclass="mdescRight">RESET accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a84c4d0f104f35fcc80b3c06fd0745e0e"title="A mapping of sync states to text colors. ">DataSyncViewModel::colorMap</a>. <br/></td></tr>
<trclass="memdesc:ab05dfbc9bb1fefe565af07eb0a601c92"><tdclass="mdescLeft"> </td><tdclass="mdescRight">NOTIFY accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a33cb397273b0ec974e8029db1969bdad"title="The sync manager the viewmodel operates on. ">DataSyncViewModel::syncManager</a>. <br/></td></tr>
<trclass="memdesc:a32ccc4ad92ba4e8c363d6dfca0e05ea6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">NOTIFY accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6e8bcb66483cb605afa00cf16343d628"title="The account manager the viewmodel operates on. ">DataSyncViewModel::accountManager</a>. <br/></td></tr>
<trclass="memdesc:adcebb4baa2a8257ee41d28c2f515d307"><tdclass="mdescLeft"> </td><tdclass="mdescRight">NOTIFY accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a84c4d0f104f35fcc80b3c06fd0745e0e"title="A mapping of sync states to text colors. ">DataSyncViewModel::colorMap</a>. <br/></td></tr>
<trclass="memdesc:a2e843bc02e4433f4989601a0760e2125"><tdclass="mdescLeft"> </td><tdclass="mdescRight">NOTIFY accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6bc8f7add23baf8be55aa76c3805fa70"title="A styles string describing the current sync status. ">DataSyncViewModel::statusString</a>. <br/></td></tr>
<trclass="memdesc:a5b847d08a00170f61538f293fe5cd242"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Is emitted as soon as all the datasync managers have been initialized. <br/></td></tr>
<trclass="inherit_header signals_class_qt_mvvm_1_1_view_model"><tdcolspan="2"onclick="javascript:toggleInherit('signals_class_qt_mvvm_1_1_view_model')"><imgsrc="closed.png"alt="-"/> Signals inherited from <aclass="el"href="class_qt_mvvm_1_1_view_model.html">QtMvvm::ViewModel</a></td></tr>
<trclass="memdesc:ac411a428c622bf6cf9b0b594de23d81f inherit signals_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Should be emitted when the viewmodels result is ready. <ahref="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f">More...</a><br/></td></tr>
<trclass="memdesc:aac43c9f8e10500afb8d72d6c39590d3b inherit signals_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Is emitted on single instance viewmodels when they get shown again. <ahref="class_qt_mvvm_1_1_view_model.html#aac43c9f8e10500afb8d72d6c39590d3b">More...</a><br/></td></tr>
<trclass="memdesc:a46a08ec60516e4f4cdde3fd8231738dc"><tdclass="mdescLeft"> </td><tdclass="mdescRight">READ accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a33cb397273b0ec974e8029db1969bdad"title="The sync manager the viewmodel operates on. ">DataSyncViewModel::syncManager</a>. <br/></td></tr>
<trclass="memdesc:afbf2598ebd31744e7801642af56d346f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">READ accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6e8bcb66483cb605afa00cf16343d628"title="The account manager the viewmodel operates on. ">DataSyncViewModel::accountManager</a>. <br/></td></tr>
<trclass="memdesc:aac2d68441126f82a05e9d2d368ddce4a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">READ accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a84c4d0f104f35fcc80b3c06fd0745e0e"title="A mapping of sync states to text colors. ">DataSyncViewModel::colorMap</a>. <br/></td></tr>
<trclass="memdesc:a2aa0639ad395a33426b18231d0366bce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">READ accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6bc8f7add23baf8be55aa76c3805fa70"title="A styles string describing the current sync status. ">DataSyncViewModel::statusString</a>. <br/></td></tr>
<trclass="memdesc:ac941bb5d5f82cfc18f25217d37dad8ea"><tdclass="mdescLeft"> </td><tdclass="mdescRight">READ accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#af11a2c6ab18ae29318541b6f8dd19feb"title="The account model to be used to display account devices. ">DataSyncViewModel::accountModel</a>. <br/></td></tr>
<trclass="memdesc:a0ba555b6f0025eeb7788ed40927cdcda"><tdclass="mdescLeft"> </td><tdclass="mdescRight">READ accessor for <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad843679b34bd0129783adbce0554896e"title="A sorted version of the account model. ">DataSyncViewModel::sortedModel</a>. <br/></td></tr>
<trclass="inherit_header pub_methods_class_qt_mvvm_1_1_view_model"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_qt_mvvm_1_1_view_model')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="class_qt_mvvm_1_1_view_model.html">QtMvvm::ViewModel</a></td></tr>
<trclass="inherit_header pub_methods_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_q_object')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
int </td><tdclass="memItemRight"valign="bottom"><aclass="elRef"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/qobject.html#startTimer-1">startTimer</a> (std::chrono::milliseconds time, Qt::TimerType timerType)</td></tr>
<trclass="memdesc:a9bafb64c9a2e08b34f61c14fa807c5c8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Generates show parameter to show a datasync viewmodel via <aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a>. <ahref="#a9bafb64c9a2e08b34f61c14fa807c5c8">More...</a><br/></td></tr>
<trclass="memdesc:ab8fbe78606ba7638dc98ad3d031ac08a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Generates show parameter to show a datasync viewmodel via <aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a>. <ahref="#ab8fbe78606ba7638dc98ad3d031ac08a">More...</a><br/></td></tr>
<trclass="memdesc:ab7d27fe7517dc944315995f9e4979ee9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a binary fingerprint to a human readable string. <ahref="#ab7d27fe7517dc944315995f9e4979ee9">More...</a><br/></td></tr>
<trclass="inherit_header pub_static_methods_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('pub_static_methods_class_q_object')"><imgsrc="closed.png"alt="-"/> Static Public Member Functions inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
<trclass="memdesc:a1d46344a64f91d8ea9fb4ce743c058ec"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The parameter for a setup name for the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a820d813143b769c98daa8abc3d13c408"title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method. <ahref="#a1d46344a64f91d8ea9fb4ce743c058ec">More...</a><br/></td></tr>
<trclass="memdesc:aaf2815830b693195ef3758f234a51ea3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The parameter for a <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtremoteobjects/qtremoteobjects.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qremoteobjectnode.html">QRemoteObjectNode</a> for the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a820d813143b769c98daa8abc3d13c408"title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method. <ahref="#aaf2815830b693195ef3758f234a51ea3">More...</a><br/></td></tr>
<trclass="memdesc:a820d813143b769c98daa8abc3d13c408"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called by the presenter to initialize the viewmodel. <ahref="#a820d813143b769c98daa8abc3d13c408">More...</a><br/></td></tr>
<trclass="memdesc:a00882b4d210f598fdd9e9f96640f0d96"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Called by the presenter when a result of a showed viewmodel is ready. <ahref="#a00882b4d210f598fdd9e9f96640f0d96">More...</a><br/></td></tr>
<trclass="inherit_header pro_methods_class_qt_mvvm_1_1_view_model"><tdcolspan="2"onclick="javascript:toggleInherit('pro_methods_class_qt_mvvm_1_1_view_model')"><imgsrc="closed.png"alt="-"/> Protected Member Functions inherited from <aclass="el"href="class_qt_mvvm_1_1_view_model.html">QtMvvm::ViewModel</a></td></tr>
<trclass="memdesc:aa69782ceb2b1657f004fdfc22ea4efaa inherit pro_methods_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show another viewmodel as a child of this one. <ahref="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa">More...</a><br/></td></tr>
<trclass="memdesc:a238c2cb9fed0e4131a7ca73033728d11 inherit pro_methods_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show another viewmodel as a child of this one. <ahref="class_qt_mvvm_1_1_view_model.html#a238c2cb9fed0e4131a7ca73033728d11">More...</a><br/></td></tr>
<trclass="memdesc:a14ff0d5358f52b5a3383f1f8d3e81202 inherit pro_methods_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show another viewmodel as a child of this one. <ahref="class_qt_mvvm_1_1_view_model.html#a14ff0d5358f52b5a3383f1f8d3e81202">More...</a><br/></td></tr>
<trclass="memdesc:a7a5b532fd4dfb25a01dcf8a10311ac1a inherit pro_methods_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show another viewmodel as a child of this one and expect its result. <ahref="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a">More...</a><br/></td></tr>
<trclass="memdesc:a0bc3140cbd2c2dc6b40b5ca00c297a2c inherit pro_methods_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show another viewmodel as a child of this one and expect its result. <ahref="class_qt_mvvm_1_1_view_model.html#a0bc3140cbd2c2dc6b40b5ca00c297a2c">More...</a><br/></td></tr>
<trclass="memdesc:a08d21a1940935bc703bcfb50dc6656e4 inherit pro_methods_class_qt_mvvm_1_1_view_model"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Show another viewmodel as a child of this one and expect its result. <ahref="class_qt_mvvm_1_1_view_model.html#a08d21a1940935bc703bcfb50dc6656e4">More...</a><br/></td></tr>
<trclass="inherit_header pro_methods_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('pro_methods_class_q_object')"><imgsrc="closed.png"alt="-"/> Protected Member Functions inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
<trclass="memdesc:a33cb397273b0ec974e8029db1969bdad"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The sync manager the viewmodel operates on. <ahref="#a33cb397273b0ec974e8029db1969bdad">More...</a><br/></td></tr>
<trclass="memdesc:a6e8bcb66483cb605afa00cf16343d628"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The account manager the viewmodel operates on. <ahref="#a6e8bcb66483cb605afa00cf16343d628">More...</a><br/></td></tr>
<trclass="memdesc:a84c4d0f104f35fcc80b3c06fd0745e0e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A mapping of sync states to text colors. <ahref="#a84c4d0f104f35fcc80b3c06fd0745e0e">More...</a><br/></td></tr>
<trclass="memdesc:a6bc8f7add23baf8be55aa76c3805fa70"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A styles string describing the current sync status. <ahref="#a6bc8f7add23baf8be55aa76c3805fa70">More...</a><br/></td></tr>
<trclass="memdesc:af11a2c6ab18ae29318541b6f8dd19feb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The account model to be used to display account devices. <ahref="#af11a2c6ab18ae29318541b6f8dd19feb">More...</a><br/></td></tr>
<trclass="memdesc:ad843679b34bd0129783adbce0554896e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A sorted version of the account model. <ahref="#ad843679b34bd0129783adbce0554896e">More...</a><br/></td></tr>
<trclass="inherit_header properties_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('properties_class_q_object')"><imgsrc="closed.png"alt="-"/> Properties inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
<divclass="textblock"><p>A viewmodel to show a overview of the datasync status and account. </p>
<p>The viewmodel provides data to show a ui that gives access to all of the important datasync account features and the synchronization status. The uis should show:</p>
<ul>
<li>The sync status as string (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6bc8f7add23baf8be55aa76c3805fa70"title="A styles string describing the current sync status. ">DataSyncViewModel::statusString</a>)</li>
<li>A sync progress when actively syncing (<aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_sync_manager.html#add8e211d60fc916654a4a0bafb510826">QtDataSync::SyncManager::syncProgress</a>)</li>
<li>A possible error string, if an error occurs (<aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_sync_manager.html#a6c287edb2c6d7697c40f27abae9427e9">QtDataSync::SyncManager::lastError</a>)</li>
<li>A list of all devices of the account (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad843679b34bd0129783adbce0554896e"title="A sorted version of the account model. ">DataSyncViewModel::sortedModel</a>)</li>
<li>Actions to:<ul>
<li>Synchronize (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#aa8adb3f05555aba4d6813586a01b901c"title="Synchronizes or reconnects with the server. ">syncOrConnect()</a>)</li>
<li>Edit the identity (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a1f1dcb0a2a79797c20aeebc049cb94a3"title="Show and edit information about this current device. ">showDeviceInfo()</a>)</li>
<li>Reload the list of devices (<aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_account_manager.html#ac786ccc71d226e95113ca6122e52eb18">QtDataSync::AccountManager::listDevices</a>)</li>
<li>Remove devices (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#adf9c35f431c5d56c1aa581baa962937a"title="Remove the with the given index in the sorted model from the account. ">removeDevice()</a>)</li>
<li>Update the exchange key (<aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_account_manager.html#a357d920a64519383c0e32bfb011bb26e">QtDataSync::AccountManager::updateExchangeKey</a>)</li>
<li>Change the remote server (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad72aed3f8ff5e1ba37e05e07ca06987f"title="Show a dialog to change the remote server connected to. ">changeRemote()</a>)</li>
<li>Reset the account (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad763e82bc74ce071657d7b8bcb752465"title="Show a confirmation dialog to reset the account (and then reset) ">performReset()</a>)</li>
<li>Export the account data (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a17935482e428c099c3269d167990ce80"title="Start an export to a file. ">startExport()</a>)</li>
<li>Import the account data (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a2830ad47789b08882832b5f42e631e12"title="Start an import from a file. ">startImport()</a>)</li>
<li>Show the exchange viewmodel (<aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#aa961aeee2538c0face47f77cce4afeb6"title="Start a network exchange by showing the NetworkExchangeViewModel. ">startNetworkExchange()</a>)</li>
<dlclass="section see"><dt>See also</dt><dd><aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/namespace_qt_data_sync.html">QtDataSync</a>, <aclass="el"href="class_qt_mvvm_1_1_network_exchange_view_model.html"title="A viewmodel to show a dialog to exchange account data via the QtDataSync::UserExchangeManager. ">NetworkExchangeViewModel</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00022">22</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>The returned string will be of the format: </p><divclass="fragment"><divclass="line">AB:CD:EF:01:02:03:...</div></div><!-- fragment --><dlclass="section see"><dt>See also</dt><dd><aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_account_manager.html#a213d35fe1bb45d3c52570bbab3c3766b">QtDataSync::AccountManager::deviceFingerprint</a>, <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_device_info.html#a58101b115f9dc639c2fbead431510921">QtDataSync::DeviceInfo::fingerprint</a></dd></dl>
<p>Called by the presenter to initialize the viewmodel. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">params</td><td>The parameters to initialize the viewmodel with</td></tr>
</table>
</dd>
</dl>
<p>This method is called by the presenter right after creating the view and reparenting the viewmodel to the view. The parameters are the ones that have been passed to the show method called to show this viewmodel instance. Reimplement this method if you need to perform initializations after beeing assigned to a viewmodel or if you want to support a parametrized viewmodel.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a>, <aclass="el"href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a"title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <aclass="el"href="class_qt_mvvm_1_1_core_app.html#a217da24a389f941bac316016928d30df"title="Show a new ViewModel by its type. ">CoreApp::show</a></dd></dl>
<p>When showing a child viewmodel via <aclass="el"href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a"title="Show another viewmodel as a child of this one and expect its result. ">showForResult()</a>, then the result of that show request is reported back via this function. The requestCode is the one that was passed to the <aclass="el"href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a"title="Show another viewmodel as a child of this one and expect its result. ">showForResult()</a> method, and the result what the viewmodel reported back. If the showed viewmodel emitted <aclass="el"href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f"title="Should be emitted when the viewmodels result is ready. ">resultReady()</a> before beeing destroyed, this value passed to that signal is whats reported as result. If the child viewmodel gets destroyed without ever emitting that signal, this method is still called, but with an invalid <aclass="elRef"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> as result.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_view_model.html#a7a5b532fd4dfb25a01dcf8a10311ac1a"title="Show another viewmodel as a child of this one and expect its result. ">ViewModel::showForResult</a>, <aclass="el"href="class_qt_mvvm_1_1_view_model.html#ac411a428c622bf6cf9b0b594de23d81f"title="Should be emitted when the viewmodels result is ready. ">ViewModel::resultReady</a></dd></dl>
<p>Reimplemented from <aclass="el"href="class_qt_mvvm_1_1_view_model.html#a0da1ac73d99d0ddd7d22937e6c2e476d">QtMvvm::ViewModel</a>.</p>
<p>Remove the with the given index in the sorted model from the account. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">sortedIndex</td><td>The index in the sorted model to be removed</td></tr>
</table>
</dd>
</dl>
<dlclass="section warning"><dt>Warning</dt><dd>The passed index <b>must</b> be an index from the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad843679b34bd0129783adbce0554896e"title="A sorted version of the account model. ">DataSyncViewModel::sortedModel</a>! It is translated to an account model index and the passed to <aclass="el"href="class_qt_mvvm_1_1_account_model.html#a79d8743fabcaf560d6dcd1993ebd8fb8"title="Removes the device with the given index from the account. ">AccountModel::removeDevice</a>. If you do not use the sorted model, use the account model remove directly. If you use the sorted model (as recommended) use this method.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_account_model.html#a79d8743fabcaf560d6dcd1993ebd8fb8"title="Removes the device with the given index from the account. ">AccountModel::removeDevice</a>, <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad843679b34bd0129783adbce0554896e"title="A sorted version of the account model. ">DataSyncViewModel::sortedModel</a></dd></dl>
<p>Generates show parameter to show a datasync viewmodel via <aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a>. </p>
<tr><tdclass="paramname">setup</td><td>The name of the <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_setup.html">QtDataSync::Setup</a> to create the viewmodel for </td></tr>
<dlclass="section return"><dt>Returns</dt><dd>A paramater hash to be passed to <aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a></dd></dl>
<p>It's a shortcut to generate parameters for the show methods to show a datasync viewmodel. Use them as:</p>
<divclass="fragment"><divclass="line">show<QtMvvm::DataSyncViewModel>(<aclass="code"href="class_qt_mvvm_1_1_data_sync_view_model.html#a9bafb64c9a2e08b34f61c14fa807c5c8">QtMvvm::DataSyncViewModel::showParams</a>(...));</div></div><!-- fragment --><dlclass="section note"><dt>Note</dt><dd>Unless you need to explicitly set the setup or node a normal show without any parameters will just do fine.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a>, <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a1d46344a64f91d8ea9fb4ce743c058ec"title="The parameter for a setup name for the onInit() method. ">DataSyncViewModel::paramSetup</a></dd></dl>
<p>Generates show parameter to show a datasync viewmodel via <aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">node</td><td>The node to use to get the replicas for the managers </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>A paramater hash to be passed to <aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a></dd></dl>
<p>It's a shortcut to generate parameters for the show methods to show a datasync viewmodel. Use them as:</p>
<divclass="fragment"><divclass="line">show<QtMvvm::DataSyncViewModel>(<aclass="code"href="class_qt_mvvm_1_1_data_sync_view_model.html#a9bafb64c9a2e08b34f61c14fa807c5c8">QtMvvm::DataSyncViewModel::showParams</a>(...));</div></div><!-- fragment --><dlclass="section note"><dt>Note</dt><dd>Unless you need to explicitly set the setup or node a normal show without any parameters will just do fine.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_view_model.html#aa69782ceb2b1657f004fdfc22ea4efaa"title="Show another viewmodel as a child of this one. ">ViewModel::show</a>, <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#aaf2815830b693195ef3758f234a51ea3"title="The parameter for a QRemoteObjectNode for the onInit() method. ">DataSyncViewModel::paramReplicaNode</a></dd></dl>
</div>
</div>
<h2class="groupheader">Member Data Documentation</h2>
<p>The parameter for a <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtremoteobjects/qtremoteobjects.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qremoteobjectnode.html">QRemoteObjectNode</a> for the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a820d813143b769c98daa8abc3d13c408"title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a9bafb64c9a2e08b34f61c14fa807c5c8"title="Generates show parameter to show a datasync viewmodel via ViewModel::show. ">DataSyncViewModel::showParams</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00048">48</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
<p>The parameter for a setup name for the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a820d813143b769c98daa8abc3d13c408"title="Called by the presenter to initialize the viewmodel. ">onInit()</a> method. </p>
<p><b>Value:</b><code>"setup"</code></p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a9bafb64c9a2e08b34f61c14fa807c5c8"title="Generates show parameter to show a datasync viewmodel via ViewModel::show. ">DataSyncViewModel::showParams</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00046">46</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
<p>The account manager the viewmodel operates on. </p>
<p><b>Default:</b><code>nullptr</code> (Is initialized by <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a820d813143b769c98daa8abc3d13c408"title="Called by the presenter to initialize the viewmodel. ">onInit()</a>) <br/>
</p>
<p>A reference to the account manager the view model internally uses. Is owned by the viewmodel, but can be used to get properties for the ui.</p>
<tableclass="doxtable">
<tr>
<thcolspan="2">Accessors </th></tr>
<tr>
<td><b>READ</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6e8bcb66483cb605afa00cf16343d628"title="The account manager the viewmodel operates on. ">accountManager()</a></td></tr>
<tr>
<td><b>NOTIFY</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a32ccc4ad92ba4e8c363d6dfca0e05ea6"title="NOTIFY accessor for DataSyncViewModel::accountManager. ">accountManagerChanged()</a></td></tr>
</table>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a33cb397273b0ec974e8029db1969bdad"title="The sync manager the viewmodel operates on. ">DataSyncViewModel::syncManager</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00029">29</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
<p>The account model to be used to display account devices. </p>
<p><b>Default:</b><em>An account model</em><br/>
</p>
<p>An unsorted model with all the devices of the current account. Automatically initialized and managed by the viewmodel.</p>
<dlclass="section note"><dt>Note</dt><dd>You should use the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad843679b34bd0129783adbce0554896e"title="A sorted version of the account model. ">DataSyncViewModel::sortedModel</a> property when creating views. It is a sorted version of this model, which is better for users.</dd></dl>
<tableclass="doxtable">
<tr>
<thcolspan="2">Accessors </th></tr>
<tr>
<td><b>READ</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#af11a2c6ab18ae29318541b6f8dd19feb"title="The account model to be used to display account devices. ">accountModel()</a></td></tr>
<tr>
<tdcolspan="2"><b>CONSTANT</b></td></tr>
</table>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad843679b34bd0129783adbce0554896e"title="A sorted version of the account model. ">DataSyncViewModel::sortedModel</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00037">37</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
<p>This map is used by the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6bc8f7add23baf8be55aa76c3805fa70"title="A styles string describing the current sync status. ">DataSyncViewModel::statusString</a> property to determine the color of the status string, based of the state itself. You can change this property if you need different colors for your theme.</p>
<tableclass="doxtable">
<tr>
<thcolspan="2">Accessors </th></tr>
<tr>
<td><b>READ</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a84c4d0f104f35fcc80b3c06fd0745e0e"title="A mapping of sync states to text colors. ">colorMap()</a></td></tr>
<tr>
<td><b>WRITE</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a7780c8c145315c104a6cf922d847562a"title="WRITE accessor for DataSyncViewModel::colorMap. ">setColorMap()</a></td></tr>
<tr>
<td><b>RESET</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#adac8eb4aa189713e5b697e700024c984"title="RESET accessor for DataSyncViewModel::colorMap. ">resetColorMap()</a></td></tr>
<tr>
<td><b>NOTIFY</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#adcebb4baa2a8257ee41d28c2f515d307"title="NOTIFY accessor for DataSyncViewModel::colorMap. ">colorMapChanged()</a></td></tr>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6bc8f7add23baf8be55aa76c3805fa70"title="A styles string describing the current sync status. ">DataSyncViewModel::statusString</a>, <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a27a2d028f720d4d0545c050be34f02c1"title="A mapping from sync states to a text color. ">DataSyncViewModel::ColorMap</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00032">32</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
<p>A sorted proxy to the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#af11a2c6ab18ae29318541b6f8dd19feb"title="The account model to be used to display account devices. ">DataSyncViewModel::accountModel</a>. You should prefer this sorted version when binding views to the viewmodel.</p>
<tableclass="doxtable">
<tr>
<thcolspan="2">Accessors </th></tr>
<tr>
<td><b>READ</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ad843679b34bd0129783adbce0554896e"title="A sorted version of the account model. ">sortedModel()</a></td></tr>
<tr>
<tdcolspan="2"><b>CONSTANT</b></td></tr>
</table>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#af11a2c6ab18ae29318541b6f8dd19feb"title="The account model to be used to display account devices. ">DataSyncViewModel::accountModel</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00039">39</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
<p>A styles string describing the current sync status. </p>
<p><b>Default:</b><code>Disconnected</code><br/>
</p>
<p>A localized string to display the sync state as a single, simple string. The string is styled with different colors based of the <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a84c4d0f104f35fcc80b3c06fd0745e0e"title="A mapping of sync states to text colors. ">DataSyncViewModel::colorMap</a> property.</p>
<tableclass="doxtable">
<tr>
<thcolspan="2">Accessors </th></tr>
<tr>
<td><b>READ</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6bc8f7add23baf8be55aa76c3805fa70"title="A styles string describing the current sync status. ">statusString()</a></td></tr>
<tr>
<td><b>NOTIFY</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a2e843bc02e4433f4989601a0760e2125"title="NOTIFY accessor for DataSyncViewModel::statusString. ">statusStringChanged()</a></td></tr>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a84c4d0f104f35fcc80b3c06fd0745e0e"title="A mapping of sync states to text colors. ">DataSyncViewModel::colorMap</a>, <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtdatasync/qtdatasync.tags:https://skycoder42.github.io/QtDataSync/"href="https://skycoder42.github.io/QtDataSync/class_qt_data_sync_1_1_sync_manager.html#acd0bbb8fa0d3f4d660fbf2a31daebb31">QtDataSync::SyncManager::syncState</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00034">34</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
<p>The sync manager the viewmodel operates on. </p>
<p><b>Default:</b><code>nullptr</code> (Is initialized by <aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a820d813143b769c98daa8abc3d13c408"title="Called by the presenter to initialize the viewmodel. ">onInit()</a>) <br/>
</p>
<p>A reference to the sync manager the view model internally uses. Is owned by the viewmodel, but can be used to get properties for the ui.</p>
<tableclass="doxtable">
<tr>
<thcolspan="2">Accessors </th></tr>
<tr>
<td><b>READ</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a33cb397273b0ec974e8029db1969bdad"title="The sync manager the viewmodel operates on. ">syncManager()</a></td></tr>
<tr>
<td><b>NOTIFY</b></td><td><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#ab05dfbc9bb1fefe565af07eb0a601c92"title="NOTIFY accessor for DataSyncViewModel::syncManager. ">syncManagerChanged()</a></td></tr>
</table>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_data_sync_view_model.html#a6e8bcb66483cb605afa00cf16343d628"title="The account manager the viewmodel operates on. ">DataSyncViewModel::accountManager</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="datasyncviewmodel_8h_source.html#l00027">27</a> of file <aclass="el"href="datasyncviewmodel_8h_source.html">datasyncviewmodel.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>