Question regarding KDE PIM resource development
Shashwat Jolly
shashwat.jolly at gmail.com
Mon Aug 17 06:27:46 BST 2020
Hi,
I have another question, adding to the above list:
The new resource has a root collection that is not virtual, and has a
mimeType `Akonadi::Collection:mimeType()`.
The "Update Calendar" option shows up on right clicking the root
collection in KOrganizer, which works well and updates the entire
resource - calls retrieveCollections() and retrieveItems() for each
collection.
However, the "Update Address Book Folder" option on the same root
collection of the resource is grayed out in KAddressBook. Why is this
behaviour different in KAddressBook and KOrganizer for the same root
collection? I want a similar behaviour for KAddressBook, where the
user can update the entire resource by clicking "Update Address Book
Folder". How could I do that?
Thanks,
Shashwat Jolly
IRC: sjolly on Freenode
www.thejollyblog.tech
On Sun, Aug 16, 2020 at 11:07 PM Shashwat Jolly
<shashwat.jolly at gmail.com> wrote:
>
> Hey everyone!
>
> I have been developing a new resource for natively integrating EteSync
> into KDE PIM. I was mostly focused on feature implementation till now,
> but testing has revealed some shortcomings in the resource. As I am
> quite new to PIM, Akonadi, and KDE in general, I had some questions,
> listed below:
>
> 1. Does KAddressBook let you add new address books to an existing account?
> For me, both, my resource and the Google resource fail to create new
> address books, and give me a "Duplicate Entry" error from the database
> (Error log - see [0]). Not sure what's wrong.
>
> 2. Adding todos to calendars seems possible in KOrganizer
> When adding a new todo, it offers a list of all the calendars and task
> lists available - it should ideally only show tasks lists, right?
> Again, this is the same case for my resource and the existing Google
> resource.
>
> 3. If something in the itemAdded(), collectionAdded() (and similar
> signals) fails, can we remove the event or collection from showing up?
> Right now, if it fails, the item or collection stays visible there.
>
> You can see the code for the new resource here:
> https://invent.kde.org/sjolly/kdepim-runtime/-/tree/etesyncResource/resources/etesync
>
> [0] https://pastebin.com/0TeWueUm
>
> Thanks,
> Shashwat Jolly
> IRC: sjolly on Freenode
> www.thejollyblog.tech
More information about the kde-pim
mailing list