#include #include using namespace std; extern int debugLevel; void debug(QString text, int level) { if (level & debugLevel) { cout << text.toStdString() << endl; } } void signal_handler(int signal) { cout << "Received signal " << signal << endl; }