Win32 support
[dashstudio.git] / src / dash / network / parser / projectlistparser.h
blob8a2cb42c758429f76317e778650fef6df949e88f
1 /***************************************************************************
2 * Copyright (C) 2007 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 ***************************************************************************/
22 #ifndef DASH_NETWORK_PARSERPROJECTLISTPARSER_H
23 #define DASH_NETWORK_PARSERPROJECTLISTPARSER_H
25 #include <QString>
26 #include <yamf/common/xmlparser.h>
27 #include <dash/exports.h>
29 namespace Dash {
30 namespace Network {
31 namespace Parser {
33 /**
34 * @author David Cuadrado <krawek@gmail.com>
36 class DASH_EXPORT ProjectList : public YAMF::Common::XmlParser
38 public:
39 struct Project
41 QString name, author, description;
44 ProjectList();
45 ~ProjectList();
47 virtual bool startTag(const QString &tag, const YAMF::Common::XmlAttributes &atts);
48 virtual bool endTag(const QString &tag);
50 QList<Project> projects() const;
52 private:
53 struct Private;
54 Private *const d;
63 #endif