From a535069b35e44c0a23a3ba366bd4d5a228825c4b Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Mon, 26 May 2014 21:12:02 +0200 Subject: Refactor unicast to multicast --- src/server/mainwindow/mainwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/mainwindow/mainwindow.cpp') diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp index 3bdf0e6..8e260b4 100644 --- a/src/server/mainwindow/mainwindow.cpp +++ b/src/server/mainwindow/mainwindow.cpp @@ -470,7 +470,7 @@ void MainWindow::broadcast(Client *from) * @param to * @param blockOthers */ -void MainWindow::unicast(Client *from, Client *to, bool blockOthers) +void MainWindow::multicast(Client *from, Client *to, bool blockOthers) { _state = blockOthers ? State::ExclusiveUnicast : State::Unicast; @@ -564,7 +564,7 @@ void MainWindow::onButtonTutorToStudent() else if (_tutorFrame->client() == NULL) QMessageBox::critical(this, tr("Projection"), sStrTutorOffline); else - unicast(_tutorFrame->client(), _selectedFrame->client()); + multicast(_tutorFrame->client(), _selectedFrame->client()); } /***************************************************************************//** @@ -584,7 +584,7 @@ void MainWindow::onButtonStudentToTutor() else if (_tutorFrame->client() == NULL) QMessageBox::critical(this, tr("Projection"), sStrTutorOffline); else - unicast(_selectedFrame->client(), _tutorFrame->client()); + multicast(_selectedFrame->client(), _tutorFrame->client()); } @@ -604,7 +604,7 @@ void MainWindow::onButtonStudentToTutorExclusive() else if (_tutorFrame->client() == NULL) QMessageBox::critical(this, tr("Projection"), sStrTutorOffline); else - unicast(_tutorFrame->client(), _selectedFrame->client(), true); + multicast(_tutorFrame->client(), _selectedFrame->client(), true); } -- cgit v1.2.3-55-g7522