mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 16:15:23 -04:00
added communitation between service and GUI part of VOIP plugin.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4990 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
12b3ed02f1
commit
db07053214
9 changed files with 107 additions and 7 deletions
21
plugins/VOIP/gui/PluginNotifier.h
Normal file
21
plugins/VOIP/gui/PluginNotifier.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
// This class is a Qt object to get notification from the plugin's service threads,
|
||||
// and responsible to pass the info the the GUI part.
|
||||
//
|
||||
// Because the GUI part is async-ed with the service, it is crucial to use the
|
||||
// QObject connect system to communicate between the p3Service and the gui part (handled by Qt)
|
||||
//
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class PluginNotifier: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
void notifyReceivedVoipData(const std::string& peer_id) ;
|
||||
void notifyReceivedVoipInvite(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
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue