Salome HOME
Copyright update 2022
[modules/med.git] / src / MEDCalc / gui / XmedConsoleDriver.hxx
index 4aca66a1852d413ab7d297e68ea5bdf24f39a5ec..cccda7e661ec59ae32719392cec445c25f5fa0b3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2011-2022  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #ifndef XMEDCONSOLEDRIVER_HXX
 #define XMEDCONSOLEDRIVER_HXX
 
-#include <SalomeApp_Application.h>
+#include "MEDCALCGUI.hxx"
+
 #include <PyConsole_Console.h>
 
 #include <QStringList>
 
-#include "MEDCALCGUI.hxx"
-
-typedef QList<QStringList> CommandsHistory;
+class MEDModule;
 
 class MEDCALCGUI_EXPORT XmedConsoleDriver {
 
 public:
-  XmedConsoleDriver(SalomeApp_Application * application);
+  XmedConsoleDriver(MEDModule* salomeModule);
 
   void setup();
   void exec(const QStringList& commands);
 
-  inline const CommandsHistory& getHistory() { return _history; }
-
 private:
+  MEDModule* _salomeModule;
   PyConsole_Console * _pyConsole;
   bool _importXmedDone;
-  CommandsHistory _history;
 };
 
 #endif //XMEDCONSOLEDRIVER_HXX