Commit 069d4b30 authored by hjk's avatar hjk
Browse files

debugger: tighten write accesss to BreakpointData

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