Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
anonymous_namespace{main.cpp}::DialogAsker Class Reference

Asks the user with dialogs. More...

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

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.

Detailed Description

Asks the user with dialogs.

Member Function Documentation

◆ askToConnect()

void anonymous_namespace{main.cpp}::DialogAsker::askToConnect ( const Sonde::SessionRequest & request)
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.

◆ askToDelete()

void anonymous_namespace{main.cpp}::DialogAsker::askToDelete ( const QString & title,
const Sonde::ToolCall & call,
std::function< void(bool)> answer )
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.


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