Review Request: Clean up rtm headers and move private data from Auth and Request classes into private classes. Also move webview from rtm library into plasma applet.
Andrew Stromme
astromme at chatonka.com
Thu Aug 2 18:27:50 UTC 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105734/#review16799
-----------------------------------------------------------
This looks like a straightforward port of the login authorization from librtm to the applet, and I agree with the design choices and new locations.
libs/rtm/auth.cpp
<http://git.reviewboard.kde.org/r/105734/#comment13091>
The frob could be empty for two reasons:
1. It wasn't requested
2. There was some error in the request
Because you call getAuthUrl() when the frob comes in I don't think it will ever be the situation that the frob is on its way but isn't there yet. I think in the case when there is no frob it might be best to return a Null QString() to indicate the error condition.
applets/rememberthemilk/rememberthemilk-plasmoid.cpp
<http://git.reviewboard.kde.org/r/105734/#comment13092>
I think there might be some faulty logic with regards to the busy spinner (and it very well might have been my fault). I notice that when I start the widget (unauthenticated) and authenticate for the first time the "Apply" button becomes active after the authentication is successful. If I press Ok or Apply the busy spinner starts and never stops (presumably because we are trying to re-auth and the first tasks never refresh because they're already there). However, if I press cancel everything works fine (because it didn't try and re-authenticate with the saved key). You might want to explore this a bit.
- Andrew Stromme
On Aug. 1, 2012, 2:45 p.m., Jeremy Paul Whiting wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105734/
> -----------------------------------------------------------
>
> (Updated Aug. 1, 2012, 2:45 p.m.)
>
>
> Review request for Plasma and Andrew Stromme.
>
>
> Description
> -------
>
> rtm: Move Request private data into RequestPrivate class in .cpp file. rtm: Move Auth private data into AuthPrivate class in .cpp file. rtm: Clean up auth.h and request.h files.
>
>
> rtm: Clean up rtm header files.
>
>
> Add #include <rtm/task.h> since we use Task * (and session.h has been cleaned up).
>
>
> Diffs
> -----
>
> applets/rememberthemilk/CMakeLists.txt 18424ead610b78710fa896a4ea3986fcd7e2f364
> applets/rememberthemilk/authenticate.ui cf7b9330d6d8f834225878f24eeb9be90651dbef
> applets/rememberthemilk/rememberthemilk-plasmoid.h cf02fbad4ab3e46d051d26b2de55c2ff01fb00b8
> applets/rememberthemilk/rememberthemilk-plasmoid.cpp 3413e59c69c079480efb2ba37e63927ad45df56e
> dataengines/rememberthemilk/authservice.h 31f44284422ea4ffdcc7631b5b321a1785480cdb
> dataengines/rememberthemilk/authservice.cpp c75e6cb6414920871358982aa226b3cbab1ca02f
> dataengines/rememberthemilk/rtmauth.operations 155a8ae6bdfde4d4fa1056ba0cc750ea6b9214e1
> dataengines/rememberthemilk/taskservice.cpp d738093ffd7c5183cf24f9f932d0c7f934b6634b
> libs/rtm/CMakeLists.txt 58ab4939812bbce07068a6da8c1a1194f6377595
> libs/rtm/auth.h 5f693fa53fc273e2a3782ac57e8c1ca3f8b194a1
> libs/rtm/auth.cpp 16fd5f0c28004dcc12140556e8d6727c483c2ed9
> libs/rtm/note.h af4cfd20c6ddaf1a4943f76f148c79918b5ec633
> libs/rtm/request.h d371714c144bf9bc6c7304a861840334f0846cdb
> libs/rtm/request.cpp 1304cb5d1a547d08b7f82e44cd319097991c8425
> libs/rtm/rtm.h 1a542f6007c63df13b79dd60da0cfcfe294f8e16
> libs/rtm/session.h aad145c44c70fb28fe1496b93d991667e918f630
> libs/rtm/session.cpp 051838f58c8f7a6b6aea9511f1d455197fafb08b
> libs/rtm/xmlreaders.h b9ea78ca567e32aceb70361a2735b7b005d15777
>
> Diff: http://git.reviewboard.kde.org/r/105734/diff/
>
>
> Testing
> -------
>
> It builds and runs ok here (the rtm applet logs in and loads data ok).
>
>
> Thanks,
>
> Jeremy Paul Whiting
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120802/1b93e359/attachment-0001.html>
More information about the Plasma-devel
mailing list