Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServicePipeWire::PwSourceModel Class Reference

Convenience subclass pre-pinned to Audio/Source. More...

#include <PhosphorServicePipeWire/PwNodeModel.h>

Inheritance diagram for PhosphorServicePipeWire::PwSourceModel:
[legend]

Public Member Functions

 PwSourceModel (QObject *parent=nullptr)
Public Member Functions inherited from PhosphorServicePipeWire::PwNodeModel
 PwNodeModel (QObject *parent=nullptr)
 ~PwNodeModel () override
PipeWireConnection * connection () const
QStringList mediaClasses () const
int rowCount (const QModelIndex &parent=QModelIndex()) const override
QVariant data (const QModelIndex &index, int role) const override
QHash< int, QByteArray > roleNames () const override
PwNode * firstNode () const
PwNode * nodeAt (int row) const
 The node at row, or null when row is out of range.

Additional Inherited Members

Public Types inherited from PhosphorServicePipeWire::PwNodeModel
enum  Role {
  NodeRole = Qt::UserRole + 1 , IdRole = Qt::UserRole + 2 , NameRole = Qt::UserRole + 3 , NickRole = Qt::UserRole + 4 ,
  DescriptionRole = Qt::UserRole + 5 , MediaClassRole = Qt::UserRole + 6 , ChannelCountRole = Qt::UserRole + 7 , VolumesRole = Qt::UserRole + 8 ,
  MutedRole = Qt::UserRole + 9
}
 Row 0, or null when the model is empty. More...
Public Slots inherited from PhosphorServicePipeWire::PwNodeModel
void setConnection (PipeWireConnection *connection)
 Attach the model to a PipeWireConnection (or detach by passing nullptr).
void setMediaClasses (const QStringList &classes)
 Replace the media-class filter set.
Signals inherited from PhosphorServicePipeWire::PwNodeModel
void connectionChanged ()
void mediaClassesChanged ()
void countChanged ()
void firstNodeChanged ()

Detailed Description

Convenience subclass pre-pinned to Audio/Source.

Copy/move suppression inherited from PwNodeModel. Same "no `final`" caveat as PwSinkModel — qmlRegisterType's internal QQmlElement<T> derives from us.

Constructor & Destructor Documentation

◆ PwSourceModel()

PhosphorServicePipeWire::PwSourceModel::PwSourceModel ( QObject * parent = nullptr)
explicit

The documentation for this class was generated from the following file:
  • phosphor-service-pipewire/include/PhosphorServicePipeWire/PwNodeModel.h