diff -r ca07e6be08d0 -r b2165583cdf5 QTfrontend/hwform.h --- a/QTfrontend/hwform.h Sat Jan 14 05:03:21 2012 +0100 +++ b/QTfrontend/hwform.h Sat Jan 14 05:05:53 2012 +0100 @@ -24,6 +24,10 @@ #include #include #include +#include +#include +#include +#include #include "netserver.h" #include "game.h" @@ -116,6 +120,15 @@ void onFrontendFullscreen(bool value); void Music(bool checked); void UpdateCampaignPage(int index); + //Starts the transmission process for the feedback + void SendFeedback(); + //Make a xml representation of the issue to be created + bool CreateIssueXml(); + //Called the first time when receiving authorization token from google, + //second time when receiving the response after posting the issue + void finishedSlot(QNetworkReply* reply); + //Filter the auth token from the reply from google + bool getAuthToken(QString str); void NetGameChangeStatus(bool isMaster); void NetGameMaster(); @@ -158,7 +171,8 @@ ID_PAGE_NETTYPE = 18, ID_PAGE_CAMPAIGN = 19, ID_PAGE_DRAWMAP = 20, - ID_PAGE_DATADOWNLOAD = 21 + ID_PAGE_DATADOWNLOAD = 21, + ID_PAGE_FEEDBACK = 22 }; QPointer game; QPointer pnetserver; @@ -172,6 +186,9 @@ BGWidget * wBackground; QSignalMapper * pageSwitchMapper; QByteArray m_lastDemo; + QNetworkAccessManager * nam; + QString issueXml; + QString authToken; QPropertyAnimation *animationNewSlide; QPropertyAnimation *animationOldSlide;