patchbay interface
[ladish.git] / gui / project.hpp
blob353b7f566ec6eaaeef6b39f769120d23bdb0fdf3
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2008 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains interface of the project class
9 **************************************************************************
11 * LADI Session Handler is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * LADI Session Handler is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/>
23 * or write to the Free Software Foundation, Inc.,
24 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef PROJECT_HPP__C1D5778B_7D4B_4DD7_9B27_657D79B53083__INCLUDED
28 #define PROJECT_HPP__C1D5778B_7D4B_4DD7_9B27_657D79B53083__INCLUDED
30 struct project_impl;
31 class lash_proxy;
32 class lash_proxy_impl;
33 class lash_client;
35 class project
37 public:
38 project(
39 lash_proxy * lash_ptr,
40 const std::string& name);
42 ~project();
44 void
45 clear();
47 void
48 get_name(
49 std::string& name);
51 void
52 get_description(
53 std::string& description);
55 void
56 get_notes(
57 std::string& notes);
59 bool
60 get_modified_status();
62 void
63 get_clients(
64 std::list<boost::shared_ptr<lash_client> >& clients);
66 void
67 do_rename(
68 const std::string& name);
70 void
71 do_change_description(
72 const std::string& description);
74 void
75 do_change_notes(
76 const std::string& notes);
78 sigc::signal0<void> _signal_renamed;
79 sigc::signal0<void> _signal_modified_status_changed;
80 sigc::signal0<void> _signal_description_changed;
81 sigc::signal0<void> _signal_notes_changed;
82 sigc::signal1<void, boost::shared_ptr<lash_client> > _signal_client_added;
83 sigc::signal1<void, boost::shared_ptr<lash_client> > _signal_client_removed;
85 private:
86 friend class lash_proxy_impl;
88 void
89 on_name_changed(
90 const std::string& name);
92 void
93 on_modified_status_changed(
94 bool modified_status);
96 void
97 on_description_changed(
98 const std::string& description);
100 void
101 on_notes_changed(
102 const std::string& notes);
104 void
105 on_client_added(
106 boost::shared_ptr<lash_client> client_ptr);
108 void
109 on_client_removed(
110 const std::string& id);
112 project_impl * _impl_ptr;
115 #endif // #ifndef PROJECT_HPP__C1D5778B_7D4B_4DD7_9B27_657D79B53083__INCLUDED