Skip to content
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

[nemo-qml-plugin-calendar] Add a thisAndFuture attribute to EventModi… #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dcaliste
Copy link
Contributor

…fication objects.

This attribute is used for EventModification objects created to modify an occurrence. It is saved to the database and allow to apply modifications to a recurring event for all future occurrences of a given date.

@pvuorela, it requires sailfishos/mkcal#46 to be built.

@pvuorela
Copy link
Contributor

On a quick glance looks nice and simple, but maybe I'll not hit the merge button immediately as there's nothing to use this yet.

@dcaliste
Copy link
Contributor Author

Indeed, I still need to polish the UI part using it ; )

…fication objects.

This attribute is used for EventModification objects
created to modify an occurrence. It is saved to the
database and allow to apply modifications to a
recurring event for all future occurrences of a
given date.
…ture cases

In KCalendarCore::OccurrenceIterator, the exceptions are
find matching the recurrenceId with the generated
occurence start time from timesInInterval() called on
the parent, whatever the value of the current this
and future exception.

Moreover, ExtendedCalendar::dissociateSingleOccurrence()
is checking that recurrenceId is a valid recurring time
date for the parent and not the current this and future
exception. Which is consistent with KCalendarCore so far.

Thus, when calling the dissociation on an occurrence
coming from a this and future exception, apply a shift
due to the exception when creating the recurrenceId.
…this and future occurrences.

The event passed to deleteEvent() in case of an occurrence
later than an this and future exception is the exception.
Add a specific case to ensure that the propoer EXDATE is
added to the parent.
@dcaliste
Copy link
Contributor Author

I've added two commits on top adding support to delete occurrences later than a this and future exception or to modify them. It requires to add a shift to get the proper recurrenceId, suitable for the parent, from the startTime of the occurrence, due to possible change in dtStart with the this and future exception used as a base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants