QVCT::EStatus CDeviceTcpSbs1::pause() { if( bStarted ) { bPaused = !bPaused; } qDebug( "DEBUG[%s]: Device successfully paused", Q_FUNC_INFO ); emit signalOperatingMode( CDevice::PAUSE ); return QVCT::OK; }
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; }
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; } }
void CDeviceTcpSbs1::slotTcpConnected() { qDebug( "DEBUG[%s]: Device successfully started", Q_FUNC_INFO ); bStarted = true; emit signalOperatingMode( CDevice::START ); }