From ae364d9bed0589bf1a22cd5f530c563462379e3e Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 22 Feb 2010 18:23:26 +0000 Subject: Added old KDE3 version of kradio git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1094417 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../plugins/alsa-sound/alsa-sound-configuration.h | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 kradio3/plugins/alsa-sound/alsa-sound-configuration.h (limited to 'kradio3/plugins/alsa-sound/alsa-sound-configuration.h') diff --git a/kradio3/plugins/alsa-sound/alsa-sound-configuration.h b/kradio3/plugins/alsa-sound/alsa-sound-configuration.h new file mode 100644 index 0000000..0dd361a --- /dev/null +++ b/kradio3/plugins/alsa-sound/alsa-sound-configuration.h @@ -0,0 +1,83 @@ +/*************************************************************************** + alsa-sound-configuration.h - description + ------------------- + begin : Thu Sep 30 2004 + copyright : (C) 2004 by Martin Witte + email : witte@kawo1.rwth-aachen.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KRADIO_ALSA_SOUND_CONFIGURATION_H +#define KRADIO_ALSA_SOUND_CONFIGURATION_H + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "alsa-sound-configuration-ui.h" +#include "alsa-sound.h" +#include "alsa-config-mixer-setting.h" + +class QHBoxLayout; +class QGridLayout; +class QAlsaMixerElement; +class QScrollView; +class QFrame; + +class AlsaSoundConfiguration : public AlsaSoundConfigurationUI +{ +Q_OBJECT +public : + AlsaSoundConfiguration (QWidget *parent, AlsaSoundDevice *); + ~AlsaSoundConfiguration (); + +protected slots: + + void slotOK(); + void slotCancel(); + + void slotSetDirty(); + + void slotUpdateConfig(); + + void slotPlaybackCardSelected(const QString &cardname); + void slotCaptureCardSelected(const QString &cardname); + +protected: + int listSoundDevices(KComboBox *combobox, QMap *devname2dev, QMap *dev2devname, QMap *dev2idx, int card, snd_pcm_stream_t stream); + void saveCaptureMixerSettings(); + void restoreCaptureMixerSettings(); + + AlsaSoundDevice *m_SoundDevice; + int m_currentCaptureCard; + QMap m_name2card, + m_name2capturedevice, + m_playbackDeviceName2dev, + m_captureDeviceName2dev; + QMap m_card2name, + m_dev2playbackDeviceName, + m_dev2captureDeviceName; + QMap m_captureCard2idx, + m_captureDevice2idx, + m_playbackCard2idx, + m_playbackDevice2idx; + QGridLayout *m_groupMixerLayout; + QScrollView *m_groupMixerScrollView; + QFrame *m_groupMixerSubFrame; + QMap m_MixerElements; + + QMap m_MixerSettings; + + bool m_dirty; + bool m_ignore_updates; +}; + +#endif -- cgit v1.2.1