X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftags%2F0.61.08%2Fsrc%2Fgtkmm%2Fmodule.h;fp=synfig-studio%2Ftags%2F0.61.08%2Fsrc%2Fgtkmm%2Fmodule.h;h=e814bc49c0fbe04e7f54d5143697c5d2c8e38827;hb=79fcd5b32f0accf9f1d13f9b6ded0d628e6f4b33;hp=0000000000000000000000000000000000000000;hpb=c1f365570ac471ede0668ad976fad345747aa8de;p=synfig.git diff --git a/synfig-studio/tags/0.61.08/src/gtkmm/module.h b/synfig-studio/tags/0.61.08/src/gtkmm/module.h new file mode 100644 index 0000000..e814bc4 --- /dev/null +++ b/synfig-studio/tags/0.61.08/src/gtkmm/module.h @@ -0,0 +1,67 @@ +/* === S Y N F I G ========================================================= */ +/*! \file gtkmm/module.h +** \brief Template Header +** +** $Id$ +** +** \legal +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. +** +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. +** \endlegal +*/ +/* ========================================================================= */ + +/* === S T A R T =========================================================== */ + +#ifndef __SYNFIG_MODULE_H +#define __SYNFIG_MODULE_H + +/* === H E A D E R S ======================================================= */ + +#include + +/* === M A C R O S ========================================================= */ + +/* === T Y P E D E F S ===================================================== */ + +/* === C L A S S E S & S T R U C T S ======================================= */ + +namespace studio { + +class Module : public etl::shared_object +{ + bool status_; + +protected: + Module(); + +public: + virtual ~Module(); + + bool start(); + + bool stop(); + + bool get_status()const; + +protected: + + virtual bool start_vfunc()=0; + virtual bool stop_vfunc()=0; +}; + + +}; // END of namespace studio + +/* === E N D =============================================================== */ + +#endif