summaryrefslogtreecommitdiffstats
path: root/src/PulseAudioQt/port.h
blob: 8473d966b13dcd7ec7cf3aa7b7345cab1d5c601d (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
61
62
63
64
65
66
67
68
69
70
/*
    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 PORT_H
#define PORT_H

#include "profile.h"
#include "pulseaudioqt_export.h"

namespace PulseAudioQt
{
/**
 * A PulseAudio port.
 */
class PULSEAUDIOQT_EXPORT Port : public Profile
{
    Q_OBJECT
    Q_PROPERTY(Type type READ type NOTIFY typeChanged)

public:
    ~Port();

    enum Type {
        Unknown,
        AUX,
        Speaker,
        Headphones,
        Line,
        Mic,
        Headset,
        Handset,
        Earpiece,
        SPDIF,
        HDMI,
        TV,
        Radio,
        Video,
        USB,
        Bluetooth,
        Portable,
        Handsfree,
        Car,
        HiFi,
        Phone,
        Network,
        Analog,
    };
    Q_ENUM(Type)

    Type type() const;

Q_SIGNALS:
    void typeChanged();

protected:
    /** @private */
    explicit Port(QObject *parent);
    /** @private */
    class PortPrivate *const d;

    friend class DevicePrivate;
    friend class CardPrivate;
};

} // PulseAudioQt

#endif // PORT_H