summaryrefslogtreecommitdiff
path: root/rockworkd/libpebble/jskit/jskitconsole.h
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2016-02-11 23:55:16 +0100
committerAndrew Branson <andrew.branson@cern.ch>2016-02-11 23:55:16 +0100
commit29aaea2d80a9eb1715b6cddfac2d2aacf76358bd (patch)
tree012795b6bec16c72f38d33cff46324c9a0225868 /rockworkd/libpebble/jskit/jskitconsole.h
launchpad ~mzanetti/rockwork/trunk r87
Diffstat (limited to 'rockworkd/libpebble/jskit/jskitconsole.h')
-rw-r--r--rockworkd/libpebble/jskit/jskitconsole.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/rockworkd/libpebble/jskit/jskitconsole.h b/rockworkd/libpebble/jskit/jskitconsole.h
new file mode 100644
index 0000000..3896ae3
--- /dev/null
+++ b/rockworkd/libpebble/jskit/jskitconsole.h
@@ -0,0 +1,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