Review Request 126722: notifications: also sync icon-data from notfication hints

Aleix Pol Gonzalez aleixpol at kde.org
Wed Jan 13 00:27:26 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126722/#review90983
-----------------------------------------------------------



plugins/notifications/notificationslistener.cpp (line 99)
<https://git.reviewboard.kde.org/r/126722/#comment62148>

    use `argument.canConvert<QDBusArgument>()`



plugins/notifications/notificationslistener.cpp (line 115)
<https://git.reviewboard.kde.org/r/126722/#comment62147>

    Couldn't this guy just return the QImage?



plugins/notifications/notificationslistener.cpp (line 119)
<https://git.reviewboard.kde.org/r/126722/#comment62149>

    Isn't 8 a bit random here?



plugins/notifications/notificationslistener.cpp (line 227)
<https://git.reviewboard.kde.org/r/126722/#comment62150>

    Why don't you use `QScopedPointer<QIODevice>` everywhere?
    
    Construction is cheap and right now it's hard to tell how are the QBuffers deleted.


- Aleix Pol Gonzalez


On Jan. 12, 2016, 7:18 p.m., Holger Kaelberer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126722/
> -----------------------------------------------------------
> 
> (Updated Jan. 12, 2016, 7:18 p.m.)
> 
> 
> Review request for kdeconnect.
> 
> 
> Repository: kdeconnect-kde
> 
> 
> Description
> -------
> 
> - follows the priorities defined in the notifications spec version 1.2
> - seems that payload can only be attached via QIODevices/files, therefore needed to create a temp file from the in-memory image data first; if there is another way - teach me pls!
> - QDBusArgument-s can't be faked for testing without a real DBUS-call because they can be created either only for reading or for writing. Therefore added the virtual parseImageData function to use another datatype in the unit-tests
> 
> 
> Diffs
> -----
> 
>   plugins/notifications/notificationslistener.h dfa37b8 
>   plugins/notifications/notificationslistener.cpp d21f3d7 
>   tests/testnotificationlistener.cpp b43a7d3 
> 
> Diff: https://git.reviewboard.kde.org/r/126722/diff/
> 
> 
> Testing
> -------
> 
> sure
> 
> 
> Thanks,
> 
> Holger Kaelberer
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdeconnect/attachments/20160113/abe57599/attachment.html>


More information about the KDEConnect mailing list