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
14using namespace BSupportKit;
15
16
17class Target : public BaseJob {
18public:
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
29protected:
30	virtual	status_t			Execute();
31
32private:
33			BMessage			fData;
34			bool				fLaunched;
35};
36
37
38#endif // TARGET_H
39