CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsShowTaskExecutorBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowTaskExecutorBase_h
2 #define Fireworks_Core_CmsShowTaskExecutorBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowTaskExecutorBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Jul 11 12:09:38 EDT 2008
19 // $Id: CmsShowTaskExecutorBase.h,v 1.6 2009/01/23 21:35:42 amraktad Exp $
20 //
21 
22 // system include files
23 #include <sigc++/signal.h>
24 
25 // user include files
26 
27 // forward declarations
28 class TTimer;
29 class CmsShowTaskTimer;
30 
32 
33 public:
35  virtual ~CmsShowTaskExecutorBase();
36 
37  // ---------- const member functions ---------------------
38 
39  // ---------- static member functions --------------------
40 
41  // ---------- member functions ---------------------------
42  void requestNextTask();
43  void doNextTask();
44 
45  virtual void startDoingTasks()=0;
46 
47  sigc::signal<void> tasksCompleted_;
48 
49 protected:
50  virtual void doNextTaskImp() = 0;
51  virtual bool moreTasksAvailable() = 0;
52 private:
53  CmsShowTaskExecutorBase(const CmsShowTaskExecutorBase&); // stop default
54 
55  const CmsShowTaskExecutorBase& operator=(const CmsShowTaskExecutorBase&); // stop default
56 
57  // ---------- member data --------------------------------
58  //TTimer* m_timer;
60 };
61 
62 
63 #endif
const CmsShowTaskExecutorBase & operator=(const CmsShowTaskExecutorBase &)
virtual bool moreTasksAvailable()=0
virtual void startDoingTasks()=0
virtual void doNextTaskImp()=0
sigc::signal< void > tasksCompleted_