Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::ResourceContents Struct Reference

Contents returned by a ResourceReader: text or binary data. More...

#include <types.h>

Static Public Member Functions

static ResourceContents fromText (const QString &text, const QString &mimeType=QStringLiteral("text/plain"))
 Text contents.
static ResourceContents fromBlob (const QByteArray &data, const QString &mimeType)
 Binary contents.

Public Attributes

QString mimeType
 MIME type; empty falls back to the definition's.
QString text
 Text contents, used when !isBinary.
QByteArray blob
 Raw bytes, used when isBinary (base64-encoded on the wire).
bool isBinary = false
 Whether blob rather than text holds the contents.

Detailed Description

Contents returned by a ResourceReader: text or binary data.


The documentation for this struct was generated from the following files: