예제 #1
0
QVCT::EStatus CDeviceTcpSbs1::pause()
{
  if( bStarted )
  {
    bPaused = !bPaused;
  }
  qDebug( "DEBUG[%s]: Device successfully paused", Q_FUNC_INFO );
  emit signalOperatingMode( CDevice::PAUSE );
  return QVCT::OK;
}
예제 #2
0
QVCT::EStatus CDeviceTcpSbs1::stop()
{
  bPaused = false;
  if( bStarted )
  {
    pqTcpSocket->abort();
    qHashCallsign.clear();
    bStarted = false;
  }
  qDebug( "DEBUG[%s]: Device successfully stopped", Q_FUNC_INFO );
  emit signalOperatingMode( CDevice::STOP );
  return QVCT::OK;
}
예제 #3
0
void CDeviceDetailView::enableContent()
{
  if( poOverlayObject )
  {
    pqPushButtonEdit->setEnabled( true );
    pqPushButtonDelete->setEnabled( true );
    pqPushButtonStop->setEnabled( true );
    pqPushButtonPause->setEnabled( true );
    pqPushButtonStart->setEnabled( true );
    QObject::connect( (CDevice*)poOverlayObject, SIGNAL( signalOperatingMode(CDevice::EOperatingMode) ), this, SLOT( slotOperatingMode(CDevice::EOperatingMode) ) );
    QObject::connect( (CDevice*)poOverlayObject, SIGNAL( signalActivity() ), this, SLOT( slotActivity() ) );
    bIgnoreUpdate = false;
  }
}
예제 #4
0
void CDeviceTcpSbs1::slotTcpConnected()
{
  qDebug( "DEBUG[%s]: Device successfully started", Q_FUNC_INFO );
  bStarted = true;
  emit signalOperatingMode( CDevice::START );
}