Plan document share decisions in app core

This commit is contained in:
2026-06-02 23:53:09 +02:00
parent cc3490d9d8
commit 777723b68c
10 changed files with 148 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
#pragma once
#include <string_view>
namespace pp::app {
enum class DocumentShareAction {
show_save_required_warning,
share_now,
};
[[nodiscard]] constexpr DocumentShareAction plan_document_share(std::string_view path) noexcept
{
return path.empty()
? DocumentShareAction::show_save_required_warning
: DocumentShareAction::share_now;
}
}