Add Accept, Ring and HangUp event for Video and Audio.

Now you don't send data before friend accept.
This commit is contained in:
Phenom 2015-10-10 15:21:59 +02:00
parent 1a229ef817
commit 1989f366a7
16 changed files with 774 additions and 291 deletions

View file

@ -32,6 +32,9 @@
#include <stdint.h>
#include <QObject>
/***
#define VOIPGUIHANDLER_DEBUG 1
***/
class VOIPGUIHandler: public QObject
{
@ -41,9 +44,9 @@ public:
static void AnswerVideoCall(const RsPeerId &peer_id) ;
public slots:
void ReceivedInvitation(const RsPeerId &peer_id) ;
void ReceivedInvitation(const RsPeerId &peer_id, int flags) ;
void ReceivedVoipData(const RsPeerId &peer_id) ;
void ReceivedVoipHangUp(const RsPeerId &peer_id) ;
void ReceivedVoipAccept(const RsPeerId &peer_id) ;
void ReceivedVoipHangUp(const RsPeerId &peer_id, int flags) ;
void ReceivedVoipAccept(const RsPeerId &peer_id, int flags) ;
void ReceivedVoipBandwidthInfo(const RsPeerId &peer_id, int) ;
};