ready: trans file ready code.

This commit is contained in:
2025-06-16 23:41:35 +08:00
parent 02d163ccb7
commit 33b8a37719
11 changed files with 169 additions and 58 deletions

View File

@@ -1,4 +1,4 @@
#include "ClientCore.h"
#include "ClientCore.h"
#include <QDebug>
@@ -99,7 +99,7 @@ void ClientCore::UseFrame(QSharedPointer<FrameBuffer> frame)
break;
}
default:
qWarning() << QString(tr("unknown frame type: %1")).arg(frame->type);
frameCall_[static_cast<uint32_t>(frame->type)](frame);
break;
}
}
@@ -150,7 +150,7 @@ void ClientCore::SetRemoteID(const QString& id)
remoteID_ = id;
}
void ClientCore::SetFrameCall(FrameBufferType type, const std::function<void(FrameBuffer*)>& call)
void ClientCore::SetFrameCall(FrameBufferType type, const std::function<void(QSharedPointer<FrameBuffer>)>& call)
{
frameCall_[type] = call;
}