-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrestify.h
78 lines (66 loc) · 1.61 KB
/
restify.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef RESTIFY_H
#define RESTIFY_H
#include <QtGui>
#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QTableWidget>
#include "highlighter.h"
QT_BEGIN_NAMESPACE
class QHBoxLayout;
class QVBoxLayout;
class QTabWidget;
class QComboBox;
class QLineEdit;
class QPushButton;
class QTextEdit;
QT_END_NAMESPACE
class Restify : public QWidget
{
Q_OBJECT
public:
Restify();
QString getMethod();
QString getUrl();
private slots:
void _request();
void _requestReply(QNetworkReply *reply);
void _toggleConfig();
void _toggleLaunchPad();
void _requestSample(const QString& link);
private:
void _setupRequest();
void _setupResponse();
void _setupLaunchPad();
void _setHeaders(const QList<QPair<QByteArray, QByteArray> > headers, QTableWidget *table);
QHBoxLayout *requestLayout;
QLabel *message;
QVBoxLayout *layout;
QComboBox *method;
QLineEdit *url;
QPushButton *submit;
QMovie *loadingMovie;
QLabel *loading;
QWidget *launchPad;
QVBoxLayout *launchPadLayout;
QLabel *launchPad_Vimeo;
QLabel *launchPad_GitHub;
QLabel *launchPad_Twitter;
QLabel *launchPad_Samples;
QLabel *launchPad_Samples_1;
QLabel *launchPad_Samples_2;
QLabel *launchPad_Samples_3;
QPushButton *gettingStarted;
QLabel *settings;
QTableWidget *configData;
QTableWidget *configHeaders;
QTabWidget *configLayout;
QTabWidget *responseLayout;
QTextEdit *responseContent;
Highlighter *highlighter;
QTableWidget *responseHeadersReceived, *responseHeadersSent;
QNetworkAccessManager *networkAccess;
QNetworkReply *requestReply;
};
#endif