Debian Codegraph @

samples/qtrecompress/audc.cpp

raw
1 #include "audc.h"
2 #include "audc.moc"
3
4 #include <qcombobox.h>
5
6 /*
7 * Constructs a AudioCodecConfig which is a child of 'parent', with the
8 * name 'name' and widget flags set to 'f'
9 *
10 * The dialog will by default be modeless, unless you set 'modal' to
11 * TRUE to construct a modal dialog.
12 */
13 AudioCodecConfig::AudioCodecConfig( QWidget* parent, const AudioEncoderInfo& fmt)
14 : AudioCompress( 0, "Audio codec config", TRUE, 0 ), info(fmt)
15 {
16 }
17
18 void AudioCodecConfig::accept()
19 {
20 if (m_pComboBox->currentItem()==1)
21 {
22 info.fmt = 0x55;
23 info.bitrate = 128000;
24 }
25 return QDialog::accept();
26 }
27
28 AudioEncoderInfo AudioCodecConfig::GetInfo()
29 {
30 return info;
31 }