PulseAudio Qt Bindings

port.h
1/*
2 SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef PORT_H
8#define PORT_H
9
10#include "profile.h"
11#include "pulseaudioqt_export.h"
12
13namespace PulseAudioQt
14{
15/**
16 * A PulseAudio port.
17 */
18class PULSEAUDIOQT_EXPORT Port : public Profile
19{
20 Q_OBJECT
21 Q_PROPERTY(Type type READ type NOTIFY typeChanged)
22
23public:
24 ~Port() override;
25
26 enum Type {
27 Unknown,
28 AUX,
29 Speaker,
30 Headphones,
31 Line,
32 Mic,
33 Headset,
34 Handset,
35 Earpiece,
36 SPDIF,
37 HDMI,
38 TV,
39 Radio,
40 Video,
41 USB,
42 Bluetooth,
43 Portable,
44 Handsfree,
45 Car,
46 HiFi,
47 Phone,
48 Network,
49 Analog,
50 };
51 Q_ENUM(Type)
52
53 Type type() const;
54
55Q_SIGNALS:
56 void typeChanged();
57
58protected:
59 /** @private */
60 explicit Port(QObject *parent);
61 /** @private */
62 std::unique_ptr<class PortPrivate> d;
63
64 friend class DevicePrivate;
65 friend class CardPrivate;
66};
67
68} // PulseAudioQt
69
70#endif // PORT_H
A PulseAudio port.
Definition port.h:19
A PulseAudio profile.
Definition profile.h:21
The primary namespace of PulseAudioQt.
Definition card.cpp:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.