// STL includes #include #include // QT includes #include // Dispmanx grabber includes #include static bool running = true; void signal_handler(int signum) { running = false; } int main(int argc, char** argv) { signal(SIGTERM, signal_handler); signal(SIGINT, signal_handler); int grabFlags = 0; int grabCount = -1; try { // create the option parser and initialize all parameters Parser parser("Simple application to send a command to hyperion using the Json interface"); ParameterSet & parameters = optionParser.getParameters(); QString flagDescr = QString("Set the grab flags of the dispmanx frame grabber [default: 0x%1]").arg(grabFlags, 8, 16, QChar('0')); Option & argFlags = parser.add