1/* 2 * Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef DEBUGWINDOW_H 6#define DEBUGWINDOW_H 7 8 9#include <Bitmap.h> 10#include <Window.h> 11 12 13enum { 14 kActionKillTeam, 15 kActionDebugTeam, 16 kActionWriteCoreFile, 17 kActionSaveReportTeam, 18 kActionPromptUser 19}; 20 21 22//#define HANDOVER_USE_GDB 1 23#define HANDOVER_USE_DEBUGGER 1 24 25#define USE_GUI true 26 // define to false if the debug server shouldn't use GUI (i.e. an alert) 27 28class DebugWindow : public BWindow { 29public: 30 DebugWindow(const char* appName); 31 ~DebugWindow(); 32 33 void MessageReceived(BMessage* message); 34 int32 Go(); 35 36private: 37 static BRect IconSize(); 38 39private: 40 BBitmap fBitmap; 41 BButton* fOKButton; 42 sem_id fSemaphore; 43 int32 fAction; 44}; 45 46 47#endif /* !DEBUGWINDOW_H */ 48