#pragma once

#include <tqwidget.h>

class AlsaDevice;
class TQSlider;
class TQLabel;
class KLedButton;
class BalanceKnob;

class AlsaDeviceWidget : public TQWidget
{
    TQ_OBJECT
public:
    AlsaDeviceWidget( AlsaDevice *dev, TQWidget *parent = 0 );

private slots:
    void onVolumeChanged( int v );
    void onMuteChanged( bool m );
    void onPanChanged( int p );
    void onSliderMoved( int v );
    void onMuteToggled( bool on );
    void onPanMoved( int p );

private:
    AlsaDevice  *m_dev;
    TQSlider     *m_slider;
    TQLabel      *m_volLabel;
    KLedButton  *m_muteBtn;
    BalanceKnob *m_balance;
};
