From 02dbee4a9bd8a02873b359cbc45e55f0b3de3973 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Dec 2010 04:35:58 +0000 Subject: Remove LashProxy dependency from Project. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2696 a436a847-0d15-0410-975c-d299462d15a1 --- src/Project.cpp | 42 +++++------------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) (limited to 'src/Project.cpp') diff --git a/src/Project.cpp b/src/Project.cpp index 0c19b8e..2e99727 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -17,14 +17,12 @@ */ #include "Project.hpp" -#include "LashProxy.hpp" #include "Client.hpp" using namespace std; using boost::shared_ptr; struct ProjectImpl { - LashProxy* proxy; string name; string description; string notes; @@ -32,18 +30,12 @@ struct ProjectImpl { list< shared_ptr > clients; }; -Project::Project(LashProxy* proxy, const string& name) +Project::Project(const string& name, const LoadedProjectProperties& properties) { - LoadedProjectProperties properties; - - proxy->get_loaded_project_properties(name, properties); - - _impl = new ProjectImpl(); - _impl->proxy = proxy; - _impl->name = name; - - _impl->description = properties.description; - _impl->notes = properties.notes; + _impl = new ProjectImpl(); + _impl->name = name; + _impl->description = properties.description; + _impl->notes = properties.notes; _impl->modified_status = properties.modified_status; } @@ -146,27 +138,3 @@ Project::on_notes_changed(const string& notes) _signal_notes_changed.emit(); } -void -Project::do_rename(const string& name) -{ - if (_impl->name != name) { - _impl->proxy->project_rename(_impl->name, name); - } -} - -void -Project::do_change_description(const string& description) -{ - if (_impl->description != description) { - _impl->proxy->project_set_description(_impl->name, description); - } -} - -void -Project::do_change_notes(const string& notes) -{ - if (_impl->notes != notes) { - _impl->proxy->project_set_notes(_impl->name, notes); - } -} - -- cgit v1.2.1