X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fhelpers%2FFolderHelper.h;fp=src%2Fhelpers%2FFolderHelper.h;h=9248576c2920e86b7403a20ef0a2ec295e71c7c7;hp=0000000000000000000000000000000000000000;hb=29dbafaca706ea6a34cd881060ebf680378f39b4;hpb=3331f3d1a5d8924a67bcac2a2c842e15a421fea2 diff --git a/src/helpers/FolderHelper.h b/src/helpers/FolderHelper.h new file mode 100644 index 0000000..9248576 --- /dev/null +++ b/src/helpers/FolderHelper.h @@ -0,0 +1,40 @@ +/* + * Copyright 2023 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 FOLDERHELPER_H +#define FOLDERHELPER_H + +// Qt toolkit headers. +#include + +class FolderHelper +{ +public: + // The default constructor. + explicit FolderHelper(); + + // The public constants. + const int FOLDER_NAME_COLUMN = 0; + const int FOLDER_ID_COLUMN = 1; + + // The public functions. + void populateSubfolders(QTreeWidgetItem *treeWidgetItemPointer, const double initialParentFolderId); + void populateSubfoldersExcept(const double exceptSubfolderDatabaseId, QTreeWidgetItem *treeWidgetItemPointer, const double initialParentFolderId); +}; +#endif