コード例 #1
0
ファイル: frontend.cpp プロジェクト: choueric/kscope-4
/**
 * Reads data written on the standard error by the controlled process.
 * This is a private slot called attached to the readyReadStderr() signal of
 * the controlled process, which means that it is called whenever data is
 * ready to be read from the process' stream.
 * The method reads whatever data is queued, and sends it to be interpreted
 * by parseStderr().
 */
void Frontend::slotReadStderr(KProcess*, char* pBuffer, int nSize)
{
	
	// Do nothing if waiting for process to die
	if (m_bKilled)
		return;

	QString sBuf = QString::fromLatin1(pBuffer, nSize);
	parseStderr(sBuf);
}
コード例 #2
0
ファイル: frontend.cpp プロジェクト: AlexanderStein/kscope4
/**
 * Reads data written on the standard error by the controlled process.
 * This is a private slot called attached to the readyReadStderr() signal of
 * the controlled process, which means that it is called whenever data is
 * ready to be read from the process' stream.
 * The method reads whatever data is queued, and sends it to be interpreted
 * by parseStderr().
 */
void Frontend::slotReadStderr()
{
	QString sBuf;
	QByteArray ba = readAllStandardError();

	// Do nothing if waiting for process to die
	if (m_bKilled)
		return;

	sBuf.fromLatin1(ba.data(), ba.length());
	parseStderr(sBuf);
}