44 #include <QtCore/qdatastream.h> 45 #include <QtCore/qstring.h> 46 #include <QtCore/qstringlist.h> 97 d_ptr->timeStamp = timeStamp;
134 return allLines.
mid(
qMax(0, startLineNumber -
d->baseLineNumber), count);
150 return d->baseLineNumber;
182 return !(*
this == other);
204 data.
d_ptr->ref.ref();
QScriptScriptDataPrivate()
bool operator==(const QScriptScriptData &other) const
friend Q_AUTOTEST_EXPORT QDataStream & operator>>(QDataStream &, QScriptScriptData &)
friend Q_AUTOTEST_EXPORT QDataStream & operator<<(QDataStream &, const QScriptScriptData &)
#define QT_END_NAMESPACE
This macro expands to.
int baseLineNumber() const
T * data() const
Returns the value of the pointer referenced by this object.
QScriptScriptData & operator=(const QScriptScriptData &other)
bool isValid() const
Returns true if both the date and the time are valid; otherwise returns false.
The QString class provides a Unicode character string.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
QList< T > mid(int pos, int length=-1) const
Returns a list whose elements are copied from this list, starting at position pos.
The QScriptScriptData class holds data associated with a script.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDateTime timeStamp() const
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
~QScriptScriptDataPrivate()
void reset(T *other=0)
Deletes the existing object it is pointing to if any, and sets its pointer to other.
QScopedSharedPointer< QScriptScriptDataPrivate > d_ptr
bool operator!=(const QScriptScriptData &other) const
The QDateTime class provides date and time functions.
static QDateTime currentDateTime()
Returns the current datetime, as reported by the system clock, in the local time zone.
The QDataStream class provides serialization of binary data to a QIODevice.
QStringList lines(int startLineNumber, int count) const
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.