Xcos MVC: implement clone / delete on the Model side
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / DiagramAdapter.hxx
index 9d421eb..028eea8 100644 (file)
@@ -27,23 +27,22 @@ namespace view_scilab
 class DiagramAdapter : public BaseAdapter<DiagramAdapter, org_scilab_modules_scicos::model::Diagram>
 {
 public:
-    DiagramAdapter(const DiagramAdapter& o);
-    DiagramAdapter(org_scilab_modules_scicos::model::Diagram* o);
+    DiagramAdapter(bool ownAdaptee, org_scilab_modules_scicos::model::Diagram* adaptee);
     ~DiagramAdapter();
 
     static const std::wstring getSharedTypeStr()
     {
-        return L"Diagram";
+        return L"diagram";
     }
 
     std::wstring getTypeStr();
     std::wstring getShortTypeStr();
 
-    types::InternalType* getContrib() const;
-    void setContrib(types::InternalType* contrib);
+    types::InternalType* getContribContent() const;
+    void setContribContent(types::InternalType* v);
 
 private:
-    types::InternalType* contrib;
+    types::InternalType* contrib_content;
 };
 
 } /* namespace view_scilab */