File indexing completed on 2024-12-22 05:28:43
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include "libkdebugsettingscore_export.h" 0011 #include "loggingcategory.h" 0012 class LIBKDEBUGSETTINGSCORE_EXPORT SaveRulesJob 0013 { 0014 public: 0015 SaveRulesJob(); 0016 ~SaveRulesJob() = default; 0017 0018 void setListKde(const LoggingCategory::List &listKde); 0019 void setListCustom(const LoggingCategory::List &listCustom); 0020 0021 void setFileName(const QString &fileName); 0022 0023 [[nodiscard]] bool start(); 0024 0025 [[nodiscard]] QString fileName() const; 0026 0027 private: 0028 LoggingCategory::List mListKde; 0029 LoggingCategory::List mListCustom; 0030 QString mFileName; 0031 };