UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-05-20)
usServerMainWindow.cpp
1 #include "usServerMainWindow.h"
2 
4 {
5  m_startStopButton = new QPushButton(QString("Start server"), this);
6  m_isStarted = false;
7 
8  connect(m_startStopButton, SIGNAL(clicked()), this, SLOT(startStopSlot()));
9 }
10 
12  delete m_startStopButton;
13 }
14 
16  if(m_isStarted) {
17  m_isStarted = false;
18  emit(stopServer());
19  }
20  else {
21  m_isStarted = true;
22  emit(startServer());
23  m_startStopButton->setText(QString("Stop server"));
24  }
25 }
usServerMainWindow(QObject *parent=0)