X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fstructs%2FFilterListStruct.h;h=e21606857a19cb34cbc6e8e3984aaa79e912fc43;hb=refs%2Fheads%2Fmaster;hp=aacc6c0fb5a96125ca22d5e90a80e8d453275897;hpb=a44e607fb5398c80c5de2629017865ae749e8fbf;p=PrivacyBrowserPC.git diff --git a/src/structs/FilterListStruct.h b/src/structs/FilterListStruct.h index aacc6c0..c732f56 100644 --- a/src/structs/FilterListStruct.h +++ b/src/structs/FilterListStruct.h @@ -1,24 +1,24 @@ -/* - * Copyright 2024 Soren Stoutner . +/* SPDX-License-Identifier: GPL-3.0-or-later + * SPDX-FileCopyrightText: 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. + * This program 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. + * This program 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 . + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . */ -#ifndef FILTERLISTSTRUCT_H -#define FILTERLISTSTRUCT_H +#ifndef FILTER_LIST_STRUCT_H +#define FILTER_LIST_STRUCT_H // Application headers. #include "EntryStruct.h" @@ -31,9 +31,17 @@ struct FilterListStruct { + // The strings. QString title; QString version; QString filePath; - std::forward_list mainBlockList; + + // The filter lists. + std::forward_list *mainAllowListPointer = new std::forward_list; + std::forward_list *initialDomainAllowListPointer = new std::forward_list; + std::forward_list *regularExpressionAllowListPointer = new std::forward_list; + std::forward_list *mainBlockListPointer = new std::forward_list; + std::forward_list *initialDomainBlockListPointer = new std::forward_list; + std::forward_list *regularExpressionBlockListPointer = new std::forward_list; }; #endif