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

#include <QDialog>
#include <QMap>
#include <QSize>

#include "ui_mainwindow.h"

class SlxOutput;
namespace PulseAudioQt {
class Device;
class Port;
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::Device *device, const PulseAudioQt::Port *port, bool output);
    SlxOutput* getCardProfile(const PulseAudioQt::Card *card, const PulseAudioQt::Profile *profile);
    SlxOutput* getCardPort(const PulseAudioQt::Card *card, const PulseAudioQt::Port *port);

    void insertItemWidget(SlxOutput* w, bool isDevice);

    void mark();
    void sweep();

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

#endif