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.hpp | |
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.hpp')
-rw-r--r-- | src/Project.hpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/Project.hpp b/src/Project.hpp index b31efa3..6b70a4e 100644 --- a/src/Project.hpp +++ b/src/Project.hpp @@ -25,13 +25,17 @@ #include <sigc++/signal.h> struct ProjectImpl; -class LashProxy; -class LashProxyImpl; class Client; +struct LoadedProjectProperties { + bool modified_status; + std::string description; + std::string notes; +}; + class Project { public: - Project(LashProxy* proxy, const std::string& name); + Project(const std::string& name, const LoadedProjectProperties& properties); ~Project(); @@ -45,10 +49,6 @@ public: const Clients& get_clients() const; bool get_modified_status() const; - void do_rename(const std::string& name); - void do_change_description(const std::string& description); - void do_change_notes(const std::string& notes); - sigc::signal<void> _signal_renamed; sigc::signal<void> _signal_modified_status_changed; sigc::signal<void> _signal_description_changed; @@ -57,9 +57,6 @@ public: sigc::signal< void, boost::shared_ptr<Client> > _signal_client_added; sigc::signal< void, boost::shared_ptr<Client> > _signal_client_removed; -private: - friend class LashProxyImpl; - void on_name_changed(const std::string& name); void on_modified_status_changed(bool modified_status); void on_description_changed(const std::string& description); @@ -67,6 +64,7 @@ private: void on_client_added(boost::shared_ptr<Client> client); void on_client_removed(const std::string& id); +private: ProjectImpl* _impl; }; |