harbour-tasklist icon indicating copy to clipboard operation
harbour-tasklist copied to clipboard

Sync with Caldav tasklist not possible

Open cintema opened this issue 11 years ago • 16 comments

Unfortunately, your app is missing the feature to sync tasks to OX caldav tasklists. It would be amazing if you could add this function. SailfishOS allows to add Caldav shares which works fine with calendar - however, task are not displayed. Maybe it is possible to integrate your app with the SailfishOS sync framework? Would be amazing!

cintema avatar Jun 18 '14 13:06 cintema

Hi and thanks for your request.

I already saw the harbour comments which requested CalDAV support. I'm sorry I didn't respond on the questions.

Since some days I'm doing some research on the CalDAV possibilities I have with the current Qt/QML possibilities of SailfishOS. I'm also trying to get some experience with CalDAV itself, because I never used it before.

At the moment I'm evaluating how and what exactly has to be implemented. :-)

Armadill0 avatar Jun 18 '14 13:06 Armadill0

That's amazing, thanks a lot!!

cintema avatar Jun 18 '14 14:06 cintema

I've just asked the Jolla devs when to expect access to calendars for harbour apps. They can't give us a timeline (because there is much work to do and already in progress, but it has several side effects which have to be solved), so I don't expect this before the end of the year, maybe next year.

But as this component is the best way to implement CalDAV support for TaskList, this feature won't release before this libraries are available. Otherwise I had to implement my own CalDAV parsing code (including CalDAV account management), which is not the right way.

So I added this feature to the roadmap of version 2.0 of TaskList.

Armadill0 avatar Jun 23 '14 07:06 Armadill0

Thanks for the feedback! Have you ever thought of implementing experimental support? It is possible to add caldav tasklists calendar as caldav account (even though syncing these does not seem to have any effect). Journalctl gives me: Jun 23 11:23:24 Jolla lipstick[960]: AccountSyncAdapter.qml: Account 33 from onlinesync isn't syncable.

In the corresponding qml-file it says: (...) if (providerName == "activesync") { asdaemon.typedCall("sync", [{"type":"t", "value":accountId}]) } else { console.log("AccountSyncAdapter.qml: Account " + accountId + " from " + providerName + " isn't syncable.")

Probably easy to patch this to accept tasklists. However, I can't find anything about /usr/bin/as-daemon. It is invoked by /usr/share/dbus-1/services/com.nokia.asdbus.service. Maybe as-daemon accepts xml-tasklist already but Jolla just didn't implement the framework for the frontend yet? Maybe worth a try... (and probably something for Openrepos rather than Harbour IF it could be worked out:)).

cintema avatar Jun 23 '14 09:06 cintema

Yes I already thought about an experimental branch, but there was no time and moreover no reason to create one.

I hope I have some time at the weekend to do some testing with the current QtOrganizer lib.

Some thoughts which I actually want to keep in mind: The plan is to lookup for available caldav accounts in the app and set this for each caldav list you want to have. each task on the list will be synchronized with the list name as category.

I only have an Owncloud instance (where the tasks are sorted by categories) running and no experience with other CalDAV servers. I hope they all work and show the information in the same or similar manner. A problem could be that a task in CalDAV can exists in two different categories, but with only one object. This currently works different in TaskList and could cause problems when the task will be deleted. In this case a check if there is more than one category set is needed. If yes, only the category has to be removed

Armadill0 avatar Jun 23 '14 11:06 Armadill0

I have a caldav tasklist at mailbox.org which is a hosted OpenXchange server. Please let me know if I can test anything for you!

EDIT: I guess your plan to simply list system-configured caldav-accounts and offer somewhat a list of which account to choose for tasks is quite straight forward and the way to go! Thanks a lot,

Chris

cintema avatar Jun 23 '14 11:06 cintema

Sorry for dumb question, but will this feature give us support ex. for shared shoppinglist in Google Calendar? I suppose it does, but just wanted to make sure is owncloud the way to go or something...

huuhaa avatar Oct 06 '14 06:10 huuhaa

Well, as there's currently no official API to talk to any of the accounts which are configured for Jolla at the moment, this is a difficult question.

We'll have to wait for Jolla to release an API so we can use the configured accounts. After that we can see what and how it will be implemented.

Armadill0 avatar Oct 06 '14 08:10 Armadill0

So it will also take a while? :cry:

Anyway, I could test the caldav support for fruux tasks :wink:

JaKonator avatar Feb 25 '15 11:02 JaKonator

I hope we'll see some advantages with SailfishOS 2.0 coming with the tablet. But as there's no public roadmap I can't promise anything.

Armadill0 avatar Feb 25 '15 14:02 Armadill0

Unfortunately there's still no annoucement from Jolla when there will be any API for Sailfish services.

I found a point on the Sailfish Dev-Roadmap (https://sailfishos.org/developmentroadmap/): "Define Sailfish UI extension architecture to allow 3rd party to access the platform’s UI modules and extend the OS through the specified integration points" But there is no progress on this point.

So I'll move this issue to the 3.0 milestone, as 2.0 is already overdue many months.

Armadill0 avatar May 28 '15 07:05 Armadill0

Would another option be to include own CalDAV support, eventually using a third party lib?

Of course it is nice to rely on a central system configuration option under account settings and use OS means for syncing but on the other hand, if such a great feature (IMHO) just doesn't come it is really a majore bummer (for me ;-) ).

rednaxela-work avatar May 28 '15 08:05 rednaxela-work

Yes, I think it is. The centralized version is the "premium" version, but I don't think it will be possible in the next months.

Armadill0 avatar May 28 '15 09:05 Armadill0

Hey, just came across: https://www.producteev.com/developers

As an alternative, or until caldav-support arrives, you might consider including the Producteev API in the meantime... Regards,

Chris

cintema avatar Jun 21 '15 06:06 cintema

Some months ago I found a caldav lib implementation: https://cypax.net/projects/iCalendar/

Maybe it can help to integrate CalDAV support anytime soon™. :wink:

Armadill0 avatar Mar 27 '18 08:03 Armadill0

That would be fantastic!

borghal avatar Mar 27 '18 23:03 borghal