[Kde-pim] Re: Review Request: Include collections wich are watched in the ChangeRecorder in the EntityTreeModel
Stephen Kelly
steveire at gmail.com
Mon Jan 17 12:49:55 GMT 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/6330/#review9642
-----------------------------------------------------------
Hi,
I committed a variation of the call to fetchItems.
As for the rest, I'm sure it wouldn't work in a lazily populated model, and I don't think it would react well to changes reported by the monitor.
See for example fillModel which assumes there is only either zero or one collection monitored. I implemented it that way for simplicity. I'm not against changing it, but it will take a more complex patch than this.
Thanks,
Steve.
- Stephen
On Jan. 13, 2011, 11:42 p.m., Christian Mollekopf wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/6330/
> -----------------------------------------------------------
>
> (Updated Jan. 13, 2011, 11:42 p.m.)
>
>
> Review request for KDE PIM and Stephen Kelly.
>
>
> Summary
> -------
>
> With this patch, the model includes also collections which are monitored in the monitor with ChangeRecorder::setCollectionMonitored() the same way it includes also watched resources.
>
> Since I don't fully understand the whole code I just stuck to how the resource monitoring is implemented.
>
> I had to add the fetching of the items in EntityTreeModelPrivate::topLevelCollectionsFetched(), otherwise only the items in subcollections would have been fetched.
> Since this should also have been a problem when watching resources, I reckon this was a bug.
>
>
> Diffs
> -----
>
> /trunk/KDE/kdepimlibs/akonadi/entitytreemodel_p.cpp 1213742
>
> Diff: http://svn.reviewboard.kde.org/r/6330/diff
>
>
> Testing
> -------
>
> I'm using it in my own app, where I populate the model with items from a Akonotes resource collection and a Kcal resource collection.
> It works, and I couldn't find any sideffects.
>
>
> Thanks,
>
> Christian
>
>
_______________________________________________
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