feat(sdk): add showMessageBox to DataSource runtime host API#24
Merged
Conversation
4501dbd to
358b3d0
Compare
Extends the DataSource SDK with modal message box support, allowing plugins to display info/warning/error/question dialogs to users during data loading or streaming operations. C ABI additions (data_source_protocol.h): - PJ_message_box_type_t enum (Info, Warning, Error, Question) - PJ_message_box_buttons_t flags (Ok, Cancel, Yes, No, etc.) - show_message_box function in runtime host vtable C++ SDK additions (data_source_plugin_base.hpp): - MessageBoxType and MessageBoxButton enums - DataSourceRuntimeHostView::showMessageBox() with typed return - Convenience methods: showInfo, showWarning, showError - Decision helpers: askContinue, askYesNo Protoapp implementation: - RuntimeHostState callback pattern for Qt binding - makeMessageBoxCallback() factory using QMessageBox - Callback bound to sessions before start
358b3d0 to
028cd79
Compare
pabloinigoblasco
added a commit
that referenced
this pull request
Apr 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends the DataSource SDK with modal message box support, allowing plugins to display info/warning/error/question dialogs during data loading or streaming.
Changes
C ABI (
data_source_protocol.h):PJ_message_box_type_tenum: Info, Warning, Error, QuestionPJ_message_box_buttons_tflags: Ok, Cancel, Yes, No, Continue, Abort, Retry, Ignoreshow_message_boxfunction in runtime host vtableC++ SDK (
data_source_plugin_base.hpp):MessageBoxTypeandMessageBoxButtonenumsDataSourceRuntimeHostView::showMessageBox()with typed returnshowInfo,showWarning,showErroraskContinue,askYesNoProtoapp:
ShowMessageBoxCallbackin RuntimeHostStatemakeMessageBoxCallback()factory using QMessageBoxTest plan