Quit when requested from the menu
[ladish.git] / gui / lash_client.hpp
blobe2872e23a6c9670bc6c522acf27cc47eac5683a1
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 lash_client 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 LASH_CLIENT_HPP__BC03AD3F_8D6F_4D3A_95ED_ECDA8C929BCF__INCLUDED
28 #define LASH_CLIENT_HPP__BC03AD3F_8D6F_4D3A_95ED_ECDA8C929BCF__INCLUDED
30 struct lash_client_impl;
31 class lash_proxy;
32 class lash_proxy_impl;
33 class project;
35 class lash_client
37 public:
38 lash_client(
39 lash_proxy * lash_ptr,
40 project * project_ptr,
41 const std::string& id,
42 const std::string& name);
44 ~lash_client();
46 project *
47 get_project();
49 void
50 get_id(
51 std::string& id);
53 void
54 get_name(
55 std::string& name);
57 void
58 do_rename(
59 const std::string& name);
61 sigc::signal0<void> _signal_renamed;
63 private:
64 friend class lash_proxy_impl;
66 void
67 on_name_changed(
68 const std::string& name);
70 lash_client_impl * _impl_ptr;
73 #endif // #ifndef LASH_CLIENT_HPP__BC03AD3F_8D6F_4D3A_95ED_ECDA8C929BCF__INCLUDED