diff options
Diffstat (limited to 'src/ui/tmixtray.h')
| -rw-r--r-- | src/ui/tmixtray.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ui/tmixtray.h b/src/ui/tmixtray.h new file mode 100644 index 0000000..08a5fb5 --- /dev/null +++ b/src/ui/tmixtray.h @@ -0,0 +1,36 @@ +#pragma once + +#include <ksystemtray.h> + +class AudioDevice; +class PulseModel; +class TmixPopup; + +class TmixTray : public KSystemTray +{ + TQ_OBJECT + +public: + TmixTray( TQWidget *parent ); + void setDevice( AudioDevice *dev ); + void setModel( PulseModel *model ); + +public slots: + void updateIcon(); + void onRecordingActive( bool active ); + void onDeviceAdded( AudioDevice *dev ); + +protected: + void mousePressEvent( TQMouseEvent *e ); + void wheelEvent( TQWheelEvent *e ); + void contextMenuAboutToShow( TDEPopupMenu *menu ); + +private: + void updateRecordingTray(); + + PulseModel *m_model; + AudioDevice *m_device; + KSystemTray *m_recTray; + TmixPopup *m_popup; + int m_recordingCount; +}; |
