- 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>
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
#nullable enable
|
|
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);
|
|
void Save(AppData data);
|
|
string DataFilePath { get; }
|
|
string DataDirectory { get; }
|
|
void SwitchTo(string dataDirectory);
|
|
void StartWatching(Action onExternalChange);
|
|
void StopWatching();
|
|
}
|
|
|
|
public interface INotificationService
|
|
{
|
|
void ShowNotification(string title, string message);
|
|
/// <summary>Reminder with snooze/done buttons for one task.</summary>
|
|
void ShowReminder(string title, string message, string taskId, bool isLead);
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|