Notices


Reply
Thread Tools
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#371
So you're replacing the mkCal? I looked at the nemo plugin when I found that the disabled calendars weren't recorded anywhere else, but as it looked like it had to be submoduled I didn't pursue it further.

Can you dismiss reminders through that then? I assumed that would be a dbus call.
 
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#372
No, plugin's dbus service covers only async data fetch, to manage events you still need to submit changes to the storage either via mkCal or NemoCal api.
 
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#373
So what's the advantage of switching to the nemo plugin? It looks like it brings in a lot of code, or is there a package we can depend on now?
 
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#374
Another way to wrokaround that is to bolck/filter system generated reminders and instead pool in timeline-pin generated reminders which will be perfectly managed by timeline engine internally. They still will be synchronized to calendar - so changes will come up sonner or later to rockpool's timeline, but otherwise they will be independent from system notifications.

I think this should be cleaner solution, even if not that realtime as direct cal bindings.
The benefit is a) automatically picking up disabled calendars, b) fetch calendar events over dbus (no permissions required)
 

The Following User Says Thank You to ruff For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#375
I thought the nemo plugin still used the mkcal stuff internally, and so still needed the permissions. I'll have to have a look it again. I agree it's more the proper way to do it, especially if Sailfish changes its calendar backend as they were hinting at for the future. Of course by then the QtOrganizer stuff should work, which would be best of all.
 
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#376
so yes, the plugin itself still sits directly on the storage and hence to submit changes you still need the permissions (to manage reminders for snooze/dismiss).
But the plugin also provides light dbus service which allows you to read all calendar events over DBus async-ly:
fire id=org.nemomobile.calendardataservice.getEvents s:start s:end
and then be ready to catch consequent signals
org.nemomobile.calendardataservice.getEventsResult s:id a(sssssbssss):events

but now as i look at it... the event does not have reminders bundled into it. so we wouldn't be able to block system and use internal we then still need permissions - either to fetch full event struct with reminders - or to submit changes to cal storage.
 

The Following 2 Users Say Thank You to ruff For This Useful Post:
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#377
Ok, phase2 target is achieved - I can send canned message back from watches and handle it in the platform integration layer. As a side effect - persistence on a very high level is also implemented.

Now, does anyone know a proper way to send messages? IM and SMS? I hate to use ofono and/or telepathy channels directly, there must be some more appropriate way. Or am I too optimistic re jolla's architecture?
 

The Following 3 Users Say Thank You to ruff For This Useful Post:
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#378
Ofono was the only way I could find to send SMSes. I hadn't found any way of sending IMs yet.
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#379
Here we go again

https://www.kickstarter.com/projects...y-new-3g-ultra
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Posts: 207 | Thanked: 482 times | Joined on Mar 2016
#380
stockpiled quite a big bunch of commits, probably a good time to merge. Posted a beta rpm.
Atm - no (visible) new functionality - except everything timeline related is moved to timeline engine - notifications and calendar.
As a side effect - some colors are changed, some new actions are added, devcon supports pin-insert, there's dbus call to insert the timeline pin, notifications are pooled and re-delivered on connection...
Don't be confused by Canned Response action - it's part of notifcation now however platform part is not yet implemented, so it does nothing except notifying platform part to do the reply.
Next steps - platform part and websync.
 

The Following 6 Users Say Thank You to ruff For This Useful Post:
Reply

Tags
pebble, smartwatch

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:02.