xref: /haiku/src/servers/launch/Target.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2  * Copyright 2015, Axel Dörfler, axeld@pinc-software.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef TARGET_H
6 #define TARGET_H
7 
8 
9 #include "BaseJob.h"
10 
11 #include <Message.h>
12 
13 
14 using namespace BSupportKit;
15 
16 
17 class Target : public BaseJob {
18 public:
19 								Target(const char* name);
20 
21 			status_t			AddData(const char* name, BMessage& data);
22 			const BMessage&		Data() const
23 									{ return fData; }
24 
25 			bool				HasLaunched() const
26 									{ return fLaunched; }
27 			void				SetLaunched(bool launched);
28 
29 protected:
30 	virtual	status_t			Execute();
31 
32 private:
33 			BMessage			fData;
34 			bool				fLaunched;
35 };
36 
37 
38 #endif // TARGET_H
39