summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/systrace.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-08-15 17:02:25 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-08-15 17:02:25 +0000
commit426bfa8d037e458bd58a4c2dca82cbddae2a2f66 (patch)
treeae7250597cec8a9a1dcbd680e044204ca331cc27 /rbutil/rbutilqt/systrace.h
parent2402aecbb5eeb82c5920f9d837cd287581c11c05 (diff)
downloadrockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.tar.gz
rockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.tar.bz2
rockbox-426bfa8d037e458bd58a4c2dca82cbddae2a2f66.zip
rbutil: add a errorlog function into rbutil and the possibility to save a log if a error happens. (thanks to bluebrother for the trace functionality)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22329 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/systrace.h')
-rw-r--r--rbutil/rbutilqt/systrace.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/systrace.h b/rbutil/rbutilqt/systrace.h
new file mode 100644
index 0000000000..a8253ce9e6
--- /dev/null
+++ b/rbutil/rbutilqt/systrace.h
@@ -0,0 +1,47 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ *
+ * Copyright (C) 2007 by Dominik Riebeling
+ * $Id$
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+
+#ifndef SYSTRACE_H
+#define SYSTRACE_H
+
+#include <QtGui>
+#include "ui_systracefrm.h"
+
+class SysTrace : public QDialog
+{
+ Q_OBJECT
+ public:
+ SysTrace(QWidget *parent);
+ static void debug(QtMsgType type, const char* msg);
+
+ static QString getTrace() {return debugbuffer;}
+ private:
+ Ui::SysTraceFrm ui;
+ static QString debugbuffer;
+
+ private slots:
+ void save(void);
+ void refresh(void);
+
+};
+
+#endif
+