summaryrefslogtreecommitdiffstats
path: root/src/slxoutput.h
blob: 15f8554f1030c76081a6696602d49a15150dc641 (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
#ifndef _SLX_OUTPUT_H_
#define _SLX_OUTPUT_H_

#include <QWidget>
#include <QTimer>

#include "ui_slxoutput.h"

class SlxOutput : public QWidget, public Ui::SlxOutput
{
    Q_OBJECT
public:
    SlxOutput(QWidget *parent, const QString &id);
    virtual ~SlxOutput();

    void updateOutput(const QString &name, bool isDefault, bool isMuted, int volume, const QString &card, const QString &sink, const QString &port);
    const QString &sink() const { return _sink; }
    const bool isSink() const { return !_sink.isEmpty(); }

    bool unused;

private:
    QString _id;
    QString _card;
    QString _sink;
    QString _port;
    QTimer _volumeTimer;

private slots:
    void volumeSliderChanged(int value);
};

#endif