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;
|
|
37 |
QLineEdit * summary;
|
|
38 |
QTextBrowser * description;
|
|
39 |
QLabel * info;
|
|
40 |
QLabel * label_summary;
|
|
41 |
QLabel * label_description;
|
8268
|
42 |
QLabel * label_captcha;
|
|
43 |
QLabel * label_email;
|
|
44 |
QLabel * label_captcha_input;
|
|
45 |
QLineEdit * captcha_code;
|
|
46 |
QLineEdit * email;
|
|
47 |
int captchaID;
|
|
48 |
|
|
49 |
private slots:
|
|
50 |
|
|
51 |
virtual void NetReply(QNetworkReply*);
|
6700
|
52 |
|
|
53 |
private:
|
|
54 |
QLayout * bodyLayoutDefinition();
|
|
55 |
QLayout * footerLayoutDefinition();
|
8268
|
56 |
QNetworkAccessManager * GetNetManager();
|
|
57 |
void ShowErrorMessage(const QString & msg);
|
6700
|
58 |
void connectSignals();
|
8268
|
59 |
|
|
60 |
QNetworkAccessManager * netManager;
|
|
61 |
QNetworkReply * captchaImageRequest;
|
|
62 |
QNetworkReply * genCaptchaRequest;
|
6700
|
63 |
};
|
|
64 |
|
|
65 |
#endif
|