summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/systrace.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-11-03 11:08:18 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-11-04 23:32:52 +0100
commit4d2ce949b3b41f8bf0af446fa20205ddd229e579 (patch)
tree01fa19471d9831b296bea5d7049f765e38b30bbb /rbutil/rbutilqt/systrace.h
parent335ec75d60bba82f23fc47b20f9390e0cba9c9c5 (diff)
downloadrockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.gz
rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.bz2
rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.zip
Use cutelogger for Rockbox Utility internal trace.
Change tracing from qDebug() to use cutelogger, which is available under the LGPL2.1. This allows to automatically add filename and line number to the log, and also provides multiple log levels. Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
Diffstat (limited to 'rbutil/rbutilqt/systrace.h')
-rw-r--r--rbutil/rbutilqt/systrace.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/rbutil/rbutilqt/systrace.h b/rbutil/rbutilqt/systrace.h
index 092d115489..b0a6f70fa6 100644
--- a/rbutil/rbutilqt/systrace.h
+++ b/rbutil/rbutilqt/systrace.h
@@ -29,20 +29,12 @@ class SysTrace : public QDialog
Q_OBJECT
public:
SysTrace(QWidget *parent);
-#if QT_VERSION < 0x050000
- static void debug(QtMsgType type, const char* msg);
-#else
- static void debug(QtMsgType type, const QMessageLogContext &context, const QString &msg);
-#endif
- static QString getTrace() {return debugbuffer;}
+ static QString getTrace(void);
static void save(QString filename = "");
+ static void rotateTrace(void);
private:
- static void flush(void);
void changeEvent(QEvent *event);
Ui::SysTraceFrm ui;
- static QString debugbuffer;
- static QString lastmessage;
- static unsigned int repeat;
private slots:
void saveCurrentTrace(void);