#ifndef JHW_CONSOLE_OUTPUT #define JHW_CONSOLE_OUTPUT #include #include #include namespace HeadlessSpecRunner { class ConsoleOutput : public QObject { Q_OBJECT public: ConsoleOutput(); void passed(const QString &specDetail); void failed(const QString &specDetail); std::ostream *outputIO; QStack successes; QStack failures; private: bool showColors; void green(); void clear(); void red(); }; } #endif