| 121 | } |
| 122 | |
| 123 | int CBackendDesktop::SetConnect(COperateDesktop *pOperate) |
| 124 | { |
| 125 | //qDebug(log) << "CBackendDesktop::SetConnect:" << pOperate; |
| 126 | Q_ASSERT(pOperate); |
| 127 | if(!pOperate) return -1; |
| 128 | |
| 129 | bool check = false; |
| 130 | check = connect(this, SIGNAL(sigServerName(const QString&)), |
| 131 | pOperate, SLOT(slotSetServerName(const QString&))); |
| 132 | Q_ASSERT(check); |
| 133 | check = connect(pOperate, SIGNAL(sigClipBoardChanged()), |
| 134 | this, SLOT(slotClipBoardChanged())); |
| 135 | Q_ASSERT(check); |
| 136 | check = connect(this, SIGNAL(sigSetClipboard(QMimeData*)), |
| 137 | pOperate, SLOT(slotSetClipboard(QMimeData*))); |
| 138 | Q_ASSERT(check); |
| 139 | #if HAVE_QT6_RECORD |
| 140 | if(pOperate) { |
| 141 | m_pParameterRecord = &pOperate->GetParameter()->m_Record; |
| 142 | check = connect(pOperate, SIGNAL(sigRecord(bool)), |
| 143 | this, SLOT(slotRecord(bool))); |
| 144 | Q_ASSERT(check); |
| 145 | |
| 146 | check = connect(pOperate, SIGNAL(sigRecordPause(bool)), |
| 147 | this, SLOT(slotRecordPause(bool))); |
| 148 | Q_ASSERT(check); |
| 149 | check = connect( |
| 150 | &m_Recorder, |
| 151 | SIGNAL(recorderStateChanged(QMediaRecorder::RecorderState)), |
| 152 | pOperate, SLOT(slotRecorderStateChanged(QMediaRecorder::RecorderState))); |
| 153 | Q_ASSERT(check); |
| 154 | } |
| 155 | #endif |
| 156 | return 0; |
| 157 | } |
| 158 | |
| 159 | int CBackendDesktop::SetViewer(CFrmViewer *pView) |
| 160 | { |
nothing calls this directly
no test coverage detected