aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsloggingutils_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qqmljsloggingutils_p.h')
-rw-r--r--src/qmlcompiler/qqmljsloggingutils_p.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsloggingutils_p.h b/src/qmlcompiler/qqmljsloggingutils_p.h
index 683836ca6c..f124e6f9a7 100644
--- a/src/qmlcompiler/qqmljsloggingutils_p.h
+++ b/src/qmlcompiler/qqmljsloggingutils_p.h
@@ -23,6 +23,38 @@ QT_BEGIN_NAMESPACE
namespace QQmlJS {
+class LoggerCategoryPrivate;
+
+class Q_QMLCOMPILER_EXPORT LoggerCategory
+{
+ Q_DECLARE_PRIVATE(LoggerCategory)
+
+public:
+ LoggerCategory();
+ LoggerCategory(QString name, QString settingsName, QString description, QtMsgType level,
+ bool ignored = false, bool isDefault = false);
+ LoggerCategory(const LoggerCategory &);
+ LoggerCategory(LoggerCategory &&) noexcept;
+ LoggerCategory &operator=(const LoggerCategory &);
+ LoggerCategory &operator=(LoggerCategory &&) noexcept;
+ ~LoggerCategory();
+
+ QString name() const;
+ QString settingsName() const;
+ QString description() const;
+ QtMsgType level() const;
+ bool isIgnored() const;
+ bool isDefault() const;
+
+ LoggerWarningId id() const;
+
+ void setLevel(QtMsgType);
+ void setIgnored(bool);
+
+private:
+ std::unique_ptr<QQmlJS::LoggerCategoryPrivate> d_ptr;
+};
+
class LoggerCategoryPrivate
{
friend class QT_PREPEND_NAMESPACE(QQmlJS::LoggerCategory);