aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/registerpostmortemaction.h
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@nokia.com>2010-03-25 16:54:23 +0100
committerRobert Loehning <robert.loehning@nokia.com>2010-03-25 17:04:21 +0100
commit4dc3ead0d3e2562f60b3e52910dc8d321a66344a (patch)
tree9f2cc96faf80cb9657f29ebb0e9b4de491e0d0a5 /src/plugins/debugger/registerpostmortemaction.h
parent30517ab710944941b869cbfcece9dd722bdb77cd (diff)
Added an option to register Creator as post-mortem debugger.
Task-number: QTCREATORBUG-450
Diffstat (limited to 'src/plugins/debugger/registerpostmortemaction.h')
-rw-r--r--src/plugins/debugger/registerpostmortemaction.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/plugins/debugger/registerpostmortemaction.h b/src/plugins/debugger/registerpostmortemaction.h
new file mode 100644
index 0000000000..e8aef9e757
--- /dev/null
+++ b/src/plugins/debugger/registerpostmortemaction.h
@@ -0,0 +1,53 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+**
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+
+#ifndef REGISTERPOSTMORTEMACTION_H
+#define REGISTERPOSTMORTEMACTION_H
+
+#include "utils/savedaction.h"
+
+namespace Debugger {
+namespace Internal {
+
+class RegisterPostMortemAction : public Utils::SavedAction
+{
+ Q_OBJECT
+
+private:
+ Q_SLOT void registerNow(const QVariant &value);
+public:
+ RegisterPostMortemAction(QObject *parent = 0);
+ void readSettings(const QSettings *settings = 0);
+ Q_SLOT virtual void writeSettings(QSettings *) {}
+};
+
+} // namespace Internal
+} // namespace Debugger
+
+#endif // REGISTERPOSTMORTEMACTION_H