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

What the client set up on its connection, so it can be replayed to a restarted application. More...

Public Member Functions

void observe (const QJsonObject &message)
 Notes the parts of a client message that set up the session.
bool isEmpty () const
 Whether the client has sent initialize (so there is something to replay).
QByteArray replay (QSet< QString > *ids)
 The lines that set the session up again; ids receives the keys of the requests among them.

Private Attributes

QJsonObject m_initialize
 Params of the client's initialize.
bool m_initialized = false
 Whether it sent notifications/initialized.
QJsonObject m_logLevel
 Params of its last logging/setLevel.
QSet< QString > m_subscriptions
 Resources it subscribed to.
int m_nextId = 0
 Counter for the bridge's own request ids.

Detailed Description

What the client set up on its connection, so it can be replayed to a restarted application.


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