|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Whatever asks the user: dialogs in the application, a script in its tests. More...
#include <automation.h>
Public Member Functions | |
| Asker ()=default | |
| Creates it. | |
| virtual | ~Asker ()=default |
| Destroys it. | |
| virtual void | askToConnect (const Sonde::SessionRequest &request)=0 |
A client asks to connect: approve or deny request, now or later. | |
| virtual void | askToDelete (const QString &title, const Sonde::ToolCall &call, std::function< void(bool)> answer)=0 |
A client asks to delete note title, in tool call call: call answer with whether the user agreed, now or later. | |
Whatever asks the user: dialogs in the application, a script in its tests.
|
pure virtual |
A client asks to connect: approve or deny request, now or later.
If the client goes away first, SessionRequest::onCancelled() says so.
Implemented in anonymous_namespace{main.cpp}::DialogAsker, and anonymous_namespace{test_notebook.cpp}::ScriptedAsker.
|
pure virtual |
A client asks to delete note title, in tool call call: call answer with whether the user agreed, now or later.
If the client cancels the call or goes away first, ToolCall::onCancelled() says so.
Implemented in anonymous_namespace{main.cpp}::DialogAsker, and anonymous_namespace{test_notebook.cpp}::ScriptedAsker.