3 This file is part of builder
4 Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
12 #include <sigc++/sigc++.h>
17 Actions are executed to rebuild targets.
22 /// Emitted when the action has finished
23 sigc::signal<void> signal_done;
28 Action(Builder &b): builder(b) { }
33 Checks whether the action is done and emits signal_done if it is. Returns 0
34 if the action has completed successfully, 1 if an error was encountered and
35 -1 if it is still executing.
37 virtual int check() = 0;
41 Annouces the action by printing out the package name, tool and target name.
43 void announce(const std::string &, const std::string &, const std::string &);