r573: no message
[ctsim.git] / src / backgroundmgr.h
index 7e95fae7b75daf75938363ee304c8292c9718e6a..3a91537c8a6610071a84b0291e470ed874343bce 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2001 Kevin Rosenberg
 **
-**  $Id: backgroundmgr.h,v 1.1 2001/02/22 15:00:20 kevin Exp $
+**  $Id: backgroundmgr.h,v 1.2 2001/02/22 18:22:40 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -59,20 +59,30 @@ class BackgroundManager : public wxMiniFrame
 private:
   DECLARE_DYNAMIC_CLASS(BackgroundManager)
 
+  wxCriticalSection m_criticalSection;
   BackgroundManagerCanvas* m_pCanvas;
   int m_iNumTasks;
-  std::vector<BackgroundTask*> m_vecpBackgroundTasks;
-  std::vector<wxGauge*> m_vecpGauges;
+
+  typedef std::vector<BackgroundTask*> TaskContainer;
+  typedef std::vector<wxGauge*>  GaugeContainer;
+  typedef std::vector<std::string*> StringContainer;
+  TaskContainer m_vecpBackgroundTasks;
+  GaugeContainer m_vecpGauges;
+  StringContainer m_vecpNames;
 
   void OnCloseWindow(wxCloseEvent& event);
 
 public:
   BackgroundManager ();
 
-  wxGauge* addTask (BackgroundTask* pTask, int iNumUnits);
+  wxGauge* addTask (BackgroundTask* pTask, int iNumUnits, const char* const pszTaskName);
   void taskDone (BackgroundTask* pTask);
   bool isCancelling (BackgroundTask* pTask);
 
+  TaskContainer& getTasks() { return m_vecpBackgroundTasks;}
+  GaugeContainer& getGauges() { return m_vecpGauges;}
+  StringContainer& getNames() { return m_vecpNames;}
+
   DECLARE_EVENT_TABLE()
 };