X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Faction.h;fp=source%2Faction.h;h=0000000000000000000000000000000000000000;hb=338eefb513953ae55e8e3614c009c242ba8ad74e;hp=afe46976f7402a6d7eae75da99a03bb321b5a13d;hpb=dc00ddd224634c86f0a470f1f6f534be5d3e64a3;p=builder.git diff --git a/source/action.h b/source/action.h deleted file mode 100644 index afe4697..0000000 --- a/source/action.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef ACTION_H_ -#define ACTION_H_ - -#include -#include - -class Builder; - -/** -Actions are executed to rebuild targets. -*/ -class Action -{ -public: - /// Emitted when the action has finished - sigc::signal signal_done; - -protected: - Builder &builder; - - Action(Builder &b): builder(b) { } -public: - virtual ~Action() { } - - /** - Checks whether the action is done and emits signal_done if it is. Returns 0 - if the action has completed successfully, 1 if an error was encountered and - -1 if it is still executing. - */ - virtual int check() = 0; - -protected: - /** - Annouces the action by printing out the package name, tool and target name. - */ - void announce(const std::string &, const std::string &, const std::string &); -}; - -#endif