2010-01-05 21:08:25 -05:00
|
|
|
#ifndef PREFPORTAUDIO_H
|
|
|
|
#define PREFPORTAUDIO_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QDomDocument>
|
|
|
|
#include "ui_prefdialog.h"
|
|
|
|
|
|
|
|
class QSettings;
|
|
|
|
|
|
|
|
class PrefPortaudio : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit PrefPortaudio(Ui::PrefDialog *ui, QObject *parent = 0);
|
|
|
|
void writeConfig();
|
|
|
|
void readConfig();
|
|
|
|
|
2010-01-05 22:45:00 -05:00
|
|
|
private slots:
|
|
|
|
void ringFileChoose();
|
|
|
|
void holdFileChoose();
|
|
|
|
void outdevChangeDev(int);
|
|
|
|
void ringdevChangeDev(int);
|
2010-01-05 23:31:20 -05:00
|
|
|
void ringdevTest();
|
2010-01-05 22:45:00 -05:00
|
|
|
|
2010-01-05 21:08:25 -05:00
|
|
|
private:
|
|
|
|
void getPaDevlist(void);
|
|
|
|
QSettings *_settings;
|
|
|
|
Ui::PrefDialog *_ui;
|
|
|
|
QDomDocument _xmlPaDevList;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREFPORTAUDIO_H
|