Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmlloggingcategory_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Pelagicore AG
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQMLLOGGINGCATEGORY_P_H
5#define QQMLLOGGINGCATEGORY_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qobject.h>
19#include <QtCore/qstring.h>
20#include <QtCore/qloggingcategory.h>
21
22#include <QtQml/qqmlparserstatus.h>
23#include <QtQml/qqml.h>
24#include <QtCore/private/qglobal_p.h>
25
26#include <memory>
27
29
31{
34
37 QML_NAMED_ELEMENT(LoggingCategory)
39
40public:
49
51 virtual ~QQmlLoggingCategory();
52
55 QString name() const;
56 void setName(const QString &name);
57
59
60 void classBegin() override;
61 void componentComplete() override;
62
63private:
64 QByteArray m_name;
65 std::unique_ptr<QLoggingCategory> m_category;
66 DefaultLogLevel m_defaultLogLevel = Debug;
67 bool m_initialized;
68};
69
71
72#endif // QQMLLOGGINGCATEGORY_H
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
void setDefaultLogLevel(DefaultLogLevel defaultLogLevel)
void setName(const QString &name)
QLoggingCategory * category() const
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
QQmlLoggingCategory(QObject *parent=nullptr)
\qmltype LoggingCategory\inqmlmodule QtQml
Q_ENUM(DefaultLogLevel)
DefaultLogLevel defaultLogLevel
void classBegin() override
Invoked after class creation, but before any properties have been set.
The QQmlParserStatus class provides updates on the QML parser state.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
@ QtCriticalMsg
Definition qlogging.h:32
@ QtInfoMsg
Definition qlogging.h:34
@ QtWarningMsg
Definition qlogging.h:31
@ QtFatalMsg
Definition qlogging.h:33
@ QtDebugMsg
Definition qlogging.h:30
GLuint name
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INTERFACES(x)