mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
services/pipewire: expose node type
This commit is contained in:
parent
6b3d64e32a
commit
ee570ec623
5 changed files with 100 additions and 23 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue