]> git.tdb.fi Git - builder.git/blobdiff - source/action.h
Replace per-file copyright notices with a single file
[builder.git] / source / action.h
index 5877e8947d4667270451298b323a6b64cd4eb03b..afe46976f7402a6d7eae75da99a03bb321b5a13d 100644 (file)
@@ -15,19 +15,24 @@ public:
        /// Emitted when the action has finished
        sigc::signal<void> signal_done;
        
-       /**
-       Checks whether the action is done and emits signal_done if it is.
-
-       @return  0 on successful completion, 1 on error, -1 if the action is still
-                executing
-       */
-       virtual int check()=0;
-       
-       virtual ~Action() { }
 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 &);
 };