QTfrontend/ui/page/pagefeedback.h
changeset 8268 fe4e94311585
parent 6952 7f70f37bbf08
child 8328 03684c667664
equal deleted inserted replaced
8266:927da572bcdc 8268:fe4e94311585
    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;
    32         QLineEdit * summary;
    37         QLineEdit * summary;
    33         QTextBrowser * description;
    38         QTextBrowser * description;
    34         QLabel * info;
    39         QLabel * info;
    35         QLabel * label_summary;
    40         QLabel * label_summary;
    36         QLabel * label_description;
    41         QLabel * label_description;
       
    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*);
    37 
    52 
    38     private:
    53     private:
    39         QLayout * bodyLayoutDefinition();
    54         QLayout * bodyLayoutDefinition();
    40         QLayout * footerLayoutDefinition();
    55         QLayout * footerLayoutDefinition();
       
    56         QNetworkAccessManager * GetNetManager();
       
    57         void ShowErrorMessage(const QString & msg);
    41         void connectSignals();
    58         void connectSignals();
       
    59 
       
    60         QNetworkAccessManager * netManager;
       
    61         QNetworkReply * captchaImageRequest;
       
    62         QNetworkReply * genCaptchaRequest;
    42 };
    63 };
    43 
    64 
    44 #endif
    65 #endif