mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-13 01:44:29 -05:00
92fabf4c56
Moved the calls to the plugin to ChatWidget for use with all types of chats (private chat, chat lobby and distant chat). Recompile needed git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6980 b45a01b8-16f6-495d-af2f-9b41ad6348cc
42 lines
918 B
C++
42 lines
918 B
C++
#include <QObject>
|
|
#include <QGraphicsEffect>
|
|
#include <gui/SpeexProcessor.h>
|
|
#include <gui/chat/ChatWidget.h>
|
|
|
|
class QToolButton;
|
|
class QAudioInput;
|
|
class QAudioOutput;
|
|
|
|
#define VOIP_SOUND_INCOMING_CALL "VOIP_incoming_call"
|
|
|
|
class AudioChatWidgetHolder : public QObject, public ChatWidgetHolder
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AudioChatWidgetHolder(ChatWidget *chatWidget);
|
|
virtual ~AudioChatWidgetHolder();
|
|
|
|
virtual void updateStatus(int status);
|
|
|
|
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;
|
|
|
|
QToolButton *audioListenToggleButton ;
|
|
QToolButton *audioMuteCaptureToggleButton ;
|
|
QToolButton *hangupButton ;
|
|
};
|