void CliContext::DebugReportChanged(const Team::DebugReportEvent& event) { if (event.GetFinalStatus() == B_OK) { printf("Successfully saved debug report to %s\n", event.GetReportPath()); } else { fprintf(stderr, "Failed to write debug report: %s\n", strerror( event.GetFinalStatus())); } _QueueEvent(new(std::nothrow) Event(EVENT_DEBUG_REPORT_CHANGED)); _SignalInputLoop(EVENT_DEBUG_REPORT_CHANGED); }
void TeamWindow::DebugReportChanged(const Team::DebugReportEvent& event) { BMessage message(MSG_DEBUG_REPORT_SAVED); message.AddString("path", event.GetReportPath()); PostMessage(&message); }
void CommandLineUserInterface::DebugReportChanged( const Team::DebugReportEvent& event) { printf("Successfully saved debug report to %s\n", event.GetReportPath()); if (fSaveReport) { fContext.QuitSession(true); // Release the Show() semaphore to signal Terminate(). release_sem(fShowSemaphore); } }