forked from qt-creator/qt-creator
Implement ProcessLauncher::processId()
Implement the reply confirmation for the started signal. After qtcreator_processlauncher starts a new process we connect to its started() signal and post a reply through the socket to the LauncherInterface with the information about the new PID. ProcessLauncherImpl now emits the started signal with a delay, just after the confirmation has been received. Change-Id: I2689e8e97b17466bd1f6b32c01909c12d80fcdef Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -67,6 +67,22 @@ void StartProcessPacket::doDeserialize(QDataStream &stream)
|
||||
}
|
||||
|
||||
|
||||
ProcessStartedPacket::ProcessStartedPacket(quintptr token)
|
||||
: LauncherPacket(LauncherPacketType::ProcessStarted, token)
|
||||
{
|
||||
}
|
||||
|
||||
void ProcessStartedPacket::doSerialize(QDataStream &stream) const
|
||||
{
|
||||
stream << processId;
|
||||
}
|
||||
|
||||
void ProcessStartedPacket::doDeserialize(QDataStream &stream)
|
||||
{
|
||||
stream >> processId;
|
||||
}
|
||||
|
||||
|
||||
StopProcessPacket::StopProcessPacket(quintptr token)
|
||||
: LauncherPacket(LauncherPacketType::StopProcess, token)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user