Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorControl::DBusEndpoint Struct Reference

Configured endpoint for a single D-Bus service the settings app talks to. More...

#include <PhosphorControl/DBusBridge.h>

Public Attributes

QString service
QString objectPath
QString interfaceName
int syncTimeoutMs = DefaultSyncTimeoutMs

Detailed Description

Configured endpoint for a single D-Bus service the settings app talks to.

service — bus name (e.g. "org.phosphor.plasmazones.daemon") objectPath — object path on that service (e.g. "/Daemon") interfaceName — default interface used by call()/asyncCall(). Apps that talk to multiple interfaces on the same object call callOn() / asyncCallOn() with an explicit interface. syncTimeoutMs — bound for synchronous calls; see DefaultSyncTimeoutMs.

The struct is a POD passed across the lib boundary by value, so it is exported for visibility-hidden builds — downstream consumers need typeinfo symbols to construct, copy, and pass DBusEndpoint instances cleanly.

The interface member is named interfaceName rather than interface because Windows MSVC <objbase.h> defines interface as a struct macro, which collides with field-access syntax. Renaming the field is less fragile than #undef interface in a public header (which would pollute every consumer's translation unit downstream of the include).

Member Data Documentation

◆ interfaceName

QString PhosphorControl::DBusEndpoint::interfaceName

◆ objectPath

QString PhosphorControl::DBusEndpoint::objectPath

◆ service

QString PhosphorControl::DBusEndpoint::service

◆ syncTimeoutMs

int PhosphorControl::DBusEndpoint::syncTimeoutMs = DefaultSyncTimeoutMs

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