summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/systrace.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-03-23 22:07:17 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-03-23 22:07:17 +0000
commit56199d3dfba2c2454c1226fac5d98e84ecf11cd1 (patch)
tree8a8e2dd58e9bb13279aa4b3427cca46261c5fe1f /rbutil/rbutilqt/systrace.h
parent492fafe8792bf21f034d34bbef0e3d38383fa989 (diff)
downloadrockbox-56199d3dfba2c2454c1226fac5d98e84ecf11cd1.tar.gz
rockbox-56199d3dfba2c2454c1226fac5d98e84ecf11cd1.tar.bz2
rockbox-56199d3dfba2c2454c1226fac5d98e84ecf11cd1.zip
Save System Trace on exit and allow easy retrieval after restart.
The System Trace isn't preserved when quitting Rockbox Utility. Change this so the last trace is saved in the cache folder, and add a button to the trace window to allow easy saving it. Should help in cases where users have problems but restart Rockbox Utility before saving the trace. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25313 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/systrace.h')
-rw-r--r--rbutil/rbutilqt/systrace.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/systrace.h b/rbutil/rbutilqt/systrace.h
index a8253ce9e6..4e6206a886 100644
--- a/rbutil/rbutilqt/systrace.h
+++ b/rbutil/rbutilqt/systrace.h
@@ -31,14 +31,15 @@ class SysTrace : public QDialog
public:
SysTrace(QWidget *parent);
static void debug(QtMsgType type, const char* msg);
-
static QString getTrace() {return debugbuffer;}
+ static void save(QString filename = "");
private:
Ui::SysTraceFrm ui;
static QString debugbuffer;
private slots:
- void save(void);
+ void saveCurrentTrace(void);
+ void savePreviousTrace(void);
void refresh(void);
};