Add copying and licence information
[evehomescreen] / src / eveaccount.h
1 // Copyright (C) 2010 Jaakko Kyro <jkyro@korjaussarja.net>
2 // This file is licenced under GPL, see COPYING
3 // for full licence information
4 #ifndef EVEACCOUNT_H
5 #define EVEACCOUNT_H
6
7 #include <QObject>
8 #include <QIODevice>
9 #include <QXmlStreamReader>
10 #include <QPixmap>
11 #include <QNetworkReply>
12 #include <QNetworkConfigurationManager>
13
14 #include "eveskilltraining.h"
15 class EveCharacter : public QObject
16 {
17     Q_OBJECT
18 public:
19     explicit EveCharacter(QObject *parent = 0);
20     EveCharacter(const EveCharacter &aOther);
21     EveCharacter &operator=(const EveCharacter&other);
22     ~EveCharacter();
23     bool fromXml(QXmlStreamReader &xml);
24     bool fetchImage();
25 signals:
26     void imageLoaded();
27 public slots:
28     void imageReady();
29 public:
30     QString name;
31     QString corpName;
32     int characterId;
33     int corpId;
34     QPixmap *characterIcon;
35     EveSkillTraining currentSkill;
36 private:
37     QNetworkReply *m_reply;
38     QNetworkAccessManager mgr;
39 };
40
41 #endif // EVEACCOUNT_H