2008-07-03 21:50:57 +03:00
|
|
|
// -*- Mode: C++ ; indent-tabs-mode: t -*-
|
|
|
|
/* This file is part of Patchage.
|
|
|
|
* Copyright (C) 2008 Nedko Arnaudov <nedko@arnaudov.name>
|
|
|
|
*
|
|
|
|
* Patchage is free software; you can redistribute it and/or modify it under the
|
|
|
|
* terms of the GNU General Public License as published by the Free Software
|
|
|
|
* Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
* version.
|
|
|
|
*
|
|
|
|
* Patchage is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PROJECT_HPP__C1D5778B_7D4B_4DD7_9B27_657D79B53083__INCLUDED
|
|
|
|
#define PROJECT_HPP__C1D5778B_7D4B_4DD7_9B27_657D79B53083__INCLUDED
|
|
|
|
|
|
|
|
struct project_impl;
|
2008-07-04 23:53:03 +03:00
|
|
|
class lash_proxy;
|
|
|
|
class lash_proxy_impl;
|
2008-07-05 21:52:35 +03:00
|
|
|
class lash_client;
|
2008-07-03 21:50:57 +03:00
|
|
|
|
|
|
|
class project
|
|
|
|
{
|
|
|
|
public:
|
2008-07-03 23:27:11 +03:00
|
|
|
project(
|
2008-07-04 23:53:03 +03:00
|
|
|
lash_proxy * lash_ptr,
|
|
|
|
const string& name);
|
2008-07-03 23:27:11 +03:00
|
|
|
|
2008-07-03 21:50:57 +03:00
|
|
|
~project();
|
|
|
|
|
2008-07-06 19:44:47 +03:00
|
|
|
void
|
|
|
|
clear();
|
|
|
|
|
2008-07-03 21:50:57 +03:00
|
|
|
void
|
2008-07-03 23:27:11 +03:00
|
|
|
get_name(
|
|
|
|
string& name);
|
|
|
|
|
|
|
|
void
|
2008-07-05 02:04:31 +03:00
|
|
|
get_description(
|
|
|
|
string& description);
|
|
|
|
|
|
|
|
void
|
|
|
|
get_notes(
|
|
|
|
string& notes);
|
2008-07-03 21:50:57 +03:00
|
|
|
|
2008-07-04 01:54:41 +03:00
|
|
|
bool
|
|
|
|
get_modified_status();
|
|
|
|
|
2008-07-05 21:52:35 +03:00
|
|
|
void
|
|
|
|
get_clients(
|
|
|
|
list<shared_ptr<lash_client> >& clients);
|
|
|
|
|
2008-07-04 23:53:03 +03:00
|
|
|
void
|
|
|
|
do_rename(
|
|
|
|
const string& name);
|
2008-07-04 02:28:39 +03:00
|
|
|
|
2008-07-05 02:04:31 +03:00
|
|
|
void
|
|
|
|
do_change_description(
|
|
|
|
const string& description);
|
|
|
|
|
|
|
|
void
|
|
|
|
do_change_notes(
|
|
|
|
const string& notes);
|
|
|
|
|
2009-07-20 01:33:49 +03:00
|
|
|
signal0<void> _signal_renamed;
|
|
|
|
signal0<void> _signal_modified_status_changed;
|
|
|
|
signal0<void> _signal_description_changed;
|
|
|
|
signal0<void> _signal_notes_changed;
|
|
|
|
signal1<void, shared_ptr<lash_client> > _signal_client_added;
|
|
|
|
signal1<void, shared_ptr<lash_client> > _signal_client_removed;
|
2008-07-04 02:14:25 +03:00
|
|
|
|
2008-07-03 21:50:57 +03:00
|
|
|
private:
|
2008-07-04 23:53:03 +03:00
|
|
|
friend class lash_proxy_impl;
|
|
|
|
|
|
|
|
void
|
|
|
|
on_name_changed(
|
|
|
|
const string& name);
|
|
|
|
|
2008-08-01 12:32:17 +03:00
|
|
|
void
|
2008-07-04 23:53:03 +03:00
|
|
|
on_modified_status_changed(
|
|
|
|
bool modified_status);
|
|
|
|
|
2008-07-05 03:18:21 +03:00
|
|
|
void
|
|
|
|
on_description_changed(
|
|
|
|
const string& description);
|
|
|
|
|
|
|
|
void
|
|
|
|
on_notes_changed(
|
|
|
|
const string& notes);
|
|
|
|
|
2008-07-05 21:52:35 +03:00
|
|
|
void
|
|
|
|
on_client_added(
|
|
|
|
shared_ptr<lash_client> client_ptr);
|
|
|
|
|
|
|
|
void
|
|
|
|
on_client_removed(
|
|
|
|
const string& id);
|
|
|
|
|
2008-07-03 21:50:57 +03:00
|
|
|
project_impl * _impl_ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // #ifndef PROJECT_HPP__C1D5778B_7D4B_4DD7_9B27_657D79B53083__INCLUDED
|