diff options
Diffstat (limited to 'src/ui/backendcontroller.h')
| -rw-r--r-- | src/ui/backendcontroller.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ui/backendcontroller.h b/src/ui/backendcontroller.h new file mode 100644 index 0000000..a6cfe6c --- /dev/null +++ b/src/ui/backendcontroller.h @@ -0,0 +1,39 @@ +#pragma once + +#include <tqobject.h> +#include <tqstring.h> + +class TmixApp; + +class BackendController : public TQObject +{ + TQ_OBJECT +public: + explicit BackendController( TQObject *parent = 0 ); + ~BackendController(); + + void start(); + +public slots: + void onSettingsChanged(); + +private slots: + void doSwitch(); + +private: + void stop(); + void startPulse( bool showWindow = false ); + void startAlsa( bool showWindow = false ); + + TQString m_currentBackend; + +#ifdef WITH_PULSE + class PulseModel *m_pulseModel; + class MixerWindow *m_pulseWin; +#endif +#ifdef WITH_ALSA + class AlsaModel *m_alsaModel; + class AlsaMixerWindow *m_alsaWin; + class AlsaTray *m_alsaTray; +#endif +}; |
