diff options
author | David Robillard <d@drobilla.net> | 2006-10-04 21:45:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-04 21:45:20 +0000 |
commit | 30cb85c307b4c1273791721a782337742ade222c (patch) | |
tree | 020932d6f50ebbcd813c58f6f23e85a293587665 /src/libs/client/PortModel.h | |
parent | 32261ba465be203f973a0e126672b8d7188ba327 (diff) | |
download | ingen-30cb85c307b4c1273791721a782337742ade222c.tar.gz ingen-30cb85c307b4c1273791721a782337742ade222c.tar.bz2 ingen-30cb85c307b4c1273791721a782337742ade222c.zip |
Moved generic utility stuff to new library "raul".
git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PortModel.h')
-rw-r--r-- | src/libs/client/PortModel.h | 18 |
1 files changed, 9 insertions, 9 deletions
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 <list> #include <sigc++/sigc++.h> #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<void, float> control_change_sig; ///< "Control" ports only - sigc::signal<void, CountedPtr<PortModel> > connection_sig; - sigc::signal<void, CountedPtr<PortModel> > disconnection_sig; + sigc::signal<void, SharedPtr<PortModel> > connection_sig; + sigc::signal<void, SharedPtr<PortModel> > 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<ObjectModel> c) { throw; } - void remove_child(CountedPtr<ObjectModel> c) { throw; } + void add_child(SharedPtr<ObjectModel> c) { throw; } + void remove_child(SharedPtr<ObjectModel> c) { throw; } // Prevent copies (undefined) PortModel(const PortModel& copy); PortModel& operator=(const PortModel& copy); - void connected_to(CountedPtr<PortModel> p) { ++m_connections; connection_sig.emit(p); } - void disconnected_from(CountedPtr<PortModel> p) { --m_connections; disconnection_sig.emit(p); } + void connected_to(SharedPtr<PortModel> p) { ++m_connections; connection_sig.emit(p); } + void disconnected_from(SharedPtr<PortModel> p) { --m_connections; disconnection_sig.emit(p); } Type m_type; @@ -104,7 +104,7 @@ private: size_t m_connections; }; -typedef list<CountedPtr<PortModel> > PortModelList; +typedef list<SharedPtr<PortModel> > PortModelList; } // namespace Client |