From 30cb85c307b4c1273791721a782337742ade222c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 4 Oct 2006 21:45:20 +0000 Subject: Moved generic utility stuff to new library "raul". git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PortModel.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/libs/client/PortModel.h') diff --git a/src/libs/client/PortModel.h b/src/libs/client/PortModel.h index c4b08ce8..b9254b84 100644 --- a/src/libs/client/PortModel.h +++ b/src/libs/client/PortModel.h @@ -22,8 +22,8 @@ #include #include #include "ObjectModel.h" -#include "util/CountedPtr.h" -#include "util/Path.h" +#include "raul/SharedPtr.h" +#include "raul/Path.h" using std::string; using std::list; namespace Ingen { @@ -58,8 +58,8 @@ public: // Signals sigc::signal control_change_sig; ///< "Control" ports only - sigc::signal > connection_sig; - sigc::signal > disconnection_sig; + sigc::signal > connection_sig; + sigc::signal > disconnection_sig; private: friend class Store; @@ -86,15 +86,15 @@ private: inline void value(float f) { m_current_val = f; control_change_sig.emit(f); } - void add_child(CountedPtr c) { throw; } - void remove_child(CountedPtr c) { throw; } + void add_child(SharedPtr c) { throw; } + void remove_child(SharedPtr c) { throw; } // Prevent copies (undefined) PortModel(const PortModel& copy); PortModel& operator=(const PortModel& copy); - void connected_to(CountedPtr p) { ++m_connections; connection_sig.emit(p); } - void disconnected_from(CountedPtr p) { --m_connections; disconnection_sig.emit(p); } + void connected_to(SharedPtr p) { ++m_connections; connection_sig.emit(p); } + void disconnected_from(SharedPtr p) { --m_connections; disconnection_sig.emit(p); } Type m_type; @@ -104,7 +104,7 @@ private: size_t m_connections; }; -typedef list > PortModelList; +typedef list > PortModelList; } // namespace Client -- cgit v1.2.1