18b8780bfSAxel Dörfler /* 28b8780bfSAxel Dörfler * Copyright 2015, Axel Dörfler, axeld@pinc-software.de. 38b8780bfSAxel Dörfler * Distributed under the terms of the MIT License. 48b8780bfSAxel Dörfler */ 58b8780bfSAxel Dörfler 68b8780bfSAxel Dörfler 78b8780bfSAxel Dörfler #include "Target.h" 88b8780bfSAxel Dörfler 98b8780bfSAxel Dörfler Target(const char * name)108b8780bfSAxel DörflerTarget::Target(const char* name) 118b8780bfSAxel Dörfler : 12*2ca4f3f8SAxel Dörfler BaseJob(name), 13*2ca4f3f8SAxel Dörfler fLaunched(false) 148b8780bfSAxel Dörfler { 158b8780bfSAxel Dörfler } 168b8780bfSAxel Dörfler 178b8780bfSAxel Dörfler 188b8780bfSAxel Dörfler status_t AddData(const char * name,BMessage & data)198b8780bfSAxel DörflerTarget::AddData(const char* name, BMessage& data) 208b8780bfSAxel Dörfler { 218b8780bfSAxel Dörfler return fData.AddMessage(name, &data); 228b8780bfSAxel Dörfler } 238b8780bfSAxel Dörfler 248b8780bfSAxel Dörfler 25*2ca4f3f8SAxel Dörfler void SetLaunched(bool launched)26*2ca4f3f8SAxel DörflerTarget::SetLaunched(bool launched) 27*2ca4f3f8SAxel Dörfler { 28*2ca4f3f8SAxel Dörfler fLaunched = launched; 29*2ca4f3f8SAxel Dörfler } 30*2ca4f3f8SAxel Dörfler 31*2ca4f3f8SAxel Dörfler 328b8780bfSAxel Dörfler status_t Execute()338b8780bfSAxel DörflerTarget::Execute() 348b8780bfSAxel Dörfler { 358b8780bfSAxel Dörfler return B_OK; 368b8780bfSAxel Dörfler } 37