Added support for multiple BTestHandlers in a BTestApp.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2205 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2002-12-09 12:47:37 +00:00
parent 5d9772d27f
commit 4afae676ad

View File

@ -4,6 +4,7 @@
#define _beos_test_app_h_
#include <Application.h>
#include <List.h>
#include <MessageQueue.h>
// TestHandler
@ -23,20 +24,25 @@ private:
class BTestApp : public BApplication {
public:
BTestApp(const char *signature);
virtual ~BTestApp();
status_t Init();
void Terminate();
virtual void ReadyToRun();
BTestHandler *CreateTestHandler();
bool DeleteTestHandler(BTestHandler *handler);
BTestHandler &Handler();
BTestHandler *TestHandlerAt(int32 index);
private:
static int32 _AppThreadStart(void *data);
private:
thread_id fAppThread;
BTestHandler fHandler;
BList fHandlers;
};
#endif // _beos_test_app_h_