diff options
author | David Robillard <d@drobilla.net> | 2010-12-15 04:35:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-15 04:35:58 +0000 |
commit | 02dbee4a9bd8a02873b359cbc45e55f0b3de3973 (patch) | |
tree | e9270a04cf6d2ef9f896aef29d24b0dacd3e1ca9 /src/Project.cpp | |
parent | ef93b2e47870c95e9c9b547a23f9a4279a20451f (diff) | |
download | patchage-02dbee4a9bd8a02873b359cbc45e55f0b3de3973.tar.gz patchage-02dbee4a9bd8a02873b359cbc45e55f0b3de3973.tar.bz2 patchage-02dbee4a9bd8a02873b359cbc45e55f0b3de3973.zip |
Remove LashProxy dependency from Project.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2696 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Project.cpp')
-rw-r--r-- | src/Project.cpp | 42 |
1 files changed, 5 insertions, 37 deletions
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<Client> > 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); - } -} - |