diff options
author | Manuel Schneider | 2014-05-26 21:12:02 +0200 |
---|---|---|
committer | Manuel Schneider | 2014-05-26 21:12:02 +0200 |
commit | a535069b35e44c0a23a3ba366bd4d5a228825c4b (patch) | |
tree | 8438d47b77d7082492e6663bf6166802c328b8db /src/server/mainwindow/mainwindow.cpp | |
parent | Make tutor check implicit in lock screen (diff) | |
download | pvs2-a535069b35e44c0a23a3ba366bd4d5a228825c4b.tar.gz pvs2-a535069b35e44c0a23a3ba366bd4d5a228825c4b.tar.xz pvs2-a535069b35e44c0a23a3ba366bd4d5a228825c4b.zip |
Refactor unicast to multicast
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/server/mainwindow/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |