|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Asks the user with dialogs. More...
Public Member Functions | |
| void | setWindow (QWidget *window) |
Shows the dialogs over window. | |
| void | askToConnect (const Sonde::SessionRequest &request) override |
A client asks to connect: approve or deny request, now or later. | |
| void | askToDelete (const QString &title, const Sonde::ToolCall &call, std::function< void(bool)> answer) override |
A client asks to delete note title, in tool call call: call answer with whether the user agreed, now or later. | |
| Public Member Functions inherited from Asker | |
| Asker ()=default | |
| Creates it. | |
| virtual | ~Asker ()=default |
| Destroys it. | |
Private Attributes | |
| QWidget * | m_window = nullptr |
| The dialogs' parent. | |
Asks the user with dialogs.
|
inlineoverridevirtual |
A client asks to connect: approve or deny request, now or later.
If the client goes away first, SessionRequest::onCancelled() says so.
Implements Asker.
|
inlineoverridevirtual |
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.
Implements Asker.