From 228279d6717e69ffd2d2a886244179635ac27c2b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jun 2006 03:17:16 +0000 Subject: Got store working directly through SigClientInterface git-svn-id: http://svn.drobilla.net/lad/grauph@22 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/gtk/GtkObjectController.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/progs/gtk/GtkObjectController.h') diff --git a/src/progs/gtk/GtkObjectController.h b/src/progs/gtk/GtkObjectController.h index 4a09b9c7..f80db6a4 100644 --- a/src/progs/gtk/GtkObjectController.h +++ b/src/progs/gtk/GtkObjectController.h @@ -22,7 +22,7 @@ #include "ObjectModel.h" #include "ObjectController.h" - +#include "util/CountedPtr.h" using std::string; @@ -44,7 +44,7 @@ class Controller; class GtkObjectController : public LibOmClient::ObjectController { public: - GtkObjectController(ObjectModel* model); + GtkObjectController(CountedPtr model); virtual ~GtkObjectController() {} /** Destroy object. @@ -54,9 +54,10 @@ public: */ virtual void destroy() = 0; +/* virtual void add_to_store() = 0; virtual void remove_from_store() = 0; - +*/ virtual void metadata_update(const string& key, const string& value); /** Rename object */ @@ -65,10 +66,10 @@ public: const Path& path() const { return m_model->path(); } - ObjectModel* model() const { return m_model; } + CountedPtr model() const { return m_model; } protected: - ObjectModel* m_model; ///< Model for this object + CountedPtr m_model; ///< Model for this object }; -- cgit v1.2.1