blob: c48a42902082c96b8d45ec6aa34795e6c5e4ec40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#ifndef STREAM_H
#define STREAM_H
#include <QString>
#include "volumeobject.h"
// Properties need fully qualified classes even with pointers.
#include "client.h"
namespace PulseAudioQt
{
class StreamPrivate;
class PULSEAUDIOQT_EXPORT Stream : public VolumeObject
{
Q_OBJECT
Q_PROPERTY(PulseAudioQt::Client *client READ client NOTIFY clientChanged)
Q_PROPERTY(bool virtualStream READ isVirtualStream NOTIFY virtualStreamChanged)
Q_PROPERTY(quint32 deviceIndex READ deviceIndex WRITE setDeviceIndex NOTIFY deviceIndexChanged)
Q_PROPERTY(bool corked READ isCorked NOTIFY corkedChanged)
Q_PROPERTY(bool hasVolume READ hasVolume NOTIFY hasVolumeChanged)
public:
~Stream();
Client *client() const;
bool isVirtualStream() const;
quint32 deviceIndex() const;
bool isCorked() const;
bool hasVolume() const;
virtual void setDeviceIndex(quint32 deviceIndex) = 0;
Q_SIGNALS:
void clientChanged();
void virtualStreamChanged();
void deviceIndexChanged();
void corkedChanged();
void hasVolumeChanged();
protected:
/** @private */
explicit Stream(QObject *parent);
/** @private */
class StreamPrivate *const d;
friend class SinkInputPrivate;
friend class SourceOutputPrivate;
};
} // PulseAudioQt
#endif // STREAM_H
|