Skip to content
Snippets Groups Projects
Commit 069d4b30 authored by hjk's avatar hjk
Browse files

debugger: tighten write accesss to BreakpointData

parent a66c8d35
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
namespace Debugger { namespace Debugger {
namespace Internal { namespace Internal {
class BreakpointMarker;
class BreakHandler : public QAbstractTableModel class BreakHandler : public QAbstractTableModel
{ {
Q_OBJECT Q_OBJECT
......
...@@ -43,8 +43,12 @@ typedef quint64 BreakpointId; // FIXME: make Internal. ...@@ -43,8 +43,12 @@ typedef quint64 BreakpointId; // FIXME: make Internal.
namespace Internal { namespace Internal {
class BreakpointMarker; class BreakWindow;
class BreakpointDialog;
class BreakHandler; class BreakHandler;
class BreakpointData;
QDataStream &operator>>(QDataStream& stream, BreakpointData &data);
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
// //
...@@ -78,13 +82,15 @@ enum BreakpointState ...@@ -78,13 +82,15 @@ enum BreakpointState
class BreakpointData class BreakpointData
{ {
private: private:
// Intentionally unimplemented. BreakpointData objects are supposed
// Intentionally unimplemented. // to be added to the BreakHandler soon after construction.
// Making it copyable is tricky because of the markers.
BreakpointData(const BreakpointData &); BreakpointData(const BreakpointData &);
void operator=(const BreakpointData &); void operator=(const BreakpointData &);
friend class BreakHandler; friend class BreakHandler; // This should be the only class manipulating data.
friend class BreakWindow; // FIXME: Remove.
friend class BreakpointDialog; // FIXME: Remove.
friend QDataStream &operator>>(QDataStream& stream, BreakpointData &data);
public: public:
BreakpointData(); BreakpointData();
...@@ -118,7 +124,7 @@ public: ...@@ -118,7 +124,7 @@ public:
static const char *throwFunction; static const char *throwFunction;
static const char *catchFunction; static const char *catchFunction;
//private: private:
// All setters return true on change. // All setters return true on change.
bool setUseFullPath(bool on); bool setUseFullPath(bool on);
bool setMarkerFileName(const QString &file); bool setMarkerFileName(const QString &file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment