Initial checkin
[opensuse:qtobs.git] / buildstatxmlreader.h
1 /*
2  *  Qt OBS - A Qt based OBS client
3  *
4  *  Copyright (C) 2010 Novell Inc, Klaas Freitag <freitag@suse.de>
5  *
6  *  This program is free software: you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation, either version 2 of the License, or
9  *  (at your option) version 3.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  *
19  *  --
20  *  Written by Klaas Freitag <freitag@suse.de>
21  *  Contributors:
22  */
23
24 #ifndef BUILDSTATXMLREADER_H
25 #define BUILDSTATXMLREADER_H
26
27 #include "obsxmlreader.h"
28 #include "obsbuildresults.h"
29
30 class QIODevice;
31
32 class BuildStatXmlReader : public OBSXmlReader
33 {
34 public:
35   BuildStatXmlReader();
36
37   OBSProjectBuildResults buildResultList();
38
39   bool parse();
40
41 private:
42   QList<OBSPackageBuildResult> parsePackageBuildResults();
43   bool read(QIODevice *device);
44   OBSProjectBuildResults mProjectBuildResults;
45 };
46
47 #endif // BUILDSTATXMLREADER_H