QTfrontend/hwform.h
changeset 6561 b2165583cdf5
parent 6477 ad5741c252b9
child 6572 0d0af531c1c7
equal deleted inserted replaced
6560:ca07e6be08d0 6561:b2165583cdf5
    22 #include <QMainWindow>
    22 #include <QMainWindow>
    23 #include <QStack>
    23 #include <QStack>
    24 #include <QTime>
    24 #include <QTime>
    25 #include <QPointer>
    25 #include <QPointer>
    26 #include <QPropertyAnimation>
    26 #include <QPropertyAnimation>
       
    27 #include <QUrl>
       
    28 #include <QNetworkReply>
       
    29 #include <QNetworkRequest>
       
    30 #include <QNetworkAccessManager>
    27 
    31 
    28 #include "netserver.h"
    32 #include "netserver.h"
    29 #include "game.h"
    33 #include "game.h"
    30 #include "ui_hwform.h"
    34 #include "ui_hwform.h"
    31 #include "SDLInteraction.h"
    35 #include "SDLInteraction.h"
   114     void CreateNetGame();
   118     void CreateNetGame();
   115     void UpdateWeapons();
   119     void UpdateWeapons();
   116     void onFrontendFullscreen(bool value);
   120     void onFrontendFullscreen(bool value);
   117     void Music(bool checked);
   121     void Music(bool checked);
   118     void UpdateCampaignPage(int index);
   122     void UpdateCampaignPage(int index);
       
   123     //Starts the transmission process for the feedback
       
   124     void SendFeedback();
       
   125     //Make a xml representation of the issue to be created
       
   126     bool CreateIssueXml();
       
   127     //Called the first time when receiving authorization token from google,
       
   128     //second time when receiving the response after posting the issue
       
   129     void finishedSlot(QNetworkReply* reply);
       
   130     //Filter the auth token from the reply from google
       
   131     bool getAuthToken(QString str);
   119 
   132 
   120     void NetGameChangeStatus(bool isMaster);
   133     void NetGameChangeStatus(bool isMaster);
   121     void NetGameMaster();
   134     void NetGameMaster();
   122     void NetGameSlave();
   135     void NetGameSlave();
   123 
   136 
   156         ID_PAGE_SCHEME          = 16,
   169         ID_PAGE_SCHEME          = 16,
   157         ID_PAGE_ADMIN           = 17,
   170         ID_PAGE_ADMIN           = 17,
   158         ID_PAGE_NETTYPE         = 18,
   171         ID_PAGE_NETTYPE         = 18,
   159         ID_PAGE_CAMPAIGN        = 19,
   172         ID_PAGE_CAMPAIGN        = 19,
   160         ID_PAGE_DRAWMAP         = 20,
   173         ID_PAGE_DRAWMAP         = 20,
   161         ID_PAGE_DATADOWNLOAD    = 21
   174         ID_PAGE_DATADOWNLOAD    = 21,
       
   175         ID_PAGE_FEEDBACK        = 22
   162         };
   176         };
   163     QPointer<HWGame> game;
   177     QPointer<HWGame> game;
   164     QPointer<HWNetServer> pnetserver;
   178     QPointer<HWNetServer> pnetserver;
   165     QPointer<HWNetRegisterServer> pRegisterServer;
   179     QPointer<HWNetRegisterServer> pRegisterServer;
   166     QPointer<HWTeam> editedTeam;
   180     QPointer<HWTeam> editedTeam;
   170     QStack<int> PagesStack;
   184     QStack<int> PagesStack;
   171     QTime eggTimer;
   185     QTime eggTimer;
   172     BGWidget * wBackground;
   186     BGWidget * wBackground;
   173     QSignalMapper * pageSwitchMapper;
   187     QSignalMapper * pageSwitchMapper;
   174     QByteArray m_lastDemo;
   188     QByteArray m_lastDemo;
       
   189     QNetworkAccessManager * nam;
       
   190     QString issueXml;
       
   191     QString authToken;
   175 
   192 
   176     QPropertyAnimation *animationNewSlide;
   193     QPropertyAnimation *animationNewSlide;
   177     QPropertyAnimation *animationOldSlide;
   194     QPropertyAnimation *animationOldSlide;
   178     QPropertyAnimation *animationNewOpacity;
   195     QPropertyAnimation *animationNewOpacity;
   179     QPropertyAnimation *animationOldOpacity;
   196     QPropertyAnimation *animationOldOpacity;