<table><tr><td style="">volkov created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />volkov 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/D24245">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Introduce UnixFileDescriptor class, which holds a copy of a file<br />
descriptor. Actually it's a wrapper around QDBusUnixFileDescriptor.</p>
<p>Currently arguments to/from a helper are passed as QVariantMap,<br />
encoded as QByteArray. To support passing of file descriptors,<br />
separate them into their own QVariantMap, and pass arguments as<br />
QVariantList consisting of the QByteArray blob of data arguments<br />
and the file descriptors map (HelperProxy::{un}packedArguments()).</p>
<p>Remove operator<<(QDataStream &, const ActionReply &) and<br />
operator>>(QDataStream &, ActionReply &) as they don't make<br />
sense with file descriptors and used only internally in<br />
ActionReply::serialized() and ActionReply::deserialize()<br />
methods. Modify these methods to work with QVariantList<br />
instead of QByteArray blobs.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R283 KAuth</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24245">https://phabricator.kde.org/D24245</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/CMakeLists.txt<br />
src/CMakeLists.txt<br />
src/HelperProxy.cpp<br />
src/HelperProxy.h<br />
src/backends/dbus/DBusHelperProxy.cpp<br />
src/backends/dbus/DBusHelperProxy.h<br />
src/backends/dbus/org.kde.kf5auth.xml<br />
src/backends/fakehelper/FakeHelperProxy.cpp<br />
src/backends/fakehelper/FakeHelperProxy.h<br />
src/kauth.h<br />
src/kauthactionreply.cpp<br />
src/kauthactionreply.h<br />
src/kauthunixfiledescriptor.cpp<br />
src/kauthunixfiledescriptor.h</div></div></div><br /><div><strong>To: </strong>volkov<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>