X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdialogs%2FRequestsDialog.h;fp=src%2Fdialogs%2FRequestsDialog.h;h=dfa30062f2bd0b03d038da00cc70a3a390c013c4;hb=a44e607fb5398c80c5de2629017865ae749e8fbf;hp=0000000000000000000000000000000000000000;hpb=c5706a6ff3fbc42418e60b79fbe3f5c19396f7d2;p=PrivacyBrowserPC.git diff --git a/src/dialogs/RequestsDialog.h b/src/dialogs/RequestsDialog.h new file mode 100644 index 0000000..dfa3006 --- /dev/null +++ b/src/dialogs/RequestsDialog.h @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Soren Stoutner . + * + * This file is part of Privacy Browser PC . + * + * Privacy Browser PC is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Privacy Browser PC is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Privacy Browser PC. If not, see . + */ + +#ifndef REQUESTSDIALOG_H +#define REQUESTSDIALOG_H + +// Application headers. +#include "structs/RequestStruct.h" + +// Qt toolkit headers. +#include +#include + +class RequestsDialog : public QDialog +{ + // Include the Q_OBJECT macro. + Q_OBJECT + +public: + // The primary constructor. + explicit RequestsDialog(QWidget *parentWidgetPointer, QList *requestsListPointer); + +private Q_SLOTS: + void showRequestDetailDialog(int row); + void sortTable(int column, Qt::SortOrder sortOrder) const; + +private: + // The private variables. + QTableWidget *tableWidgetPointer; +}; +#endif