KPipewire

pipewirerecord.h
1/*
2 SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#pragma once
8
9#include <QObject>
10
11#include "pipewirebaseencodedstream.h"
12#include <kpipewire_export.h>
13
14struct PipeWireRecordPrivate;
15
16class KPIPEWIRE_EXPORT PipeWireRecord : public PipeWireBaseEncodedStream
17{
18 Q_OBJECT
19 Q_PROPERTY(QString output READ output WRITE setOutput NOTIFY outputChanged)
20 Q_PROPERTY(QString extension READ extension NOTIFY encoderChanged)
21public:
22 PipeWireRecord(QObject *parent = nullptr);
23 ~PipeWireRecord() override;
24
25 QString output() const;
26 void setOutput(const QString &output);
27 QString extension() const;
28
29 // Only for compatibility with 5.27
30 KPIPEWIRE_DEPRECATED QString currentExtension() const
31 {
32 return extension();
33 }
34
36 void outputChanged(const QString &output);
37
38private:
39 std::unique_ptr<PipeWireProduce> makeProduce() override;
40
42};
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.