4#ifndef QQMLPROFILEREVENTLOCATION_P_H
5#define QQMLPROFILEREVENTLOCATION_P_H
7#include <QtCore/qstring.h>
8#include <QtCore/qhash.h>
9#include <QtCore/qdatastream.h>
10#include <QtCore/private/qglobal_p.h>
25class QQmlProfilerEventLocation
28 QQmlProfilerEventLocation() : m_line(-1),m_column(-1) {}
29 QQmlProfilerEventLocation(
const QString &file,
int lineNumber,
int columnNumber) :
30 m_filename(file), m_line(lineNumber), m_column(columnNumber)
36 m_line = m_column = -1;
41 return !m_filename.isEmpty();
44 QString filename()
const {
return m_filename; }
45 int line()
const {
return m_line; }
46 int column()
const {
return m_column; }
50 friend QDataStream &
operator<<(QDataStream &stream,
const QQmlProfilerEventLocation &location);
57inline bool operator==(
const QQmlProfilerEventLocation &location1,
58 const QQmlProfilerEventLocation &location2)
61 return location1.line() == location2.line() && location1.column() == location2.column()
62 && location1.filename() == location2.filename();
65inline bool operator!=(
const QQmlProfilerEventLocation &location1,
66 const QQmlProfilerEventLocation &location2)
68 return !(location1
== location2);
73 return qHash(location.filename())
74 ^ ((location.line() & 0xfff)
75 | ((location.column() << 16) & 0xff0000));
void setFlushInterval(quint32 flushInterval)
quint64 recordedFeatures() const
void traceFinished(qint64 timestamp, const QList< int > &engineIds)
void setRequestedFeatures(quint64 features)
void recordedFeaturesChanged(quint64 features)
void traceStarted(qint64 timestamp, const QList< int > &engineIds)
virtual void messageReceived(const QByteArray &) override
void recordingChanged(bool arg)
QQmlProfilerClient(QQmlProfilerClientPrivate &dd)
void onStateChanged(State status)
void sendRecordingStatus(int engineId=-1)
Combined button and popup list for selecting options.
QDataStream & operator<<(QDataStream &stream, const QQmlProfilerEventLocation &location)
size_t qHash(const QQmlProfilerEventLocation &location)
Q_DECLARE_TYPEINFO(QQmlProfilerEventLocation, Q_RELOCATABLE_TYPE)
bool operator!=(const QQmlProfilerEventLocation &location1, const QQmlProfilerEventLocation &location2)
bool operator==(const QQmlProfilerEventLocation &location1, const QQmlProfilerEventLocation &location2)
QDataStream & operator>>(QDataStream &stream, QQmlProfilerEventLocation &location)