Added socket to Package::Source
[dashstudio.git] / src / dashserver / package.h
blob4cf328ebcd84714a005eb7a6a924edcdf98d8d70
1 /***************************************************************************
2 * Copyright (C) 2006 by David Cuadrado *
3 * krawek@gmail.com *
4 * *
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. *
9 * *
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. *
14 * *
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 ***************************************************************************/
21 #ifndef SERVERPACKAGE_H
22 #define SERVERPACKAGE_H
24 #include <dashserver/exports.h>
25 #include <dash/network/package/source.h>
27 namespace DashServer {
28 class Connection;
31 namespace DashServer {
33 /**
34 * @author David Cuadrado <krawek@gmail.com>
36 class DASHSERVER_EXPORT Package : public Dash::Network::Package::Source
38 public:
39 Package(const QString &root, const QString &xml, DashServer::Connection *cnx);
40 ~Package();
42 DashServer::Connection *source() const;
44 private:
45 struct Private;
46 Private *const d;
51 #endif