#include #include #include #include #include class QToolButton; #define VOIP_SOUND_INCOMING_CALL "VOIP_incoming_call" class AudioPopupChatDialog: public PopupChatDialog { Q_OBJECT public: AudioPopupChatDialog(QWidget *parent = NULL); virtual ~AudioPopupChatDialog() { if(inputDevice != NULL) inputDevice->stop() ; } void addAudioData(const QString name, QByteArray* array) ; private slots: void toggleAudioListen(); void toggleAudioMuteCapture(); void hangupCall() ; public slots: void sendAudioData(); protected: QAudioInput* inputDevice; QAudioOutput* outputDevice; QtSpeex::SpeexInputProcessor* inputProcessor; QtSpeex::SpeexOutputProcessor* outputProcessor; virtual void updateStatus(int status) ; QToolButton *audioListenToggleButton ; QToolButton *audioMuteCaptureToggleButton ; QToolButton *hangupButton ; };