1 /***************************************************************************
2 * Copyright (C) 2007 by David Cuadrado *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
22 #ifndef DASHSERVER_PROJECTPROJECT_H
23 #define DASHSERVER_PROJECTPROJECT_H
25 #include <dash/project.h>
26 #include <dashserver/xdbms/object.h>
27 #include <dashserver/exports.h>
29 namespace DashServer
{
36 @author David Cuadrado <krawek@gmail.com>
38 class DASHSERVER_EXPORT Project
: public Dash::Project
, public XDBMS::Object
51 Project(QObject
*parent
= 0);
54 void execute(const QString
&xml
, DashServer::Connection
*source
);
55 void addClient(DashServer::Connection
*cnx
);
56 void removeClient(DashServer::Connection
*client
);
58 void sendToClient(DashServer::Connection
*client
);
61 QSet
<DashServer::Connection
*> members() const;
63 int clientCount() const;
71 QString
fileName() const;
73 void addMember(Member
*member
);
76 static QString
partName(int part
);
79 // QSet<QString> designers() const;
80 // void addDesigner(const QString &name);
82 // QSet<QString> owners() const;
83 // void addOwner(const QString &name);