summaryrefslogtreecommitdiffstats
path: root/src/shared-lib/qmllogger.h
blob: 72b3d16291525ce8f49665f341cd2e7b25291df7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (C) 2021 The Qt Company Ltd.
// Copyright (C) 2019 Luxoft Sweden AB
// Copyright (C) 2018 Pelagicore AG
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef QMLLOGGER_H
#define QMLLOGGER_H

#include <QtAppManShared/qtappmansharedglobal.h>
#include <QtCore/QObject>
#include <QtQml/QQmlEngine>

QT_BEGIN_NAMESPACE_AM

class Q_APPMANSHARED_EXPORT QmlLogger : public QObject
{
    Q_OBJECT

public:
    explicit QmlLogger(QQmlEngine *engine = nullptr);

private Q_SLOTS:
    void warnings(const QList<QQmlError> &list);
};

QT_END_NAMESPACE_AM

#endif // QMLLOGGER_H