summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchModel.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-15 23:34:41 +0000
committerDavid Robillard <d@drobilla.net>2008-08-15 23:34:41 +0000
commitab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5 (patch)
tree9e235f0c3b7a355e3cc661720359cd3d9eb18fb9 /src/libs/client/PatchModel.hpp
parent4d5a589570a65d508170c59b4c738b441e216a93 (diff)
downloadingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.tar.gz
ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.tar.bz2
ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.zip
Push serialiser down into core ('world').
HTTP access to patches (serialised on demand). git-svn-id: http://svn.drobilla.net/lad/ingen@1393 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchModel.hpp')
-rw-r--r--src/libs/client/PatchModel.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libs/client/PatchModel.hpp b/src/libs/client/PatchModel.hpp
index c73c60a3..62b9db44 100644
--- a/src/libs/client/PatchModel.hpp
+++ b/src/libs/client/PatchModel.hpp
@@ -33,7 +33,7 @@ using std::list; using std::string;
namespace Ingen {
namespace Client {
-class Store;
+class ClientStore;
/** Client's model of a patch.
@@ -62,7 +62,9 @@ public:
signal_editable.emit(e);
} }
- unsigned child_name_offset(const string& base_name) const;
+ static unsigned child_name_offset(ClientStore& store,
+ SharedPtr<PatchModel> parent,
+ const string& base_name);
// Signals
sigc::signal<void, SharedPtr<NodeModel> > signal_new_node;
@@ -75,10 +77,10 @@ public:
sigc::signal<void, bool> signal_editable;
private:
- friend class Store;
+ friend class ClientStore;
- PatchModel(Store& store, const Path& patch_path, size_t internal_poly)
- : NodeModel(store, "ingen:Patch", patch_path, false) // FIXME
+ PatchModel(const Path& patch_path, size_t internal_poly)
+ : NodeModel("ingen:Patch", patch_path, false) // FIXME
, _enabled(false)
, _poly(internal_poly)
, _editable(true)