초기 커밋: Phase 1 — 레지스트리 기반 컨텍스트 메뉴 + 핵심 변환 파이프라인
- Provider 추상화(IConverterProvider + ProviderCapability) — Available/RequiresExternal/ComingSoon 1급 시민 - 변환 구현: Magick(이미지·RAW·GIF·TIFF), HEIC/HEIF(libheif decode→Magick encode), PDF(PDFium), DOCX(Word COM 또는 LibreOffice 자동 감지) - ComingSoon 스텁: HTML, HWP/HWPX (UI 노출, 컨텍스트 메뉴 등록 자동 제외) - WPF + WPF-UI 4.3 Fluent 2 UI: 메인 창(드래그&드롭, Provider 카드), 변환 창(썸네일·옵션·진행률), 빠른 변환 진행 창, 진단 창 - 단일 EXE에 verb 라우팅: quick / dialog / register / unregister / diagnose / help - HKCU SystemFileAssociations 기반 컨텍스트 메뉴 등록 (Win11 "추가 옵션 표시"에 노출) - README, packaging/ Phase 2 placeholder 포함 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
8fa4a613d7
37 changed files with 2727 additions and 0 deletions
25
src/EverythingToJpeg.Core/ConvertResult.cs
Normal file
25
src/EverythingToJpeg.Core/ConvertResult.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
namespace EverythingToJpeg.Core;
|
||||
|
||||
public enum ConvertStatus
|
||||
{
|
||||
Success,
|
||||
Skipped,
|
||||
Failed
|
||||
}
|
||||
|
||||
public sealed record ConvertResult(
|
||||
string SourcePath,
|
||||
IReadOnlyList<string> OutputPaths,
|
||||
ConvertStatus Status,
|
||||
string? Message = null,
|
||||
Exception? Error = null)
|
||||
{
|
||||
public static ConvertResult Ok(string source, IReadOnlyList<string> outputs)
|
||||
=> new(source, outputs, ConvertStatus.Success);
|
||||
|
||||
public static ConvertResult Fail(string source, string message, Exception? ex = null)
|
||||
=> new(source, Array.Empty<string>(), ConvertStatus.Failed, message, ex);
|
||||
|
||||
public static ConvertResult Skip(string source, string message)
|
||||
=> new(source, Array.Empty<string>(), ConvertStatus.Skipped, message);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue