forked from quickshell/quickshell
service/pipewire: add pipewire module
This commit is contained in:
parent
bba8cb8a7d
commit
3e80c4a4fd
21 changed files with 2476 additions and 4 deletions
23
src/services/pipewire/connection.cpp
Normal file
23
src/services/pipewire/connection.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include "connection.hpp"
|
||||
|
||||
#include <qobject.h>
|
||||
|
||||
namespace qs::service::pipewire {
|
||||
|
||||
PwConnection::PwConnection(QObject* parent): QObject(parent) {
|
||||
if (this->core.isValid()) {
|
||||
this->registry.init(this->core);
|
||||
}
|
||||
}
|
||||
|
||||
PwConnection* PwConnection::instance() {
|
||||
static PwConnection* instance = nullptr; // NOLINT
|
||||
|
||||
if (instance == nullptr) {
|
||||
instance = new PwConnection();
|
||||
}
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
} // namespace qs::service::pipewire
|
||||
Loading…
Add table
Add a link
Reference in a new issue