prefportaudio.h 790 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef PREFPORTAUDIO_H
  2. #define PREFPORTAUDIO_H
  3. #include <QObject>
  4. #include <QDomDocument>
  5. #include "ui_prefdialog.h"
  6. #include "fscomm.h"
  7. class PrefPortaudio : public QObject
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit PrefPortaudio(Ui::PrefDialog *ui, QObject *parent = 0);
  12. void writeConfig();
  13. void postWriteConfig();
  14. void readConfig();
  15. private slots:
  16. void ringFileChoose();
  17. void holdFileChoose();
  18. void indevChangeDev(int);
  19. void outdevChangeDev(int);
  20. void ringdevChangeDev(int);
  21. void ringdevTest();
  22. void loopTest();
  23. void refreshDevList();
  24. void applyPreprocessors(bool);
  25. signals:
  26. void preprocessorsApplied(QStringList);
  27. private:
  28. void getPaDevlist(void);
  29. Ui::PrefDialog *_ui;
  30. QDomDocument _xmlPaDevList;
  31. };
  32. #endif // PREFPORTAUDIO_H