Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorIpc Namespace Reference

Namespaces

namespace  IpcEngine
namespace  Field
namespace  RequestType
namespace  ResponseType
namespace  ErrorCode
namespace  IpcSchemaGenerator

Classes

class  IpcCallContext
class  IpcPendingReply
struct  Request
class  IpcRouter
class  IpcTarget

Functions

PHOSPHORIPC_EXPORT std::optional< Request > parseRequest (const QByteArray &line, QString *parseError)
PHOSPHORIPC_EXPORT QJsonObject buildReply (qint64 id, const QJsonValue &result)
PHOSPHORIPC_EXPORT QJsonObject buildEvent (qint64 subscriptionId, const QJsonValue &args)
PHOSPHORIPC_EXPORT QJsonObject buildEvent (const QString &target, const QString &signalName, const QJsonValue &args)
PHOSPHORIPC_EXPORT QJsonObject buildError (qint64 id, const QString &code, const QString &message, const QJsonObject &detail={})
PHOSPHORIPC_EXPORT QByteArray writeLine (const QJsonObject &obj)
PHOSPHORIPC_EXPORT QJsonValue variantToJson (const QVariant &v)

Variables

constexpr int ProtocolVersion = 1

Function Documentation

◆ buildError()

PHOSPHORIPC_EXPORT QJsonObject PhosphorIpc::buildError ( qint64 id,
const QString & code,
const QString & message,
const QJsonObject & detail = {} )
nodiscard

◆ buildEvent() [1/2]

PHOSPHORIPC_EXPORT QJsonObject PhosphorIpc::buildEvent ( const QString & target,
const QString & signalName,
const QJsonValue & args )
nodiscard

◆ buildEvent() [2/2]

PHOSPHORIPC_EXPORT QJsonObject PhosphorIpc::buildEvent ( qint64 subscriptionId,
const QJsonValue & args )
nodiscard

◆ buildReply()

PHOSPHORIPC_EXPORT QJsonObject PhosphorIpc::buildReply ( qint64 id,
const QJsonValue & result )
nodiscard

◆ parseRequest()

PHOSPHORIPC_EXPORT std::optional< Request > PhosphorIpc::parseRequest ( const QByteArray & line,
QString * parseError )
nodiscard

◆ variantToJson()

PHOSPHORIPC_EXPORT QJsonValue PhosphorIpc::variantToJson ( const QVariant & v)
nodiscard

◆ writeLine()

PHOSPHORIPC_EXPORT QByteArray PhosphorIpc::writeLine ( const QJsonObject & obj)
nodiscard

Variable Documentation

◆ ProtocolVersion

int PhosphorIpc::ProtocolVersion = 1
constexpr