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