19 #ifndef PAGE_FEEDBACK_H |
19 #ifndef PAGE_FEEDBACK_H |
20 #define PAGE_FEEDBACK_H |
20 #define PAGE_FEEDBACK_H |
21 |
21 |
22 #include "AbstractPage.h" |
22 #include "AbstractPage.h" |
23 |
23 |
|
24 class QNetworkReply; |
|
25 class QNetworkAccessManager; |
|
26 |
24 class PageFeedback : public AbstractPage |
27 class PageFeedback : public AbstractPage |
25 { |
28 { |
26 Q_OBJECT |
29 Q_OBJECT |
27 |
30 |
28 public: |
31 public: |
29 PageFeedback(QWidget * parent = 0); |
32 PageFeedback(QWidget * parent = 0); |
|
33 void EmbedSystemInfo(); |
|
34 void LoadCaptchaImage(); |
30 |
35 |
31 QPushButton * BtnSend; |
36 QPushButton * BtnSend; |
|
37 QPushButton * BtnViewInfo; |
|
38 QCheckBox * CheckSendSpecs; |
32 QLineEdit * summary; |
39 QLineEdit * summary; |
33 QTextBrowser * description; |
40 QTextBrowser * description; |
34 QLabel * info; |
41 QLabel * info; |
35 QLabel * label_summary; |
42 QLabel * label_summary; |
36 QLabel * label_description; |
43 QLabel * label_description; |
|
44 QLabel * label_captcha; |
|
45 QLabel * label_email; |
|
46 QLabel * label_captcha_input; |
|
47 QLineEdit * captcha_code; |
|
48 QLineEdit * email; |
|
49 int captchaID; |
|
50 QString specs; |
|
51 |
|
52 private slots: |
|
53 |
|
54 virtual void NetReply(QNetworkReply*); |
|
55 virtual void ShowSpecs(); |
37 |
56 |
38 private: |
57 private: |
|
58 void GenerateSpecs(); |
39 QLayout * bodyLayoutDefinition(); |
59 QLayout * bodyLayoutDefinition(); |
40 QLayout * footerLayoutDefinition(); |
60 QLayout * footerLayoutDefinition(); |
|
61 QNetworkAccessManager * GetNetManager(); |
|
62 void ShowErrorMessage(const QString & msg); |
41 void connectSignals(); |
63 void connectSignals(); |
|
64 |
|
65 QNetworkAccessManager * netManager; |
|
66 QNetworkReply * captchaImageRequest; |
|
67 QNetworkReply * genCaptchaRequest; |
42 }; |
68 }; |
43 |
69 |
44 #endif |
70 #endif |