File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
lib/src/main/kotlin/at/bitfire/synctools/storage/calendar Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * This file is part of bitfireAT/synctools which is released under GPLv3.
3+ * Copyright © All Contributors. See the LICENSE and AUTHOR files in the root directory for details.
4+ * SPDX-License-Identifier: GPL-3.0-or-later
5+ */
6+
7+ package at.bitfire.synctools.storage.calendar
8+
9+ /* *
10+ * Provides associated-event functionality for an [AndroidCalendar].
11+ */
12+ class AndroidEventStore (
13+ private val calendar : AndroidCalendar
14+ ) {
15+
16+ // AssociatedRows CRUD
17+
18+ fun add (events : AssociatedRows ) {
19+ // insert main event → id
20+ // insert exceptions with backref original_id
21+ TODO ()
22+ }
23+
24+ fun findDirty (): List <AssociatedRows > {
25+ TODO ()
26+ }
27+
28+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * This file is part of bitfireAT/synctools which is released under GPLv3.
3+ * Copyright © All Contributors. See the LICENSE and AUTHOR files in the root directory for details.
4+ * SPDX-License-Identifier: GPL-3.0-or-later
5+ */
6+
7+ package at.bitfire.synctools.storage.calendar
8+
9+ import android.content.Entity
10+
11+ /* *
12+ * Base class for data classes that contains
13+ *
14+ * - a potentially recurring calendar object (event/task) and
15+ * - possible exceptions to it.
16+ */
17+ data class AssociatedRows (
18+ val main : Entity ,
19+ val exceptions : List <Entity >
20+ )
You can’t perform that action at this time.
0 commit comments