Question regarding KDE PIM resource development

Shashwat Jolly shashwat.jolly at gmail.com
Tue Aug 18 05:51:39 BST 2020


Hey Daniel,

Thanks a lot for the informative reply, and also for creating the
Phabricator tasks! :)


Shashwat Jolly
www.thejollyblog.tech

On Tue, Aug 18, 2020 at 12:37 AM Daniel Vrátil <dvratil at kde.org> wrote:
>
> On Monday, 17 August 2020 07:27:46 CEST Shashwat Jolly wrote:
> > 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()`.
>
> That should be the same for majority of resources.
>
> > 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?
>
> This is now an issue on your side, this is how KAddresbook and KOrganizer
> respectively are implemented. This should be fixed in KAB to have the same
> behavior as KOrganizer [0]
>
> /Dan
>
> [0] https://phabricator.kde.org/T13512
>
> >
> > 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/resour
> > > ces/etesync
> > >
> > > [0] https://pastebin.com/0TeWueUm
> > >
> > > Thanks,
> > > Shashwat Jolly
> > > IRC: sjolly on Freenode
> > > www.thejollyblog.tech
>
>
> --
> Daniel Vrátil
> www.dvratil.cz | dvratil at kde.org
> IRC: dvratil on Freenode (#kde, #kontact, #akonadi, #fedora-kde)
>
> GPG Key: 0x4D69557AECB13683
> Fingerprint: 0ABD FA55 A4E6 BEA9 9A83 EA97 4D69 557A ECB1 3683


More information about the kde-pim mailing list