feat(摄像头登录状态):返回摄像头登录状态
This commit is contained in:
parent
3f1ffca856
commit
709b20ef53
|
@ -35,6 +35,8 @@ CameraLoopPlay::CameraLoopPlay(QWidget* parent)
|
|||
connect(this, &CameraLoopPlay::realPlaySignal, m_cameraThread, &CameraThread::realPlay);
|
||||
connect(this, &CameraLoopPlay::stopReadPlaySignal, m_cameraThread, &CameraThread::stopRealPlay);
|
||||
|
||||
connect(m_cameraThread, &CameraThread::loginResultSignal, this, &CameraLoopPlay::loginResult);
|
||||
|
||||
m_cameraLoopThread->start();
|
||||
|
||||
calendarTimerUpdater();
|
||||
|
@ -119,6 +121,14 @@ void CameraLoopPlay::changeWindowNumber(int index)
|
|||
}
|
||||
}
|
||||
|
||||
void CameraLoopPlay::loginResult(int a, int b)
|
||||
{
|
||||
if (a >= 0) {
|
||||
m_treeCameraItemList[b]->setIcon(
|
||||
QIcon(":/CameraLoopPlay/Resource/image/online.png"));
|
||||
}
|
||||
}
|
||||
|
||||
void CameraLoopPlay::addCameraWidgetToCameraFarmes(int rows, int cols)
|
||||
{
|
||||
// 清除已有的布局项
|
||||
|
|
|
@ -98,6 +98,12 @@ private slots:
|
|||
*/
|
||||
void changeWindowNumber(int index);
|
||||
|
||||
/**
|
||||
* @brief <EFBFBD>獗庫되쩌써벎.
|
||||
* @author XuChao (xxu715737@163.com)
|
||||
* @date 2024-10-24
|
||||
*/
|
||||
void loginResult(int a, int b);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ void CameraThread::login(QString strIP, QString strUser, QString strPwd, int hWn
|
|||
HWNDlogin.insert(hWndIndex, loginId);
|
||||
iIpcStartChan.insert(hWndIndex, struDeviceInfoV40.struDeviceV30.byStartChan);
|
||||
|
||||
emit loginResultSignal(loginId, hWndIndex);
|
||||
}
|
||||
|
||||
bool CameraThread::realPlay(HWND hWnd, int index)
|
||||
|
|
|
@ -22,7 +22,7 @@ public:
|
|||
~CameraThread();
|
||||
|
||||
signals:
|
||||
void loginResultSignal(long loginId, int iRealPlayHandle, int hWndIndex);
|
||||
void loginResultSignal(long loginId, int iRealPlayHandle);
|
||||
|
||||
public slots:
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue