forked from qt-creator/qt-creator
debugger: tighten write accesss to BreakpointData
This commit is contained in:
@@ -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.
|
|||||||
|
|
||||||
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
|
|||||||
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:
|
|||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user