mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-20 04:44:49 -04:00
added logic for handling invitations
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4993 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a4320d785f
commit
b748f1a3f1
6 changed files with 36 additions and 6 deletions
|
@ -11,6 +11,16 @@ void PluginGUIHandler::ReceivedInvitation(const QString& peer_id)
|
|||
std::cerr << "****** Plugin GUI handler: received data!" << std::endl;
|
||||
}
|
||||
|
||||
void PluginGUIHandler::ReceivedVoipHangUp(const QString& peer_id)
|
||||
{
|
||||
std::cerr << "****** Plugin GUI handler: received HangUp!" << std::endl;
|
||||
}
|
||||
|
||||
void PluginGUIHandler::ReceivedVoipAccept(const QString& peer_id)
|
||||
{
|
||||
std::cerr << "****** Plugin GUI handler: received VoipAccept!" << std::endl;
|
||||
}
|
||||
|
||||
void PluginGUIHandler::ReceivedVoipData(const QString& peer_id)
|
||||
{
|
||||
std::cerr << "****** Plugin GUI handler: received invitation!" << std::endl;
|
||||
|
|
|
@ -14,4 +14,6 @@ class PluginGUIHandler: public QObject
|
|||
public slots:
|
||||
void ReceivedInvitation(const QString& peer_id) ;
|
||||
void ReceivedVoipData(const QString& peer_id) ;
|
||||
void ReceivedVoipHangUp(const QString& peer_id) ;
|
||||
void ReceivedVoipAccept(const QString& peer_id) ;
|
||||
};
|
||||
|
|
|
@ -8,3 +8,11 @@ void PluginNotifier::notifyReceivedVoipData(const std::string& peer_id)
|
|||
{
|
||||
emit voipDataReceived(QString::fromStdString(peer_id)) ;
|
||||
}
|
||||
void PluginNotifier::notifyReceivedVoipAccept(const std::string& peer_id)
|
||||
{
|
||||
emit voipAcceptReceived(QString::fromStdString(peer_id)) ;
|
||||
}
|
||||
void PluginNotifier::notifyReceivedVoipHangUp(const std::string& peer_id)
|
||||
{
|
||||
emit voipHangUpReceived(QString::fromStdString(peer_id)) ;
|
||||
}
|
||||
|
|
|
@ -14,8 +14,12 @@ class PluginNotifier: public QObject
|
|||
public:
|
||||
void notifyReceivedVoipData(const std::string& peer_id) ;
|
||||
void notifyReceivedVoipInvite(const std::string& peer_id) ;
|
||||
void notifyReceivedVoipHangUp(const std::string& peer_id) ;
|
||||
void notifyReceivedVoipAccept(const std::string& peer_id) ;
|
||||
|
||||
signals:
|
||||
void voipInvitationReceived(const QString&) ; // signal emitted when an invitation has been received
|
||||
void voipDataReceived(const QString&) ; // signal emitted when some voip data has been received
|
||||
void voipHangUpReceived(const QString& peer_id) ; // emitted when the peer closes the call (i.e. hangs up)
|
||||
void voipAcceptReceived(const QString& peer_id) ; // emitted when the peer accepts the call
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue