Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+19
-19
@@ -137,7 +137,7 @@ bool ControlDialog::init(LtsSession::LtsSession *session,
|
||||
if (info.addresses().size() > 0)
|
||||
m_host = info.addresses().at(0);
|
||||
else
|
||||
ERROR_LOG() << "Address for host " << m_ui->cbxWorkstations->currentText() << " not found!";
|
||||
ERROR_LOG(m_logger) << "Address for host " << m_ui->cbxWorkstations->currentText() << " not found!";
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -160,7 +160,7 @@ void ControlDialog::aboutToClose()
|
||||
|
||||
void ControlDialog::slotOnConnectClicked()
|
||||
{
|
||||
TRACE_LOG() << Q_FUNC_INFO << " START, this=" << this;
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " START, this=" << this;
|
||||
if (!m_isConnected)
|
||||
{
|
||||
initWebSocketHandler();
|
||||
@@ -178,9 +178,9 @@ void ControlDialog::slotOnConnectClicked()
|
||||
m_webSocketClient->webSocket()->close();
|
||||
}
|
||||
}
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " connect clicked, this=" << this;
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " connect clicked, this=" << this;
|
||||
updateConnectButton();
|
||||
TRACE_LOG() << Q_FUNC_INFO << " END, this=" << this;
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " END, this=" << this;
|
||||
}
|
||||
|
||||
void ControlDialog::slotOnLogoutClicked()
|
||||
@@ -190,7 +190,7 @@ void ControlDialog::slotOnLogoutClicked()
|
||||
m_webSocketClient->addReply((new LtsProjectionWorkstation::CTS::LogoutRequest(QUuid::createUuid().toString()))->toReplyMessage());
|
||||
m_webSocketClient->webSocket()->close();
|
||||
}
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " logout clicked, this=" << this;
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " logout clicked, this=" << this;
|
||||
updateConnectButton();
|
||||
}
|
||||
|
||||
@@ -210,7 +210,7 @@ void ControlDialog::slotOnWebSocketConnected()
|
||||
if (workspaceIdToUse.isEmpty())
|
||||
{
|
||||
workspaceIdToUse = QUuid::createUuid().toString();
|
||||
INFO_LOG() << "workspaceIdToUse " << workspaceIdToUse;
|
||||
INFO_LOG(m_logger) << "workspaceIdToUse " << workspaceIdToUse;
|
||||
}
|
||||
m_opmIfc->callWorkspaceSaveUnsaved(workspaceIdToUse);
|
||||
LtsUtils::OperatorSettings* opSettings = LtsUtils::OperatorSettings::getInstance();
|
||||
@@ -229,7 +229,7 @@ void ControlDialog::slotOnWebSocketConnected()
|
||||
|
||||
|
||||
|
||||
INFO_LOG() << " connect userId=" << userId
|
||||
INFO_LOG(m_logger) << " connect userId=" << userId
|
||||
<< ", with prio=" << user.projectionPriority()
|
||||
<< ", PwsWorkspace/Id='" << workspaceIdToUse << "'";
|
||||
|
||||
@@ -244,7 +244,7 @@ void ControlDialog::slotOnWebSocketConnected()
|
||||
|
||||
void ControlDialog::slotOnVncDisconnected()
|
||||
{
|
||||
INFO_LOG() << " slotOnVncDisconnected";
|
||||
INFO_LOG(m_logger) << " slotOnVncDisconnected";
|
||||
|
||||
if (m_webSocketClient)
|
||||
{
|
||||
@@ -255,7 +255,7 @@ void ControlDialog::slotOnVncDisconnected()
|
||||
if (!m_ui || !m_ui->pbnConnect)
|
||||
return;
|
||||
m_ui->pbnConnect->setEnabled(true);
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " VNC disconnected, this=" << this;
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " VNC disconnected, this=" << this;
|
||||
updateConnectButton();
|
||||
}
|
||||
|
||||
@@ -267,18 +267,18 @@ void ControlDialog::slotOnWebSocketDisconnected()
|
||||
m_isConnected = false;
|
||||
if (m_ui && m_ui->pbnConnect)
|
||||
m_ui->pbnConnect->setEnabled(true);
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " WEBSOCKET disconnected, this=" << this;
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " WEBSOCKET disconnected, this=" << this;
|
||||
updateConnectButton();
|
||||
}
|
||||
|
||||
|
||||
void ControlDialog::slotOnWebSocketError()
|
||||
{
|
||||
ERROR_LOG() << m_webSocketClient->webSocket()->errorString();
|
||||
ERROR_LOG(m_logger) << m_webSocketClient->webSocket()->errorString();
|
||||
LtsWidgets::LtsMessageDialog::showMessage(this, m_webSocketClient->webSocket()->errorString(), tr("Connection to the presentation workstation failed!"));
|
||||
m_isConnected = false;
|
||||
m_ui->pbnConnect->setEnabled(true);
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " VWEBSOCKET ERROR, this=" << this;
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " VWEBSOCKET ERROR, this=" << this;
|
||||
updateConnectButton();
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ void ControlDialog::slotCbxWorkstationsChanged()
|
||||
if (info.addresses().size() > 0)
|
||||
m_host = info.addresses().at(0);
|
||||
else
|
||||
ERROR_LOG() << "Address for host " << m_ui->cbxWorkstations->currentText() << " not found!";
|
||||
ERROR_LOG(m_logger) << "Address for host " << m_ui->cbxWorkstations->currentText() << " not found!";
|
||||
}
|
||||
|
||||
|
||||
@@ -324,14 +324,14 @@ void ControlDialog::fillCombobox()
|
||||
|
||||
void ControlDialog::updateConnectButton()
|
||||
{
|
||||
TRACE_LOG() << Q_FUNC_INFO << " START, this=" << this
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " START, this=" << this
|
||||
<< ", m_isConnected=" << m_isConnected
|
||||
<< ", pbnConnect->text()=" << m_ui->pbnConnect->text();
|
||||
if (!m_ui)
|
||||
return;
|
||||
m_ui->pbnConnect->setText(m_isConnected ? tr("Disonnect") : tr("Connect"));
|
||||
m_ui->pbnLogout->setEnabled(m_isConnected);
|
||||
TRACE_LOG() << Q_FUNC_INFO << " END, this=" << this
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << " END, this=" << this
|
||||
<< ", m_isConnected=" << m_isConnected
|
||||
<< ", pbnConnect->text()=" << m_ui->pbnConnect->text();
|
||||
}
|
||||
@@ -358,7 +358,7 @@ void ControlDialog::handleMessage(LtsWebSocket::AbstractClientMessage *message)
|
||||
LtsWidgets::LayoutArea::eDialogTab, false, false);
|
||||
}
|
||||
}
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " LoginSuccessful YES, this=" << this;
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " LoginSuccessful YES, this=" << this;
|
||||
m_isConnected = true;
|
||||
m_ui->pbnConnect->setEnabled(true);
|
||||
updateConnectButton();
|
||||
@@ -377,7 +377,7 @@ void ControlDialog::handleMessage(LtsWebSocket::AbstractClientMessage *message)
|
||||
}
|
||||
|
||||
LtsWidgets::LtsMessageDialog::showMessage(this, errMsg, tr("Login failed!"));
|
||||
DEBUG_LOG() << Q_FUNC_INFO << " LoginSuccessful NO, this=" << this;
|
||||
DEBUG_LOG(m_logger) << Q_FUNC_INFO << " LoginSuccessful NO, this=" << this;
|
||||
m_isConnected = false;
|
||||
m_ui->pbnConnect->setEnabled(true);
|
||||
updateConnectButton();
|
||||
@@ -388,13 +388,13 @@ void ControlDialog::handleMessage(LtsWebSocket::AbstractClientMessage *message)
|
||||
LtsProjectionWorkstation::STC::DedicatedDisconnect *disconnect = dynamic_cast<LtsProjectionWorkstation::STC::DedicatedDisconnect *>(message);
|
||||
if (disconnect)
|
||||
{
|
||||
INFO_LOG() << " DedicatedDisconnect.. "
|
||||
INFO_LOG(m_logger) << " DedicatedDisconnect.. "
|
||||
<< ", getOperatorId=" << LtsSessionData::LtsSessionData::getInstance()->getOperatorId()
|
||||
<< ", disconnect->userid()=" << disconnect->userid();
|
||||
if ( (disconnect->userid() != LtsSessionData::LtsSessionData::getInstance()->getOperatorId()) && m_isConnected)
|
||||
{
|
||||
slotOnWebSocketDisconnected();
|
||||
INFO_LOG() << " DedicatedDisconnect.. done";
|
||||
INFO_LOG(m_logger) << " DedicatedDisconnect.. done";
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ bool OperatorSettingsLoader::init(LtsSession::LtsSession *session)
|
||||
{
|
||||
if (!session->getFtc<OperatorManagement::DataInterface>(m_opmFtc))
|
||||
{
|
||||
ERROR_LOG() << "Failed to load OperatorManagement FTC!";
|
||||
ERROR_LOG(m_logger) << "Failed to load OperatorManagement FTC!";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
+2
@@ -29,6 +29,8 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
|
||||
NGL::INGLLogger &m_logger;
|
||||
bool loadOperatorRights();
|
||||
|
||||
LtsProjectionWorkstation::
|
||||
|
||||
+3
-3
@@ -72,7 +72,7 @@ void VncViewerDialog::retranslate()
|
||||
|
||||
void VncViewerDialog::handleServerCuttext(const QString &cutText)
|
||||
{
|
||||
DEBUG_LOG() << "Got cuttext: " << cutText;
|
||||
DEBUG_LOG(m_logger) << "Got cuttext: " << cutText;
|
||||
}
|
||||
|
||||
void VncViewerDialog::slotOnDisconnected()
|
||||
@@ -240,7 +240,7 @@ void VncRenderAreaWorker::onRfbFrameBufferUpdate(const QVector<RfbProtocol::RfbR
|
||||
{
|
||||
if (rect.pixelData.isEmpty())
|
||||
{
|
||||
WARNING_LOG() << "No valid vnc pixel data... skipping frame";
|
||||
WARNING_LOG(m_logger) << "No valid vnc pixel data... skipping frame";
|
||||
continue;
|
||||
}
|
||||
QImage img(reinterpret_cast<const unsigned char *>(rect.pixelData.data()),
|
||||
@@ -249,7 +249,7 @@ void VncRenderAreaWorker::onRfbFrameBufferUpdate(const QVector<RfbProtocol::RfbR
|
||||
QImage::Format_RGB32);
|
||||
if (img.isNull())
|
||||
{
|
||||
WARNING_LOG() << "Could not decode image data... skipping vnc frame";
|
||||
WARNING_LOG(m_logger) << "Could not decode image data... skipping vnc frame";
|
||||
continue;
|
||||
}
|
||||
painter.drawImage(QPoint(rect.xpos, rect.ypos), img);
|
||||
|
||||
+1
@@ -34,6 +34,7 @@ Q_SIGNALS:
|
||||
void newImageAvailable();
|
||||
void newScaleSizeAspectRatio(QSize s);
|
||||
private:
|
||||
NGL::INGLLogger &m_logger;
|
||||
QImage m_renderedImage;
|
||||
QImage m_scaledImage;
|
||||
mutable QMutex m_mutex;
|
||||
|
||||
Reference in new issue
Block a user