| 1 | #ifndef DEBUGSESSION_H |
| 2 | #define DEBUGSESSION_H |
| 3 | |
| 4 | #include "DebuggerData.h" |
| 5 | #include "SymbolTable.h" |
| 6 | #include <QObject> |
| 7 | |
| 8 | class QXmlStreamReader; |
| 9 | |
| 10 | class DebugSession : public QObject |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | public: |
| 14 | DebugSession(); |
| 15 | |
| 16 | // session |
| 17 | void clear(); |
| 18 | void open(const QString& file); |
| 19 | bool save(); |
| 20 | bool saveAs(const QString& file); |
| 21 | bool existsAsFile() const; |
| 22 | const QString& filename() const; |
| 23 | bool isModified() const; |
| 24 | |
| 25 | Breakpoints& breakpoints(); |
| 26 | SymbolTable& symbolTable(); |
| 27 | |
| 28 | void sessionModified(); |
| 29 | |
| 30 | private: |
| 31 | void skipUnknownElement(QXmlStreamReader& ses); |
| 32 | |
| 33 | private: |
| 34 | Breakpoints breaks; |
| 35 | SymbolTable symTable; |
| 36 | QString fileName; |
| 37 | bool modified; |
| 38 | }; |
| 39 | |
| 40 | #endif // DEBUGSESSION_H |