Snooze notifications, morning summary, ICS import, data folder sync
- Windows toast notifications with snooze (10 min / 1 h / tomorrow) and
done buttons; balloon fallback; works when Windows starts the app
- Recurring entries snooze via SnoozedUntil without moving their date;
lead reminders keep the real date
- Morning summary once a day from a chosen hour (pure DailySummary)
- iCalendar import incl. Google birthday calendar, folded lines, UTC,
alarms, own export round trip, duplicates skipped by UID, undo
- Data folder selectable (location.json pointer), file watcher reloads
changes from another PC (own writes ignored)
- Themed date picker calendar, WPF tray menu, arrow/Home/End/Space keys
- 90 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:37:20 +01:00
|
|
|
|
#nullable enable
|
2026-11-25 13:44:02 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using ReminderOrganizer.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ReminderOrganizer.Services
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IDataService
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<AppData> LoadAsync();
|
|
|
|
|
|
Task SaveAsync(AppData data);
|
2026-11-25 14:52:25 +01:00
|
|
|
|
void Save(AppData data);
|
2026-11-25 13:44:02 +01:00
|
|
|
|
string DataFilePath { get; }
|
Snooze notifications, morning summary, ICS import, data folder sync
- Windows toast notifications with snooze (10 min / 1 h / tomorrow) and
done buttons; balloon fallback; works when Windows starts the app
- Recurring entries snooze via SnoozedUntil without moving their date;
lead reminders keep the real date
- Morning summary once a day from a chosen hour (pure DailySummary)
- iCalendar import incl. Google birthday calendar, folded lines, UTC,
alarms, own export round trip, duplicates skipped by UID, undo
- Data folder selectable (location.json pointer), file watcher reloads
changes from another PC (own writes ignored)
- Themed date picker calendar, WPF tray menu, arrow/Home/End/Space keys
- 90 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:37:20 +01:00
|
|
|
|
string DataDirectory { get; }
|
|
|
|
|
|
void SwitchTo(string dataDirectory);
|
|
|
|
|
|
void StartWatching(Action onExternalChange);
|
|
|
|
|
|
void StopWatching();
|
2026-11-25 13:44:02 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public interface INotificationService
|
|
|
|
|
|
{
|
|
|
|
|
|
void ShowNotification(string title, string message);
|
Snooze notifications, morning summary, ICS import, data folder sync
- Windows toast notifications with snooze (10 min / 1 h / tomorrow) and
done buttons; balloon fallback; works when Windows starts the app
- Recurring entries snooze via SnoozedUntil without moving their date;
lead reminders keep the real date
- Morning summary once a day from a chosen hour (pure DailySummary)
- iCalendar import incl. Google birthday calendar, folded lines, UTC,
alarms, own export round trip, duplicates skipped by UID, undo
- Data folder selectable (location.json pointer), file watcher reloads
changes from another PC (own writes ignored)
- Themed date picker calendar, WPF tray menu, arrow/Home/End/Space keys
- 90 tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 20:37:20 +01:00
|
|
|
|
/// <summary>Reminder with snooze/done buttons for one task.</summary>
|
|
|
|
|
|
void ShowReminder(string title, string message, string taskId, bool isLead);
|
2026-11-25 13:44:02 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public interface ILocalizationService
|
|
|
|
|
|
{
|
|
|
|
|
|
string GetString(string key);
|
|
|
|
|
|
void SetLanguage(string languageCode);
|
|
|
|
|
|
string CurrentLanguage { get; }
|
|
|
|
|
|
event EventHandler? LanguageChanged;
|
|
|
|
|
|
event EventHandler? StringsChanged;
|
|
|
|
|
|
void Initialize(AppData appData);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public interface IAutostartService
|
|
|
|
|
|
{
|
|
|
|
|
|
bool IsAutostartEnabled { get; }
|
|
|
|
|
|
void ToggleAutostart();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|