New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distinguish Other type in AlarmObject #2
Conversation
|
Not sure I follow, is this some sort of alternative clock alarm? What's consuming the new value? On the type API it feels a bit strange now, not sure how to interpret such a new thing. Not documented either on the type property. |
|
Yes, I have alternative implementations here: It seems the key=type is not used for most of event types in nemo-qml-plugin-alarms. I tried to propose minimal change in order to not affect your cases. |
|
If this is an alternative alarm ui, why can't it just use the clock type too? |
|
Because the Clock is returned for all other cases: I can update the code to distinguish Clock type properly, such as |
|
The detection of clock vs other sounds already more sensible. But still I'm a bit puzzled by the need. On Sailfish side the existing api and behavior is already enough for jolla-clock and jolla-alarm-ui for creating and showing alarms. |
|
With current implementation it is possible to distinguish Reminder, Calendar, Countdown, and Clock events, but not other types of events. I am still not sure from where the WakeUp event comes from. Maybe is covered by act.dead service? |
|
Ah, ok. I thought this was just some other name for a clock alarm. But suppose if the source isn't even known there's no need to actually detect the wakeup event type but more like avoiding them to be detected as something else. If so, the "Other" type in the api should be indeed better. Then again wondering how the 'other' type of events get into the alarm model. For what I can tell alarmsbackendmodel_p.cpp / AlarmsBackendModelPriv::populate() only fetches events created by nemoalarms and the example should not be included? |
|
The last question still applies. With the name app name filtering, I'm still not following how there could be Timed events that fall into "Other". |
|
No activity, and by the last comments I don't understand what's the whole scenario. |
|
Thanks for feedback. I need yet more time to describe the use case clear. Currently, I am using fork, so it isn't show stopper for me ;-) Eventually, I will open new request. |
I have some Type=wakeup cookies in timed. I would like to distinguish when showing alarm