File indexing completed on 2022-09-27 16:31:47

0001 /*
0002     SPDX-FileCopyrightText: 2017-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 "libkdebugsettings_export.h"
0011 #include "loggingcategory.h"
0012 class LIBKDEBUGSETTINGS_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     Q_REQUIRED_RESULT bool start();
0024 
0025     Q_REQUIRED_RESULT QString fileName() const;
0026 
0027 private:
0028     LoggingCategory::List mListKde;
0029     LoggingCategory::List mListCustom;
0030     QString mFileName;
0031 };