6700
|
1 |
/*
|
|
2 |
* Hedgewars, a free turn based strategy game
|
6952
|
3 |
* Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
|
6700
|
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; version 2 of the License
|
|
8 |
*
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
* GNU General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef PAGE_FEEDBACK_H
|
|
20 |
#define PAGE_FEEDBACK_H
|
|
21 |
|
|
22 |
#include "AbstractPage.h"
|
|
23 |
|
8268
|
24 |
class QNetworkReply;
|
|
25 |
class QNetworkAccessManager;
|
|
26 |
|
6700
|
27 |
class PageFeedback : public AbstractPage
|
|
28 |
{
|
|
29 |
Q_OBJECT
|
|
30 |
|
|
31 |
public:
|
|
32 |
PageFeedback(QWidget * parent = 0);
|
8268
|
33 |
void EmbedSystemInfo();
|
|
34 |
void LoadCaptchaImage();
|
6700
|
35 |
|
|
36 |
QPushButton * BtnSend;
|
8328
|
37 |
QPushButton * BtnViewInfo;
|
|
38 |
QCheckBox * CheckSendSpecs;
|
6700
|
39 |
QLineEdit * summary;
|
|
40 |
QTextBrowser * description;
|
|
41 |
QLabel * info;
|
|
42 |
QLabel * label_summary;
|
|
43 |
QLabel * label_description;
|
8268
|
44 |
QLabel * label_captcha;
|
|
45 |
QLabel * label_email;
|
|
46 |
QLabel * label_captcha_input;
|
|
47 |
QLineEdit * captcha_code;
|
|
48 |
QLineEdit * email;
|
|
49 |
int captchaID;
|
8328
|
50 |
QString specs;
|
8330
|
51 |
|
8268
|
52 |
private slots:
|
8330
|
53 |
|
8268
|
54 |
virtual void NetReply(QNetworkReply*);
|
8328
|
55 |
virtual void ShowSpecs();
|
6700
|
56 |
|
|
57 |
private:
|
8328
|
58 |
void GenerateSpecs();
|
6700
|
59 |
QLayout * bodyLayoutDefinition();
|
|
60 |
QLayout * footerLayoutDefinition();
|
8268
|
61 |
QNetworkAccessManager * GetNetManager();
|
|
62 |
void ShowErrorMessage(const QString & msg);
|
6700
|
63 |
void connectSignals();
|
8268
|
64 |
|
|
65 |
QNetworkAccessManager * netManager;
|
|
66 |
QNetworkReply * captchaImageRequest;
|
|
67 |
QNetworkReply * genCaptchaRequest;
|
6700
|
68 |
};
|
|
69 |
|
|
70 |
#endif
|