Warning, file /utilities/kdebugsettings/src/loadcategoriesjob.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2016-2022 Laurent Montel <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 
0008 #pragma once
0009 
0010 #include "kdeloggingcategory.h"
0011 #include "libkdebugsettings_private_export.h"
0012 #include "loggingcategory.h"
0013 #include "renamecategory.h"
0014 
0015 class LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT LoadCategoriesJob
0016 {
0017 public:
0018     LoadCategoriesJob();
0019     void start();
0020     void setCategories(const KdeLoggingCategory::List &categories);
0021     void setRenamedCategories(const RenameCategory::List &renameCategories);
0022 
0023     Q_REQUIRED_RESULT LoggingCategory::List customCategories() const;
0024 
0025     Q_REQUIRED_RESULT LoggingCategory::List qtKdeCategories() const;
0026 
0027     void setFileName(const QString &filename);
0028     Q_REQUIRED_RESULT bool foundOverrideRule() const;
0029 
0030 private:
0031     KdeLoggingCategory::List mCategories;
0032     LoggingCategory::List mCustomCategories;
0033     LoggingCategory::List mQtKdeCategories;
0034     RenameCategory::List mRenameCategories;
0035     QString mFileName;
0036     bool mFoundOverrideRule = false;
0037 };