D16469: Make NetworkPacket Metatype-capable

Aleix Pol Gonzalez noreply at phabricator.kde.org
Sun Oct 28 23:50:41 GMT 2018


apol added a comment.


  The patch looks good to me, provided a reason. :)

INLINE COMMENTS

> sredman wrote in networkpacket.h:52
> In order to work with Q_DECLARE_METATYPE, the class needs a default constructor. I agree with you, though. This is one of the things I least like about this change, since in a lot of cases when using with the metatype system you will use the default constructor, and such a NetworkPacket makes no sense!

Why do you want this? To be able to access them from QML? DBus?
If it's from QML, you'd be able to make it uncreatable, so this wouldn't be necessary.

REPOSITORY
  R224 KDE Connect

REVISION DETAIL
  https://phabricator.kde.org/D16469

To: sredman, #kde_connect
Cc: albertvaka, apol, nicolasfella, kdeconnect, skymoore, wistak, dvalencia, rmenezes, julioc, Leptopoda, timothyc, jdvr, yannux, Danial0_0, johnq, Pitel, adeen-s, SemperPeritus, daniel.z.tg, jeanv, seebauer, bugzy, MayeulC, menasshock, tctara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20181028/fce6d62c/attachment.html>


More information about the KDEConnect mailing list