|
OmniStacksStaticModules 2.0.0
|
Namespaces | |
| namespace | anonymous_namespace{ReminderSync.cppm} |
Classes | |
| struct | TaskReminder |
| 与外部应用同步所需的最小任务快照。 More... | |
| struct | SyncOptions |
| 外部应用同步选项。 More... | |
| struct | SyncResult |
| 同步结果;每个后端独立报告成败,便于 CLI 精确展示。 More... | |
Enumerations | |
| enum class | Provider { reminders , omnifocus , both } |
| 提醒事项提供方;both 表示两个目标都执行。 More... | |
| enum class | SyncError { invalid_task_id , due_date_required , invalid_due_date , osascript_unavailable , reminders_failed , omnifocus_failed , process_failure } |
| 可恢复同步错误分类。 More... | |
Functions | |
| std::expected< SyncResult, SyncError > | sync_task (const TaskReminder &task, Provider provider, const SyncOptions &options={}) |
| 将一个任务同步到指定外部应用。 | |
| std::string | build_reminders_script () |
| 返回可在 osacompile 中独立编译的 Reminders AppleScript 源。 | |
| std::string | build_omnifocus_script () |
| 返回可在 osacompile 中独立编译的 OmniFocus AppleScript 源。 | |
| std::string | provider_name (Provider provider) noexcept |
| Provider 到 CLI/日志稳定名称。 | |
| std::string_view | sync_error_message (SyncError error) noexcept |
| SyncError 到稳定可读文本。 | |
|
exportstrong |
提醒事项提供方;both 表示两个目标都执行。
| Enumerator | |
|---|---|
| reminders | Apple Reminders。 |
| omnifocus | OmniFocus。 |
| both | Reminders + OmniFocus。 |
Definition at line 43 of file ReminderSync.cppm.
|
exportstrong |
可恢复同步错误分类。
Definition at line 75 of file ReminderSync.cppm.
|
export |
返回可在 osacompile 中独立编译的 OmniFocus AppleScript 源。
Definition at line 274 of file ReminderSync.cppm.
|
export |
返回可在 osacompile 中独立编译的 Reminders AppleScript 源。
Definition at line 269 of file ReminderSync.cppm.
|
exportnoexcept |
Provider 到 CLI/日志稳定名称。
Definition at line 358 of file ReminderSync.cppm.
|
exportnoexcept |
SyncError 到稳定可读文本。
Definition at line 371 of file ReminderSync.cppm.
|
export |
将一个任务同步到指定外部应用。
| task | 任务快照。 |
| provider | Reminders、OmniFocus 或 both。 |
| options | dry-run、列表名等配置。 |
Definition at line 279 of file ReminderSync.cppm.