-
Notifications
You must be signed in to change notification settings - Fork 0
/
httpheadersscreen.h
38 lines (33 loc) · 1.06 KB
/
httpheadersscreen.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
#ifndef HTTPHEADERSSCREEN_H
#define HTTPHEADERSSCREEN_H
#include "Utils.h"
#include <QTableWidgetItem>
#include <QWidget>
#include <httprequest.h>
namespace Ui {
class HttpHeadersScreen;
}
class HttpHeadersScreen : public QWidget
{
Q_OBJECT
public:
explicit HttpHeadersScreen(int type,QWidget *parent = nullptr);
~HttpHeadersScreen();
QTableWidgetItem* firstColumn(QTableWidgetItem *item);
QTableWidgetItem *secondColumn(QTableWidgetItem *item);
bool tableItemIsEmpty(QTableWidgetItem *item);
void insertRowData(const QString &key, const QString &value, const QString &description);
void insertRowData(int index, const QString &key, const QString &value, const QString &description);
QMap<QString, QString>* getKeyValuePairs();
public slots:
void onTableWidgetItemChanged(QTableWidgetItem *item);
void onCellChanged(int row, int column);
private:
Ui::HttpHeadersScreen *ui;
const int type;
void init();
void setTypeLabelText();
void setupTableWidget();
Counter *counter = nullptr;
};
#endif // HTTPHEADERSSCREEN_H