<table><tr><td style="">sitter created this revision.<br />sitter added reviewers: dfaure, feverfew.<br />Herald added projects: Dolphin, Frameworks.<br />Herald added subscribers: kfm-devel, kde-frameworks-devel.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27153">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>the Result system was originally introduced to the FTP slave and now also<br />
makes an appearance in the SFTP slave. the system introduces a separation<br />
between logic and fronting API class to more tightly control when state<br />
changing calls (finished()/error()) are made. since these calls may only<br />
be made once during a given command multiple calls are at the very least<br />
indicative of bad code and at worst cause severe state confusion for the<br />
slavebase that it won't be able to recover from, rendering the slave<br />
instance broken.</p>

<p>in the internal class Results are returned whenever an error can appear and<br />
these Results must be handled in some form. the only way to effectively<br />
produce user visible errors is to forward results up the call chain.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">connect</li>
<li class="remarkup-list-item">copy remotely</li>
<li class="remarkup-list-item">overwrite remotely</li>
<li class="remarkup-list-item">copy to local</li>
<li class="remarkup-list-item">overwrite to local</li>
<li class="remarkup-list-item">copy from local to remote</li>
<li class="remarkup-list-item">copy form local to remote and overwrite</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>BRANCH</strong><div><div>sftp-errors</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27153">https://phabricator.kde.org/D27153</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>sftp/kio_sftp.cpp<br />
sftp/kio_sftp.h</div></div></div><br /><div><strong>To: </strong>sitter, dfaure, feverfew<br /><strong>Cc: </strong>kde-frameworks-devel, kfm-devel, pberestov, iasensio, fprice, LeGast00n, MrPepe, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov<br /></div>