diff --git a/NEWS b/NEWS index 70872a4a1672082413a02befd2dd7038125f1d1f..264c530e0b1d9b40ade7c61020f80d2e26f5561a 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,7 @@ SFLphoned (0.7.0) / 2006-..-.. + * adding reload (sound driver) button + * fix: peer hangup remove flashing buttons + * removing old packaging stuff like FIXME or sflphone.spec.in * fix: click on flashing buttons * fix: send ringing, hangup, busy message * fix for using call command two times in a row diff --git a/configure.ac b/configure.ac index edb9d384dad4af40ba3541efe3aafacb81cd091b..7a5084ee542f244fed59cc9ae1d4b1cd323daf12 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,8 @@ dnl SFLPhone - configure.ac for automake 1.9 and autoconf 2.59 dnl dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.59) -AC_INIT(SFLPhone, 0.7, sflphoneteam@savoirfairelinux.com, sflphone) +AC_PREREQ(2.59e) +AC_INIT([SFLPhone],[0.7],[sflphoneteam@savoirfairelinux.com],[sflphone]) AC_COPYRIGHT([[Copyright (c) Savoir-Faire Linux 2004-2006]]) AC_REVISION([$Revision$]) diff --git a/m4/gwqt.m4 b/m4/gwqt.m4 index 1557305658a26e7773e026999d1a7beae18ee4e8..e4fda76fef0e04fb44e3db9492c562d089a37903 100644 --- a/m4/gwqt.m4 +++ b/m4/gwqt.m4 @@ -47,7 +47,7 @@ if test x"$QTDIR" = x ; then QT_SEARCH2="/usr/share/$i /usr/lib/$i /usr/local/$i" for j in $QT_SEARCH2; do if test -f $j/include/qglobal.h -a x$QTDIR = x; then - QTDIR=$i + QTDIR=$j break 2 fi done diff --git a/src/gui/qt/ConfigurationManagerImpl.cpp b/src/gui/qt/ConfigurationManagerImpl.cpp index c4a2f7442cefd6b97064b8eacd5c2e688f8643e1..f3e1857644854f3e3a5c44cdf7ebb5fa4e1db1db 100644 --- a/src/gui/qt/ConfigurationManagerImpl.cpp +++ b/src/gui/qt/ConfigurationManagerImpl.cpp @@ -23,6 +23,7 @@ #include "DebugOutput.hpp" #include "Session.hpp" #include "taxidermy/Hunter.hpp" +#include "Request.hpp" // don't know if it's a good idea for this class to know request... ConfigurationManagerImpl::ConfigurationManagerImpl() : mSession(NULL) @@ -213,3 +214,23 @@ ConfigurationManagerImpl::get(const QString §ion, return value; } +void +ConfigurationManagerImpl::reloadSoundDriver() { + + mAudioDevicesOut.clear(); + mAudioDevicesIn.clear(); + + Request *r; + r = mSession->list("audiodevicein"); + QObject::connect(r, SIGNAL(parsedEntry(QString, QString, QString, QString, QString)), + this, SLOT(addAudioDeviceIn(QString, QString, QString))); + QObject::connect(r, SIGNAL(success(QString, QString)), + this, SIGNAL(audioDevicesInUpdated())); + + r = mSession->list("audiodeviceout"); + QObject::connect(r, SIGNAL(parsedEntry(QString, QString, QString, QString, QString)), + this, SLOT(addAudioDeviceOut(QString, QString, QString))); + QObject::connect(r, SIGNAL(success(QString, QString)), + this, SIGNAL(audioDevicesOutUpdated())); + +} diff --git a/src/gui/qt/ConfigurationManagerImpl.hpp b/src/gui/qt/ConfigurationManagerImpl.hpp index 51fa3de3188d12a4adcfe51fbfe7cebd863b1ac2..671bc28fdaf8b43a4a1e1abe516a641f6c25870c 100644 --- a/src/gui/qt/ConfigurationManagerImpl.hpp +++ b/src/gui/qt/ConfigurationManagerImpl.hpp @@ -158,6 +158,11 @@ public: void finishSave(); + /** + * Reload sound driver from audiodevice in/audiodevice out + */ + void reloadSoundDriver(); + public slots: void add(const ConfigEntry &entry); diff --git a/src/gui/qt/ConfigurationPanel.ui b/src/gui/qt/ConfigurationPanel.ui index 6512f45f20a107d31282233efcbbdc8b227c7076..4682e87e7284b5f597a047f1c0348f16cf724aaa 100644 --- a/src/gui/qt/ConfigurationPanel.ui +++ b/src/gui/qt/ConfigurationPanel.ui @@ -770,15 +770,22 @@ <property name="enabled"><bool>true</bool></property> <property name="text"><string>Test</string></property> </widget> - <widget class="QLabel"> + <widget class="QPushButton"> + <property name="name"><cstring>buttonReloadSoundDriver</cstring></property> + <property name="enabled"><bool>true</bool></property> + <property name="text"><string>Reload</string></property> + </widget> + </hbox> + </widget> + <widget class="QLabel"> <property name="name"><cstring>lblSoundDriver</cstring></property> <property name="text"><string></string></property> <property name="paletteForegroundColor"><color><red>255</red><green>0</green><blue>0</blue></color></property> </widget> - </hbox> - </widget> - </vbox> + +</vbox> </widget> + </widget> <widget class="QWidget"> <property name="name"> @@ -1437,6 +1444,12 @@ Montreal, Quebec H2T 1S6, Canada</p></string> <receiver>ConfigurationPanel</receiver> <slot>slotTestSoundDriver()</slot> </connection> + <connection> + <sender>buttonReloadSoundDriver</sender> + <signal>clicked()</signal> + <receiver>ConfigurationPanel</receiver> + <slot>slotReloadSoundDriver()</slot> + </connection> <connection> <sender>buttonCancel</sender> <signal>clicked()</signal> @@ -1491,6 +1504,7 @@ Montreal, Quebec H2T 1S6, Canada</p></string> <tabstop>cboDriverChoiceOut</tabstop> <tabstop>cboDriverChoiceIn</tabstop> <tabstop>buttonTestSoundDriver</tabstop> + <tabstop>buttonReloadSoundDriver</tabstop> <tabstop>codec1</tabstop> <tabstop>codec2</tabstop> <tabstop>codec3</tabstop> @@ -1510,6 +1524,7 @@ Montreal, Quebec H2T 1S6, Canada</p></string> <slot>slotRegister()</slot> <slot>slotRegisterReturn( bool, QString )</slot> <slot>slotTestSoundDriver()</slot> + <slot>slotReloadSoundDriver()</slot> <slot>slotSoundDriverReturn( bool, QString )</slot> <slot>saveSlot()</slot> <slot>changeTabSlot()</slot> diff --git a/src/gui/qt/ConfigurationPanel.ui.h b/src/gui/qt/ConfigurationPanel.ui.h index 743f77e2321e9ea73adc1dbd6be793f010d7d5e0..60f9922909f2e5f45738e1c78354b12895ab3930 100644 --- a/src/gui/qt/ConfigurationPanel.ui.h +++ b/src/gui/qt/ConfigurationPanel.ui.h @@ -396,7 +396,11 @@ ConfigurationPanel::slotRegisterReturn( bool hasError, QString ) lblError->show(); } -void ConfigurationPanel::slotTestSoundDriver() +/** + * Test sound driver (save them before) + */ +void +ConfigurationPanel::slotTestSoundDriver() { // save driver in configuration manager if (cboDriverChoiceOut->currentText() != NULL) { @@ -412,6 +416,13 @@ void ConfigurationPanel::slotTestSoundDriver() emit soundDriverChanged(); } +void +ConfigurationPanel::slotReloadSoundDriver() +{ + ConfigurationManager::instance().reloadSoundDriver(); +} + + void ConfigurationPanel::slotSoundDriverReturn( bool hasError, QString message ) {