services/pipewire: expose node type

This commit is contained in:
nydragon 2025-06-07 03:26:55 -07:00 committed by outfoxxed
parent 6b3d64e32a
commit ee570ec623
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
5 changed files with 100 additions and 23 deletions

View file

@ -328,12 +328,14 @@ QString PwNodeIface::description() const { return this->mNode->description; }
QString PwNodeIface::nickname() const { return this->mNode->nick; }
bool PwNodeIface::isSink() const { return this->mNode->isSink; }
bool PwNodeIface::isSink() const { return this->mNode->type.testFlags(PwNodeType::Sink); }
bool PwNodeIface::isStream() const { return this->mNode->isStream; }
bool PwNodeIface::isStream() const { return this->mNode->type.testFlags(PwNodeType::Stream); }
bool PwNodeIface::isReady() const { return this->mNode->ready; }
PwNodeType::Flags PwNodeIface::type() const { return this->mNode->type; };
QVariantMap PwNodeIface::properties() const {
auto map = QVariantMap();
for (auto [k, v]: this->mNode->properties.asKeyValueRange()) {