provide python interpreter for mussa qui via a seperate thread
[mussa.git] / alg / mussa.hpp
index e85055d3bf6acb32338341909d422ec3e912e7a3..83e08cba7f7e42e8a32c9d092d2a516020d6a700 100644 (file)
@@ -13,7 +13,8 @@
 //                        ----------------------------------------
 //                          ---------- mussa_class.hh -----------
 //                        ----------------------------------------
-#include <QObject> 
+#include <QObject>
+#include <QString> 
 
 #include <boost/filesystem/path.hpp>
 #include <boost/shared_ptr.hpp>
 
 std::string int_to_str(int an_int);
 
+class Mussa;
+//! provide a simple name to point to our Mussa shared_ptr
+typedef boost::shared_ptr<Mussa> MussaRef;
+
 class Mussa : public QObject
 {
     Q_OBJECT 
 
 signals:
     //! call whatever signaling system we want
-    void progress(const std::string& description, int cur, int max);
+    void progress(const QString& description, int cur, int max);
     //! triggered when our state changes between unsaved(true) and saved(false)
     void isModified(bool);
 
@@ -49,6 +54,9 @@ public:
     Mussa();
     Mussa(const Mussa &);
 
+    //! dynamically construct a new Mussa object and return a reference to it
+    static MussaRef init();
+    
     //! save all of mussa
     void save(boost::filesystem::path save_path="");
     //! save the nway comparison
@@ -238,6 +246,4 @@ public:
     void seqcomp();
 
 };
-//! provide a simple name to point to our Mussa shared_ptr
-typedef boost::shared_ptr<Mussa> MussaRef;
 #endif