summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.h
blob: 6fbe9f26d119b6ec81a3d42253219fdb115ef4ac (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
#ifndef _MAIN_WINDOW_H_
#define _MAIN_WINDOW_H_

#include <QDialog>
#include <QMap>

#include "ui_mainwindow.h"

class SlxOutput;
namespace PulseAudioQt {
class Sink;
class Port;
class Source;
class Card;
class Profile;
}

class MainWindow : public QDialog, public Ui::MainWindow
{
    Q_OBJECT

public:
    MainWindow();
    virtual ~MainWindow();

    SlxOutput* getDevice(const PulseAudioQt::Card *card, const PulseAudioQt::Sink *sink, const PulseAudioQt::Port *port);
    SlxOutput* getCardProfile(const PulseAudioQt::Card *card, const PulseAudioQt::Profile *profile);

    void insertItemWidget(SlxOutput* w, bool isDevice);

    void mark();
    void sweep();

private:
    QMap<QString, SlxOutput*> _widgets;
};

#endif