summaryrefslogtreecommitdiffstats
path: root/src/PulseAudioQt/cardport.h
diff options
context:
space:
mode:
authorSimon Rettberg2022-08-18 20:27:25 +0200
committerSimon Rettberg2022-08-18 20:27:25 +0200
commitc48cebd620d3f5330c104d85ac32f0aaffadaa14 (patch)
tree8fc74d8aa05fcdc75bfcdf93fdc89c0f071692eb /src/PulseAudioQt/cardport.h
parentWhen changing default output of card, also set default sink (diff)
downloadpavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.tar.gz
pavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.tar.xz
pavucontrol-slx-c48cebd620d3f5330c104d85ac32f0aaffadaa14.zip
Replace everything with new "slxmix" (work in progress)
Diffstat (limited to 'src/PulseAudioQt/cardport.h')
-rw-r--r--src/PulseAudioQt/cardport.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/PulseAudioQt/cardport.h b/src/PulseAudioQt/cardport.h
new file mode 100644
index 0000000..77d2c90
--- /dev/null
+++ b/src/PulseAudioQt/cardport.h
@@ -0,0 +1,36 @@
+/*
+ SPDX-FileCopyrightText: 2018 Nicolas Fella <nicolas.fella@gmx.de>
+
+ SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
+*/
+#ifndef CARDPORT_H
+#define CARDPORT_H
+
+#include "port.h"
+
+#include <QObject>
+#include <pulse/introspect.h>
+
+namespace PulseAudioQt
+{
+/**
+ * A Port associated with a Card.
+ */
+class PULSEAUDIOQT_EXPORT CardPort : public Port
+{
+ Q_OBJECT
+
+public:
+ ~CardPort();
+
+ void update(const pa_card_port_info *info);
+
+private:
+ explicit CardPort(QObject *parent);
+
+ friend class CardPrivate;
+};
+
+} // PulseAudioQt
+
+#endif