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

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 "libkdebugsettings_private_export.h"
0011 #include <QDebug>
0012 #include <QString>
0013 #include <QVector>
0014 
0015 struct LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT KdeLoggingCategory {
0016     KdeLoggingCategory();
0017     using List = QVector<KdeLoggingCategory>;
0018     Q_REQUIRED_RESULT bool operator==(const KdeLoggingCategory &other) const;
0019     Q_REQUIRED_RESULT bool operator!=(const KdeLoggingCategory &other) const;
0020     Q_REQUIRED_RESULT bool isValid() const;
0021 
0022     QString description;
0023     QString categoryName;
0024     QString identifierName;
0025     QString defaultSeverity;
0026 };
0027 LIBKDEBUGSETTINGS_EXPORT_TEST_EXPORT QDebug operator<<(QDebug debug, const KdeLoggingCategory &cat);
0028 Q_DECLARE_TYPEINFO(KdeLoggingCategory, Q_MOVABLE_TYPE);
0029 Q_DECLARE_METATYPE(KdeLoggingCategory)