PulseAudio Qt Bindings

stream.cpp
1 /*
2  SPDX-FileCopyrightText: 2014-2015 Harald Sitter <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #include "stream.h"
8 #include "context_p.h"
9 #include "stream_p.h"
10 #include "volumeobject_p.h"
11 
12 namespace PulseAudioQt
13 {
14 Stream::Stream(QObject *parent)
15  : VolumeObject(parent)
16  , d(new StreamPrivate(this))
17 {
18  VolumeObject::d->m_volumeWritable = false;
19 }
20 
21 Stream::~Stream()
22 {
23  delete d;
24 }
25 
26 StreamPrivate::StreamPrivate(Stream *q)
27  : q(q)
28 {
29 }
30 
31 StreamPrivate::~StreamPrivate()
32 {
33 }
34 
35 Client *Stream::client() const
36 {
37  return Context::instance()->d->m_clients.data().value(d->m_clientIndex, nullptr);
38 }
39 
40 bool Stream::isVirtualStream() const
41 {
42  return d->m_virtualStream;
43 }
44 
45 quint32 Stream::deviceIndex() const
46 {
47  return d->m_deviceIndex;
48 }
49 
50 bool Stream::isCorked() const
51 {
52  return d->m_corked;
53 }
54 
55 bool Stream::hasVolume() const
56 {
57  return d->m_hasVolume;
58 }
59 
60 } // PulseAudioQt
The primary namespace of PulseAudioQt.
Definition: card.cpp:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jun 25 2022 06:12:40 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.