mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-14 16:18:48 -05:00
Merge pull request #3056 from thunder2/fix-status
Added changes of RsChatFlags and RsStatusValue to VOIP plugin
This commit is contained in:
commit
e80ad9577d
3 changed files with 5 additions and 5 deletions
|
|
@ -947,9 +947,9 @@ void VOIPChatWidgetHolder::sendAudioData()
|
|||
}
|
||||
}
|
||||
|
||||
void VOIPChatWidgetHolder::updateStatus(int status)
|
||||
void VOIPChatWidgetHolder::updateStatus(RsStatusValue status)
|
||||
{
|
||||
bool enabled = (status != RS_STATUS_OFFLINE);
|
||||
bool enabled = (status != RsStatusValue::RS_STATUS_OFFLINE);
|
||||
|
||||
audioListenToggleButton->setEnabled(audioCaptureToggleButton->isChecked() && enabled);
|
||||
audioListenToggleButtonFS->setEnabled(audioCaptureToggleButton->isChecked() && enabled);
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public:
|
|||
VOIPChatWidgetHolder(ChatWidget *chatWidget, VOIPNotify *notify);
|
||||
virtual ~VOIPChatWidgetHolder();
|
||||
|
||||
virtual void updateStatus(int status);
|
||||
virtual void updateStatus(RsStatusValue status);
|
||||
|
||||
void addAudioData(const RsPeerId &peer_id, QByteArray* array) ;
|
||||
void addVideoData(const RsPeerId &peer_id, QByteArray* array) ;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ void VOIPGUIHandler::ReceivedInvitation(const RsPeerId &peer_id, int flags)
|
|||
#ifdef VOIPGUIHANDLER_DEBUG
|
||||
std::cerr << "****** VOIPGUIHandler: received Invitation from peer " << peer_id.toStdString() << " with flags==" << flags << std::endl;
|
||||
#endif
|
||||
ChatDialog *di = ChatDialog::getChat(ChatId(peer_id), Settings->getChatFlags());
|
||||
ChatDialog *di = ChatDialog::getChat(ChatId(peer_id), (RsChatFlags) Settings->getChatFlags());
|
||||
if (di) {
|
||||
ChatWidget *cw = di->getChatWidget();
|
||||
if(cw) {
|
||||
|
|
@ -113,7 +113,7 @@ void VOIPGUIHandler::ReceivedVoipData(const RsPeerId &peer_id)
|
|||
return ;
|
||||
}
|
||||
|
||||
ChatDialog *di = ChatDialog::getChat(ChatId(peer_id), Settings->getChatFlags());
|
||||
ChatDialog *di = ChatDialog::getChat(ChatId(peer_id), (RsChatFlags) Settings->getChatFlags());
|
||||
if (di) {
|
||||
ChatWidget *cw = di->getChatWidget();
|
||||
if (cw) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue