xref: /haiku/src/apps/cortex/AddOnHost/AddOnHostApp.h (revision f37b1856a9945279cf14e783fb5bd4334ddfd43a)
1a0795c6fSMarcus Overhagen // cortex::NodeManager::AddOnHostApp.h
2a0795c6fSMarcus Overhagen // * PURPOSE
3a0795c6fSMarcus Overhagen //   Definition of (and provisions for communication with)
4a0795c6fSMarcus Overhagen //   a separate BApplication whose single responsibility is
5a0795c6fSMarcus Overhagen //   to launch nodes.  NodeManager-launched nodes run in
6a0795c6fSMarcus Overhagen //   another team, helping to lower the likelihood of a
7a0795c6fSMarcus Overhagen //   socially maladjusted young node taking you out.
8a0795c6fSMarcus Overhagen //
9a0795c6fSMarcus Overhagen // * HISTORY
10a0795c6fSMarcus Overhagen //   e.moon			6nov99
11*f37b1856SAxel Dörfler #ifndef NODE_MANAGER_ADD_ON_HOST_APP_H
12*f37b1856SAxel Dörfler #define NODE_MANAGER_ADD_ON_HOST_APP_H
13a0795c6fSMarcus Overhagen 
14*f37b1856SAxel Dörfler 
15*f37b1856SAxel Dörfler #include "cortex_defs.h"
16a0795c6fSMarcus Overhagen 
17a0795c6fSMarcus Overhagen #include <Application.h>
18a0795c6fSMarcus Overhagen #include <MediaAddOn.h>
19a0795c6fSMarcus Overhagen #include <MediaDefs.h>
20a0795c6fSMarcus Overhagen 
21*f37b1856SAxel Dörfler 
22a0795c6fSMarcus Overhagen __BEGIN_CORTEX_NAMESPACE
23a0795c6fSMarcus Overhagen namespace addon_host {
24a0795c6fSMarcus Overhagen 
25*f37b1856SAxel Dörfler class App:public BApplication {
26a0795c6fSMarcus Overhagen 	typedef	BApplication _inherited;
27a0795c6fSMarcus Overhagen 
28*f37b1856SAxel Dörfler 	public:
29a0795c6fSMarcus Overhagen 		~App();
30a0795c6fSMarcus Overhagen 		App();
31a0795c6fSMarcus Overhagen 
32*f37b1856SAxel Dörfler 	public:
33a0795c6fSMarcus Overhagen 		bool QuitRequested();
34*f37b1856SAxel Dörfler 		void MessageReceived(BMessage* message);
35a0795c6fSMarcus Overhagen 
36a0795c6fSMarcus Overhagen };
37a0795c6fSMarcus Overhagen 
38*f37b1856SAxel Dörfler }	// addon_host
39a0795c6fSMarcus Overhagen __END_CORTEX_NAMESPACE
401fb778c8SJérôme Duval 
41*f37b1856SAxel Dörfler #endif	// NODE_MANAGER_ADD_ON_HOST_APP_H
42