blob: 3896ae3b499b2af793a284e07e5b3b3daa84eb1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef JSKITCONSOLE_H
#define JSKITCONSOLE_H
#include <QLoggingCategory>
class JSKitConsole : public QObject
{
Q_OBJECT
QLoggingCategory l;
public:
explicit JSKitConsole(QObject *parent=0);
Q_INVOKABLE void log(const QString &msg);
Q_INVOKABLE void warn(const QString &msg);
Q_INVOKABLE void error(const QString &msg);
Q_INVOKABLE void info(const QString &msg);
};
#endif // JSKITCONSOLE_H
|