Initial checkin
[opensuse:qtobs.git] / userxmlreader.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 USERXMLREADER_H
25 #define USERXMLREADER_H
26
27 #include "obsxmlreader.h"
28
29 class UserXmlReader : public OBSXmlReader
30 {
31 public:
32   UserXmlReader();
33
34   bool read(QIODevice *device);
35   bool parse() { return false; }
36
37   QString login() const;
38   QString email() const;
39   QString realName() const;
40
41 private:
42   void readUnknownElement();
43   void readUserXml();
44
45   QString mLogin;
46   QString mEmail;
47   QString mRealname;
48 };
49
50 #endif // USERXMLREADER_H