PulseAudio Qt Bindings

port.h
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 #ifndef PORT_H
8 #define PORT_H
9 
10 #include "profile.h"
11 #include "pulseaudioqt_export.h"
12 
13 namespace PulseAudioQt
14 {
15 /**
16  * A PulseAudio port.
17  */
18 class PULSEAUDIOQT_EXPORT Port : public Profile
19 {
20  Q_OBJECT
21  Q_PROPERTY(Type type READ type NOTIFY typeChanged)
22 
23 public:
24  ~Port();
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 
55 Q_SIGNALS:
56  void typeChanged();
57 
58 protected:
59  /** @private */
60  explicit Port(QObject *parent);
61  /** @private */
62  class PortPrivate *const d;
63 
64  friend class DevicePrivate;
65  friend class CardPrivate;
66 };
67 
68 } // PulseAudioQt
69 
70 #endif // PORT_H
A PulseAudio profile.
Definition: profile.h:20
The primary namespace of PulseAudioQt.
Definition: card.cpp:16
A PulseAudio port.
Definition: port.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:01:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.