CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
33  virtual ~CmsShowTaskExecutorBase();
34 
35  // ---------- const member functions ---------------------
36 
37  // ---------- static member functions --------------------
38 
39  // ---------- member functions ---------------------------
40  void requestNextTask();
41  void doNextTask();
42 
43  virtual void startDoingTasks() = 0;
44 
45  sigc::signal<void> tasksCompleted_;
46 
47 protected:
48  virtual void doNextTaskImp() = 0;
49  virtual bool moreTasksAvailable() = 0;
50 
51 public:
52  CmsShowTaskExecutorBase(const CmsShowTaskExecutorBase&) = delete; // stop default
53 
54  const CmsShowTaskExecutorBase& operator=(const CmsShowTaskExecutorBase&) = delete; // stop default
55 private:
56  // ---------- member data --------------------------------
57  //TTimer* m_timer;
59 };
60 
61 #endif
const CmsShowTaskExecutorBase & operator=(const CmsShowTaskExecutorBase &)=delete
virtual bool moreTasksAvailable()=0
virtual void startDoingTasks()=0
virtual void doNextTaskImp()=0
sigc::signal< void > tasksCompleted_