void QtConfrenceVideoWindow::setMediaState( const QString type, const UiMediaState state,bool isAudioSend) { if (type == UiStateTypeRecord) { if (!_recordCtrlPanel) { return; } setRecordState(state); } else { switch( state ) { case UiMediaState_Initializing: _mediaStateFrame->setHidden(false); break; case UiMediaState_Ready: _mediaStateFrame->setHidden(true); break; case UiMediaState_Run: { _mediaStateFrame->setHidden(true); if( type==UiStateTypeAudio ) { if(isAudioSend) { _stopAudioFrame->setHidden(true); } else { _stopRecvAudioFrame->setHidden(true); } } else { //_stopVideoFrame->setHidden(true); _videoStatuslabel->hide(); } break; } case UiMediaState_Stop: { _mediaStateFrame->setHidden(true); if( type==UiStateTypeAudio ) { if (isAudioSend) { _stopAudioFrame->setHidden(false); } else { _stopRecvAudioFrame->setHidden(false); } } else { //_stopVideoFrame->setHidden(false); _videoStatuslabel->show(); } break; } } // switch } // else }
Channel::Channel(const Channel& ch) { processor = ch.processor; isEventChannel = ch.isEventChannel; isEnabled = ch.isEnabled; isMonitored = false; isADCchannel = ch.isADCchannel; sampleRate = ch.sampleRate; bitVolts = ch.bitVolts; name = ch.name; eventType = ch.eventType; nodeId = ch.nodeId; num = ch.num; type = ch.type; originalStream = ch.originalStream; originalChannel = ch.originalChannel; setRecordState(false); }
Channel::Channel(const Channel& ch) { index = ch.index; nodeIndex = ch.nodeIndex; mappedIndex = ch.mappedIndex; nodeId = ch.nodeId; processor = ch.processor; sampleRate = ch.sampleRate; bitVolts = ch.bitVolts; type = ch.type; sourceNodeId = ch.sourceNodeId; isMonitored = ch.isMonitored; isEnabled = ch.isEnabled; recordIndex = ch.recordIndex; name = ch.name; probeId = ch.probeId; x = ch.x; y = ch.y; z = ch.z; impedance = ch.impedance; extraData = ch.extraData; setRecordState(false); }
void PmChart::recordStart() { if (activeTab()->startRecording()) setRecordState(true); }