feat(hosts): PrintHost-Basis nativ mit UTF-8-wxString-Shim (T11.1b) #185

Merged
xanibale merged 2 commits from feat/t11.1b-printhost into phase/11 2026-11-18 17:03:53 +01:00
Owner

Aufgabe: WORKPLAN T11.1b PrintHost-Basis nativ (Teil von T11.1, Variante B nach Tims Entscheidung 2026-11-18, ADR-0015). Dazu T11.1a und T15.21 auf [x].

Änderung

  • native/bridge/host_shim/: UTF-8-wxString/wxArrayString, leere wx-Header, Ersatz für slic3r/GUI/{I18N,format,GUI,GUI_App,BonjourDialog,MsgDialog}.hpp. Damit bauen PrintHost.hpp und OctoPrint.cpp (OctoPrint, PrusaLink, SL1Host, Prusa Connect alt), Duet, FlashAir, AstroBox, Repetier, MKS+TCPConsole, Moonraker unverändert ohne Patch (Objektbibliothek droidslice-printhost).
  • src/print_host.cpp: Kopie von upstream PrintHost.cpp (b028299c77, Änderungen mit „DroidSlice:“ markiert): Fabrik, Job-Queue meldet an das wx-freie Zustandsmodell GUI::PrintHostQueueDialog (print_host_queue.{hpp,cpp}, Logik aus PrintHostDialogs.cpp). prusaconnectnew → kein Host, TODO(parity) T11.5.
  • JNI print_host_jni.cpp + core PrintHost.kt (Info, Verbindungstest, Repetier-Gruppen/-Drucker, PrusaLink-Speicher) und PrintHostQueue.kt (jobs: StateFlow, enqueue, cancel; Handles, AutoCloseable, Exception-Mapping). PresetBundle.selectedPhysicalPrinterConfig() als Quelle wie Plater::send_gcode.
  • Doku: ADR-0015, host_shim/README.md, docs/upstream-notes/print-host.md (u. a. „Completed“ schon bei 100 % gesendet, Abbruch-Semantik).

Tests

  • PrintHostTest (neu, 5/5, mehrfach wiederholt) gegen einen OctoPrint-Nachbau im Testprozess: Fabrik je host_type, Verbindungstest ok/403, Upload mit Multipart-Prüfung und Löschen der Quelle, Host-Fehler 500, Abbruch eines laufenden und eines wartenden Jobs.
  • PhysicalPrintersTest 3/3 (Config des gewählten Druckers → Host), NetworkTest 3/3, tools/check.sh grün. Lokal auf emulator-5554 (tablet_api37).

Gerät prüfen: nichts Sichtbares (keine UI, die folgt mit T11.1c). Echter Drucker erst mit T11.2.

🤖 Generated with Claude Code

**Aufgabe:** WORKPLAN T11.1b PrintHost-Basis nativ (Teil von T11.1, Variante B nach Tims Entscheidung 2026-11-18, ADR-0015). Dazu T11.1a und T15.21 auf `[x]`. **Änderung** - `native/bridge/host_shim/`: UTF-8-`wxString`/`wxArrayString`, leere wx-Header, Ersatz für `slic3r/GUI/{I18N,format,GUI,GUI_App,BonjourDialog,MsgDialog}.hpp`. Damit bauen `PrintHost.hpp` und `OctoPrint.cpp` (OctoPrint, PrusaLink, SL1Host, Prusa Connect alt), `Duet`, `FlashAir`, `AstroBox`, `Repetier`, `MKS`+`TCPConsole`, `Moonraker` **unverändert ohne Patch** (Objektbibliothek `droidslice-printhost`). - `src/print_host.cpp`: Kopie von upstream `PrintHost.cpp` (b028299c77, Änderungen mit „DroidSlice:“ markiert): Fabrik, Job-Queue meldet an das wx-freie Zustandsmodell `GUI::PrintHostQueueDialog` (`print_host_queue.{hpp,cpp}`, Logik aus `PrintHostDialogs.cpp`). `prusaconnectnew` → kein Host, TODO(parity) T11.5. - JNI `print_host_jni.cpp` + core `PrintHost.kt` (Info, Verbindungstest, Repetier-Gruppen/-Drucker, PrusaLink-Speicher) und `PrintHostQueue.kt` (`jobs: StateFlow`, `enqueue`, `cancel`; Handles, AutoCloseable, Exception-Mapping). `PresetBundle.selectedPhysicalPrinterConfig()` als Quelle wie `Plater::send_gcode`. - Doku: ADR-0015, `host_shim/README.md`, `docs/upstream-notes/print-host.md` (u. a. „Completed“ schon bei 100 % gesendet, Abbruch-Semantik). **Tests** - `PrintHostTest` (neu, 5/5, mehrfach wiederholt) gegen einen OctoPrint-Nachbau im Testprozess: Fabrik je `host_type`, Verbindungstest ok/403, Upload mit Multipart-Prüfung und Löschen der Quelle, Host-Fehler 500, Abbruch eines laufenden und eines wartenden Jobs. - `PhysicalPrintersTest` 3/3 (Config des gewählten Druckers → Host), `NetworkTest` 3/3, `tools/check.sh` grün. Lokal auf emulator-5554 (tablet_api37). **Gerät prüfen:** nichts Sichtbares (keine UI, die folgt mit T11.1c). Echter Drucker erst mit T11.2. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(hosts): PrintHost-Basis nativ mit UTF-8-wxString-Shim (T11.1b)
Some checks failed
ci / changes (pull_request) Successful in 6s
ci / build (pull_request) Has been cancelled
ci / deps (pull_request) Has been cancelled
ci / slic3r (pull_request) Has been cancelled
ci / unit-tests (pull_request) Has been cancelled
ci / emulator-smoke (pull_request) Has been cancelled
ci / release (pull_request) Has been cancelled
ci / lint (pull_request) Has been cancelled
fc371625e6
- host_shim/: minimaler UTF-8-wxString/wxArrayString, leere wx-Header, GUI-Helfer (_L, format_wxstr,
  from_u8/into_u8, get_app_config, current_language_code); upstreams Host-.cpp (OctoPrint/PrusaLink, Duet,
  FlashAir, AstroBox, Repetier, MKS, Moonraker) bauen unverändert ohne Patch (ADR-0015)
- PrintHost.cpp als Kopie (src/print_host.cpp): Fabrik, Job-Queue an ein wx-freies Zustandsmodell des
  PrintHostQueueDialog; PrusaConnectNew TODO(parity) T11.5
- JNI + core: PrintHost (Info, Test, Gruppen/Drucker, Speicher), PrintHostQueue (jobs als StateFlow,
  enqueue/cancel), PresetBundle.selectedPhysicalPrinterConfig
- PrintHostTest gegen lokalen OctoPrint-Nachbau (Upload, Fehler, Abbruch laufend/wartend)
- WORKPLAN: T11.1a und T15.21 erledigt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(workplan): PR-Link T11.1b
All checks were successful
ci / changes (pull_request) Successful in 3s
ci / lint (pull_request) Successful in 3s
ci / release (pull_request) Has been skipped
ci / deps (pull_request) Successful in 34s
ci / emulator-smoke (pull_request) Has been skipped
ci / build (pull_request) Successful in 1m52s
ci / slic3r (pull_request) Successful in 31m3s
ci / unit-tests (pull_request) Has been skipped
1c70afb902
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
xanibale merged commit 107c47311c into phase/11 2026-11-18 17:03:53 +01:00
xanibale deleted branch feat/t11.1b-printhost 2026-11-18 17:03:53 +01:00
Sign in to join this conversation.
No reviewers
No labels
feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
xanibale/DroidSlice!185
No description provided.