summaryrefslogtreecommitdiffstats
path: root/src/PulseAudioQt/cardport.h
blob: 77d2c90ad38acfa21e0b2fad85c50806e25feb19 (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
/*
    SPDX-FileCopyrightText: 2018 Nicolas Fella <nicolas.fella@gmx.de>

    SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#ifndef CARDPORT_H
#define CARDPORT_H

#include "port.h"

#include <QObject>
#include <pulse/introspect.h>

namespace PulseAudioQt
{
/**
 * A Port associated with a Card.
 */
class PULSEAUDIOQT_EXPORT CardPort : public Port
{
    Q_OBJECT

public:
    ~CardPort();

    void update(const pa_card_port_info *info);

private:
    explicit CardPort(QObject *parent);

    friend class CardPrivate;
};

} // PulseAudioQt

#endif