DebugSession.h 681 B

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