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 //
20 
21 // system include files
22 #include <sigc++/signal.h>
23 
24 // user include files
25 
26 // forward declarations
27 class TTimer;
28 class CmsShowTaskTimer;
29 
31 
32 public:
34  virtual ~CmsShowTaskExecutorBase();
35 
36  // ---------- const member functions ---------------------
37 
38  // ---------- static member functions --------------------
39 
40  // ---------- member functions ---------------------------
41  void requestNextTask();
42  void doNextTask();
43 
44  virtual void startDoingTasks()=0;
45 
46  sigc::signal<void> tasksCompleted_;
47 
48 protected:
49  virtual void doNextTaskImp() = 0;
50  virtual bool moreTasksAvailable() = 0;
51 private:
52  CmsShowTaskExecutorBase(const CmsShowTaskExecutorBase&); // stop default
53 
54  const CmsShowTaskExecutorBase& operator=(const CmsShowTaskExecutorBase&); // stop default
55 
56  // ---------- member data --------------------------------
57  //TTimer* m_timer;
59 };
60 
61 
62 #endif
const CmsShowTaskExecutorBase & operator=(const CmsShowTaskExecutorBase &)
virtual bool moreTasksAvailable()=0
virtual void startDoingTasks()=0
virtual void doNextTaskImp()=0
sigc::signal< void > tasksCompleted_