44 #include <QtCore/qdatastream.h> 45 #include <QtCore/qstring.h> 46 #include <QtCore/qvariant.h> 185 return d->lineNumber;
221 return d->singleShot;
230 d->singleShot = singleShot;
239 return d->ignoreCount;
248 d->ignoreCount = count;
259 if (
d->ignoreCount == 0) {
316 return (((
d->scriptId != -1) || !
d->fileName.isEmpty())
317 && (
d->lineNumber != -1));
339 && (
d->data == od->
data)
349 return !(*
this == other);
The QVariant class acts like a union for the most common Qt data types.
friend Q_AUTOTEST_EXPORT QDataStream & operator>>(QDataStream &, QScriptBreakpointData &)
Reads a QScriptBreakpointData from the specified stream into the given data.
bool isSingleShot() const
Returns true if the breakpoint is single-shot, false otherwise.
#define QT_END_NAMESPACE
This macro expands to.
~QScriptBreakpointData()
Destroys this QScriptBreakpointData.
T * data() const
Returns the value of the pointer referenced by this object.
void setScriptId(qint64 id)
QVariant data() const
Returns custom data associated with the breakpoint.
void setFileName(const QString &fileName)
int ignoreCount() const
Returns the ignore count of the breakpoint.
bool operator==(const QScriptBreakpointData &other) const
Returns true if this QScriptBreakpointData is equal to the other data, otherwise returns false...
void setLineNumber(int lineNumber)
Sets the breakpoint line number to lineNumber.
The QString class provides a Unicode character string.
QScriptBreakpointData & operator=(const QScriptBreakpointData &other)
Assigns other to this QScriptBreakpointData.
void setSingleShot(bool singleShot)
Sets the singleShot state of the breakpoint.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void setIgnoreCount(int count)
Sets the ignore count of the breakpoint.
QScopedPointer< QScriptBreakpointDataPrivate > d_ptr
void setEnabled(bool enabled)
Sets the enabled state of the breakpoint.
friend Q_AUTOTEST_EXPORT QDataStream & operator<<(QDataStream &, const QScriptBreakpointData &)
Writes the given data to the specified stream.
void setCondition(const QString &condition)
Sets the condition of the breakpoint.
void setData(const QVariant &data)
Sets custom data associated with the breakpoint.
The QScriptBreakpointData class contains data associated with a breakpoint.
bool operator!=(const QScriptBreakpointData &other) const
Returns true if this QScriptBreakpointData is not equal to the other data, otherwise returns false...
QScriptBreakpointDataPrivate()
bool isEnabled() const
Returns true if the breakpoint is enabled, false otherwise.
~QScriptBreakpointDataPrivate()
QString condition() const
Returns the condition of the breakpoint.
The QDataStream class provides serialization of binary data to a QIODevice.
int hitCount() const
Returns the hit count of the breakpoint (the number of times the breakpoint has been triggered)...
QScriptBreakpointData()
Constructs an empty QScriptBreakpointData.
bool hit()
If the ignore count is 0, this function increments the hit count and returns true.
int lineNumber() const
Returns the breakpoint line number.