X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=badb073a85b921101d5f3323d85720b4908ec31d;hb=a832996c884a0e0acc9a38ba4dd258edb75ec7af;hp=b299e2a16024b2c0132eaa709e735c46e8cb5712;hpb=de6ac03ffc36843bbbb0d496007b3046a4422ee1;p=gldbg.git diff --git a/source/tool.h b/source/tool.h index b299e2a..badb073 100644 --- a/source/tool.h +++ b/source/tool.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of gldbg -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the GPL -*/ - #ifndef TOOL_H_ #define TOOL_H_ @@ -19,8 +12,9 @@ public: { protected: Factory(); - public: + virtual ~Factory() { } + virtual Tool *create(GlDbg &) const = 0; }; @@ -30,6 +24,8 @@ public: virtual ~Tool() { } virtual void decode(const char *, unsigned) = 0; + virtual void process_started() { } + virtual void process_stopped(int) { } static std::list &get_factories(); };