subsurface/qt-ui/usersurvey.h
Dirk Hohndel 827d4740c3 Better User Agent for Subsurface
This one is less verbose and very easy to parse. It's guaranteed to have
five components, separated by ':' with no other ':' in the string:

Subsurface:<version>:<PrettyOSName>:<appCpuArch[/osCpuArch]>:<UILang>

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-08-08 11:13:05 -07:00

31 lines
499 B
C++

#ifndef USERSURVEY_H
#define USERSURVEY_H
#include <QDialog>
class QNetworkAccessManager;
class QNetworkReply;
namespace Ui {
class UserSurvey;
}
class UserSurvey : public QDialog {
Q_OBJECT
public:
explicit UserSurvey(QWidget *parent = 0);
~UserSurvey();
static QString getVersion();
static QString getUserAgent();
private
slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void requestReceived();
private:
Ui::UserSurvey *ui;
QString os;
};
#endif // USERSURVEY_H