2 * Copyright 2024 Soren Stoutner <soren@stoutner.com>.
4 * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc/>.
6 * Privacy Browser PC is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * Privacy Browser PC is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with Privacy Browser PC. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef REQUEST_DETAIL_DIALOG_H
21 #define REQUEST_DETAIL_DIALOG_H
23 // Application headers.
24 #include "structs/RequestStruct.h"
26 // Qt toolkit headers.
30 #include <QTableWidget>
32 class RequestDetailDialog : public QDialog
34 // Include the Q_OBJECT macro.
38 // The primary constructor.
39 explicit RequestDetailDialog(QWidget *parentWidgetPointer, QTableWidget *tableWidgetPointer, const int initialRow);
47 // The private variables.
48 QLineEdit *appliedEntryListLineEditPointer;
49 QLineEdit *appliedFilterOptionsLineEditPointer;
51 QLineEdit *dispositionLineEditPointer;
52 QLineEdit *domainLineEditPointer;
53 QLineEdit *domainListLineEditPointer;
54 QWidget *filterListEntryWidget;
55 QLineEdit *filterListLineEditPointer;
56 QLineEdit *finalMatchLineEditPointer;
57 QLineEdit *fontLineEditPointer;
58 QCheckBox *hasRequestOptionsCheckBoxPointer;
59 QLineEdit *imageLineEditPointer;
60 QLineEdit *initialMatchLineEditPointer;
61 QLineEdit *mainFrameLineEditPointer;
62 QLineEdit *mediaLineEditPointer;
63 QLineEdit *navigationTypeLineEditPointer;
64 QPalette negativeBackgroundPalette;
65 QPushButton *nextButtonPointer;
66 QPalette normalBackgroundPalette;
67 QLineEdit *objectLineEditPointer;
68 QLineEdit *originalEntryLineEditPointer;
69 QLineEdit *originalFilterOptionsLineEditPointer;
70 QLineEdit *otherLineEditPointer;
71 QLineEdit *pingLineEditPointer;
72 QPalette positiveBackgroundPalette;
73 QPushButton *previousButtonPointer;
74 QLineEdit *requestMethodLineEditPointer;
75 QLineEdit *requestUrlLineEditPointer;
76 QLineEdit *requestUrlWithSeparatorsLineEditPointer;
77 QLineEdit *resourceTypeLineEditPointer;
78 QLineEdit *scriptLineEditPointer;
79 QLineEdit *styleSheetLineEditPointer;
80 QLineEdit *subFrameLineEditPointer;
81 QLineEdit *sublistLineEditPointer;
82 QTableWidget *tableWidgetPointer;
83 QLineEdit *truncatedRequestUrlLineEditPointer;
84 QLineEdit *truncatedRequestUrlWithSeparatorsLineEditPointer;
85 QLineEdit *thirdPartyFilterLineEditPointer;
86 QLineEdit *thirdPartyRequestLineEditPointer;
87 QLineEdit *webPageUrlLineEditPointer;
88 QLineEdit *xmlHttpRequestLineEditPointer;
90 // The private functions.
91 void populateDialog(const int row);
92 void setFilterOptionBackgroundPalette(QLineEdit *lineEditPointer);
93 void setRequestUrlBackgroundPalettes(RequestUrlType matchedUrlType);
94 void setYesBackgroundPalette(QLineEdit *lineEditPointer);