[Kde-pim] Review Request 117812: Port from QJSON to QtCore JSON classes

Martin Klapetek martin.klapetek at gmail.com
Tue Sep 16 08:35:20 BST 2014



> On Sept. 15, 2014, 6:43 p.m., Kevin Krammer wrote:
> > akonadi-socialutils/src/serializer/akonadi_serializer_socialfeeditem.cpp, line 68
> > <https://git.reviewboard.kde.org/r/117812/diff/1/?file=268828#file268828line68>
> >
> >     @Milian: changing the API of SocialFeedItem would "encode" a specific serialization in the data types API, no?
> >     
> >     @Martin: it is still a JSON document, right with the same structure, no?
> 
> Milian Wolff wrote:
>     If this is public API, then don't change it. If it's internal API then you could change it as long as you ensure the serialization stays the same between all involved apps. I don't know anything about this codebase, just wanted to mention that the QJson <-> QVariant conversion is relatively costly. But maybe/probably you can ignore this here?!
> 
> Kevin Krammer wrote:
>     It is API in the feed item class, but I have no idea if or how it is used. Martin?

It's a data container used to store posts from social networks, so it's used by the facebook resource (plus there's also a resource for twitter and identica, somewhere in scratch repos). Then it's also used for retrieving and manipulating social posts in the clients (sadly currently there's none though).

I don't mind that change at all; the itemSourceMap is basically the raw JSON data retrieved from the server, imo maybe actually it would be better to keep it a QJsonObject.


- Martin


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


On Sept. 13, 2014, 2:38 p.m., Alexander Richardson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/117812/
> -----------------------------------------------------------
> 
> (Updated Sept. 13, 2014, 2:38 p.m.)
> 
> 
> Review request for KDEPIM-Libraries and Martin Klapetek.
> 
> 
> Repository: kdepimlibs
> 
> 
> Description
> -------
> 
> Port akonadi-socialutils from QJSON to QtCore JSON classes
> 
> 
> port away from Q_EXPORT_PLUGIN2
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt 7a775f8de4c078993809f42777b7eb8e324daca0 
>   akonadi-socialutils/CMakeLists.txt af0d37beaf649c26eba02117f2b13ddfa74dc81d 
>   akonadi-socialutils/cmake/FindQJSON.cmake 9701c81131895bfcae0937cef1dc440578729117 
>   akonadi-socialutils/src/CMakeLists.txt db34d23796418949f19a87cd3fe0cfe2d0e9d6e2 
>   akonadi-socialutils/src/serializer/akonadi_serializer_socialfeeditem.h ac292d39472be237a635355eaaaa1a663a4b8b17 
>   akonadi-socialutils/src/serializer/akonadi_serializer_socialfeeditem.cpp 4816afafbcb68b95023f061b265015b60b8073e2 
>   akonadi/src/core/searchquery.cpp 16c67687ebb682d144294f0c1f2a8dac6263e6fc 
>   akonadi/tests/CMakeLists.txt e2a4e2423c994b1e65fe89fc0a7f93c690688dee 
>   cmake/modules/CMakeLists.txt 2f5b8844c7fb1bb66ab5420b9fb3080f6c96c7a3 
>   cmake/modules/FindQJSON.cmake 9701c81131895bfcae0937cef1dc440578729117 
> 
> Diff: https://git.reviewboard.kde.org/r/117812/diff/
> 
> 
> Testing
> -------
> 
> compiles
> 
> 
> Thanks,
> 
> Alexander Richardson
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list