forked from qt-creator/qt-creator
Extend ioutputparser interface to improve testability
This commit is contained in:
@@ -34,7 +34,6 @@ namespace ProjectExplorer {
|
||||
|
||||
IOutputParser::IOutputParser() : m_parser(0)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
IOutputParser::~IOutputParser()
|
||||
@@ -57,6 +56,18 @@ void IOutputParser::appendOutputParser(IOutputParser *parser)
|
||||
this, SLOT(taskAdded(ProjectExplorer::TaskWindow::Task)));
|
||||
}
|
||||
|
||||
IOutputParser *IOutputParser::takeOutputParserChain()
|
||||
{
|
||||
IOutputParser *parser = m_parser;
|
||||
m_parser = 0;
|
||||
return parser;
|
||||
}
|
||||
|
||||
IOutputParser *IOutputParser::childParser() const
|
||||
{
|
||||
return m_parser;
|
||||
}
|
||||
|
||||
void IOutputParser::stdOutput(const QString &line)
|
||||
{
|
||||
if (m_parser)
|
||||
|
||||
Reference in New Issue
Block a user