Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Asker Class Referenceabstract

Whatever asks the user: dialogs in the application, a script in its tests. More...

#include <automation.h>

Inheritance diagram for Asker:
anonymous_namespace{main.cpp}::DialogAsker anonymous_namespace{test_notebook.cpp}::ScriptedAsker

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.

Detailed Description

Whatever asks the user: dialogs in the application, a script in its tests.

Member Function Documentation

◆ askToConnect()

virtual void Asker::askToConnect ( const Sonde::SessionRequest & request)
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.

◆ askToDelete()

virtual void Asker::askToDelete ( const QString & title,
const Sonde::ToolCall & call,
std::function< void(bool)> answer )
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.


The documentation for this class was generated from the following file: