Qt 4.8
|
The QScriptBreakpointData class contains data associated with a breakpoint. More...
#include <qscriptbreakpointdata_p.h>
Public Functions | |
QString | condition () const |
Returns the condition of the breakpoint. More... | |
QVariant | data () const |
Returns custom data associated with the breakpoint. More... | |
QString | fileName () const |
bool | hit () |
If the ignore count is 0, this function increments the hit count and returns true. More... | |
int | hitCount () const |
Returns the hit count of the breakpoint (the number of times the breakpoint has been triggered). More... | |
int | ignoreCount () const |
Returns the ignore count of the breakpoint. More... | |
bool | isEnabled () const |
Returns true if the breakpoint is enabled, false otherwise. More... | |
bool | isSingleShot () const |
Returns true if the breakpoint is single-shot, false otherwise. More... | |
bool | isValid () const |
int | lineNumber () const |
Returns the breakpoint line number. More... | |
bool | operator!= (const QScriptBreakpointData &other) const |
Returns true if this QScriptBreakpointData is not equal to the other data, otherwise returns false. More... | |
QScriptBreakpointData & | operator= (const QScriptBreakpointData &other) |
Assigns other to this QScriptBreakpointData. More... | |
bool | operator== (const QScriptBreakpointData &other) const |
Returns true if this QScriptBreakpointData is equal to the other data, otherwise returns false. More... | |
QScriptBreakpointData () | |
Constructs an empty QScriptBreakpointData. More... | |
QScriptBreakpointData (qint64 scriptId, int lineNumber) | |
Constructs a QScriptBreakpointData with the given lineNumber. More... | |
QScriptBreakpointData (const QString &fileName, int lineNumber) | |
Constructs a QScriptBreakpointData with the given lineNumber. More... | |
QScriptBreakpointData (const QScriptBreakpointData &other) | |
Constructs a QScriptBreakpointData that is a copy of other. More... | |
qint64 | scriptId () const |
void | setCondition (const QString &condition) |
Sets the condition of the breakpoint. More... | |
void | setData (const QVariant &data) |
Sets custom data associated with the breakpoint. More... | |
void | setEnabled (bool enabled) |
Sets the enabled state of the breakpoint. More... | |
void | setFileName (const QString &fileName) |
void | setIgnoreCount (int count) |
Sets the ignore count of the breakpoint. More... | |
void | setLineNumber (int lineNumber) |
Sets the breakpoint line number to lineNumber. More... | |
void | setScriptId (qint64 id) |
void | setSingleShot (bool singleShot) |
Sets the singleShot state of the breakpoint. More... | |
~QScriptBreakpointData () | |
Destroys this QScriptBreakpointData. More... | |
Properties | |
QScopedPointer< QScriptBreakpointDataPrivate > | d_ptr |
Friends | |
Q_AUTOTEST_EXPORT QDataStream & | operator<< (QDataStream &, const QScriptBreakpointData &) |
Writes the given data to the specified stream. More... | |
Q_AUTOTEST_EXPORT QDataStream & | operator>> (QDataStream &, QScriptBreakpointData &) |
Reads a QScriptBreakpointData from the specified stream into the given data. More... | |
The QScriptBreakpointData class contains data associated with a breakpoint.
Definition at line 66 of file qscriptbreakpointdata_p.h.
QScriptBreakpointData::QScriptBreakpointData | ( | ) |
Constructs an empty QScriptBreakpointData.
Definition at line 101 of file qscriptbreakpointdata.cpp.
QScriptBreakpointData::QScriptBreakpointData | ( | qint64 | scriptId, |
int | lineNumber | ||
) |
Constructs a QScriptBreakpointData with the given lineNumber.
Definition at line 110 of file qscriptbreakpointdata.cpp.
QScriptBreakpointData::QScriptBreakpointData | ( | const QString & | fileName, |
int | lineNumber | ||
) |
Constructs a QScriptBreakpointData with the given lineNumber.
Definition at line 120 of file qscriptbreakpointdata.cpp.
QScriptBreakpointData::QScriptBreakpointData | ( | const QScriptBreakpointData & | other | ) |
Constructs a QScriptBreakpointData that is a copy of other.
Definition at line 130 of file qscriptbreakpointdata.cpp.
QScriptBreakpointData::~QScriptBreakpointData | ( | ) |
Destroys this QScriptBreakpointData.
Definition at line 140 of file qscriptbreakpointdata.cpp.
QString QScriptBreakpointData::condition | ( | ) | const |
Returns the condition of the breakpoint.
Definition at line 280 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataToScriptValue(), QScriptBreakpointsModel::data(), QScriptDebuggerAgent::positionChange(), and setCondition().
QVariant QScriptBreakpointData::data | ( | ) | const |
Returns custom data associated with the breakpoint.
Definition at line 298 of file qscriptbreakpointdata.cpp.
Referenced by setData().
QString QScriptBreakpointData::fileName | ( | ) | const |
Definition at line 167 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsAboutToBeRemoved(), QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsDataChanged(), QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsInserted(), breakpointDataToScriptValue(), QScriptBreakpointsModel::data(), QScriptBreakpointData(), QScriptDebuggerAgent::setBreakpoint(), and setFileName().
bool QScriptBreakpointData::hit | ( | ) |
If the ignore count is 0, this function increments the hit count and returns true.
Otherwise, it decrements the ignore count and returns false.
Definition at line 256 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerAgent::positionChange().
int QScriptBreakpointData::hitCount | ( | ) | const |
Returns the hit count of the breakpoint (the number of times the breakpoint has been triggered).
Definition at line 271 of file qscriptbreakpointdata.cpp.
Referenced by QScriptBreakpointsModel::data().
int QScriptBreakpointData::ignoreCount | ( | ) | const |
Returns the ignore count of the breakpoint.
Definition at line 236 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataToScriptValue(), and QScriptBreakpointsModel::data().
bool QScriptBreakpointData::isEnabled | ( | ) | const |
Returns true if the breakpoint is enabled, false otherwise.
Definition at line 200 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsDataChanged(), breakpointDataToScriptValue(), QScriptBreakpointsModel::data(), and QScriptDebuggerAgent::positionChange().
bool QScriptBreakpointData::isSingleShot | ( | ) | const |
Returns true if the breakpoint is single-shot, false otherwise.
Definition at line 218 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataToScriptValue(), QScriptBreakpointsModel::data(), and QScriptDebuggerPrivate::debuggerEvent().
bool QScriptBreakpointData::isValid | ( | ) | const |
Definition at line 313 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute(), QScriptDebuggerBackend::setBreakpoint(), and QScriptBreakpointsModel::setData().
int QScriptBreakpointData::lineNumber | ( | ) | const |
Returns the breakpoint line number.
Definition at line 182 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsAboutToBeRemoved(), QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsDataChanged(), QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsInserted(), breakpointDataToScriptValue(), QScriptBreakpointsModel::data(), QScriptDebuggerAgent::positionChange(), and setLineNumber().
bool QScriptBreakpointData::operator!= | ( | const QScriptBreakpointData & | other | ) | const |
Returns true if this QScriptBreakpointData is not equal to the other data, otherwise returns false.
Definition at line 347 of file qscriptbreakpointdata.cpp.
QScriptBreakpointData & QScriptBreakpointData::operator= | ( | const QScriptBreakpointData & | other | ) |
Assigns other to this QScriptBreakpointData.
Definition at line 147 of file qscriptbreakpointdata.cpp.
bool QScriptBreakpointData::operator== | ( | const QScriptBreakpointData & | other | ) | const |
Returns true if this QScriptBreakpointData is equal to the other data, otherwise returns false.
Definition at line 324 of file qscriptbreakpointdata.cpp.
qint64 QScriptBreakpointData::scriptId | ( | ) | const |
Definition at line 155 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsAboutToBeRemoved(), QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsDataChanged(), QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointsInserted(), breakpointDataToScriptValue(), QScriptBreakpointsModel::data(), QScriptBreakpointData(), and QScriptDebuggerAgent::setBreakpoint().
void QScriptBreakpointData::setCondition | ( | const QString & | condition | ) |
Sets the condition of the breakpoint.
Definition at line 289 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataFromScriptValue(), and QScriptBreakpointsModel::setData().
void QScriptBreakpointData::setData | ( | const QVariant & | data | ) |
Sets custom data associated with the breakpoint.
Definition at line 307 of file qscriptbreakpointdata.cpp.
void QScriptBreakpointData::setEnabled | ( | bool | enabled | ) |
Sets the enabled state of the breakpoint.
Definition at line 209 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointEnableRequest(), breakpointDataFromScriptValue(), and QScriptBreakpointsModel::setData().
void QScriptBreakpointData::setFileName | ( | const QString & | fileName | ) |
Definition at line 173 of file qscriptbreakpointdata.cpp.
Referenced by QScriptDebuggerCodeWidgetPrivate::_q_onBreakpointToggleRequest(), QScriptDebuggerPrivate::_q_toggleBreakpoint(), and breakpointDataFromScriptValue().
void QScriptBreakpointData::setIgnoreCount | ( | int | count | ) |
Sets the ignore count of the breakpoint.
Definition at line 245 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataFromScriptValue(), and QScriptBreakpointsModel::setData().
void QScriptBreakpointData::setLineNumber | ( | int | lineNumber | ) |
Sets the breakpoint line number to lineNumber.
Definition at line 191 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataFromScriptValue().
void QScriptBreakpointData::setScriptId | ( | qint64 | id | ) |
Definition at line 161 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataFromScriptValue().
void QScriptBreakpointData::setSingleShot | ( | bool | singleShot | ) |
Sets the singleShot state of the breakpoint.
Definition at line 227 of file qscriptbreakpointdata.cpp.
Referenced by breakpointDataFromScriptValue(), and QScriptBreakpointsModel::setData().
|
friend |
Writes the given data to the specified stream.
Definition at line 361 of file qscriptbreakpointdata.cpp.
|
friend |
Reads a QScriptBreakpointData from the specified stream into the given data.
Definition at line 386 of file qscriptbreakpointdata.cpp.
|
private |
Definition at line 117 of file qscriptbreakpointdata_p.h.
Referenced by operator<<(), operator=(), operator>>(), and QScriptBreakpointData().