my log
[synfig.git] / synfig-studio / trunk / src / gtkmm / module.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file module.h
3 **      \brief Template Header
4 **
5 **      $Id: module.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_MODULE_H
25 #define __SYNFIG_MODULE_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include <ETL/handle>
30
31 /* === M A C R O S ========================================================= */
32
33 /* === T Y P E D E F S ===================================================== */
34
35 /* === C L A S S E S & S T R U C T S ======================================= */
36
37 namespace studio {
38
39 class Module : public etl::shared_object
40 {
41         bool status_;
42         
43 protected:
44         Module();
45
46 public:
47         virtual ~Module();
48
49         bool start();
50         
51         bool stop();
52         
53         bool get_status()const;
54
55 protected:
56         
57         virtual bool start_vfunc()=0;
58         virtual bool stop_vfunc()=0;
59 };
60
61         
62 }; // END of namespace studio
63
64 /* === E N D =============================================================== */
65
66 #endif