]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blob - src/dialogs/RequestDetailDialog.h
2d01aa64b44223a6e1a585b9fdf60ac5273b2244
[PrivacyBrowserPC.git] / src / dialogs / RequestDetailDialog.h
1  /*
2  * Copyright 2024 Soren Stoutner <soren@stoutner.com>.
3  *
4  * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc/>.
5  *
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.
10  *
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.
15  *
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/>.
18  */
19
20 #ifndef REQUEST_DETAIL_DIALOG_H
21 #define REQUEST_DETAIL_DIALOG_H
22
23 // Application headers.
24 #include "structs/RequestStruct.h"
25
26 // Qt toolkit headers.
27 #include <QCheckBox>
28 #include <QDialog>
29 #include <QLabel>
30 #include <QTableWidget>
31
32 class RequestDetailDialog : public QDialog
33 {
34     // Include the Q_OBJECT macro.
35     Q_OBJECT
36
37 public:
38     // The primary constructor.
39     explicit RequestDetailDialog(QWidget *parentWidgetPointer, QTableWidget *tableWidgetPointer, const int initialRow);
40
41 private Q_SLOTS:
42     // The private slots.
43     void next();
44     void previous();
45
46 private:
47     // The private variables.
48     QLineEdit *appliedEntryListLineEditPointer;
49     QLineEdit *appliedFilterOptionsLineEditPointer;
50     int currentRow;
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;
89
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);
95 };
96 #endif