2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2011-03-04 12:15:18 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-03-04 12:15:18 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QSharedDataPointer>
|
2020-07-09 11:44:26 +02:00
|
|
|
#include <QVector>
|
2011-03-04 12:15:18 +01:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QString;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace Valgrind {
|
|
|
|
|
namespace XmlProtocol {
|
|
|
|
|
|
2011-07-05 10:40:37 +02:00
|
|
|
class SuppressionFrame
|
2011-05-18 17:05:49 +02:00
|
|
|
{
|
2011-03-04 12:15:18 +01:00
|
|
|
public:
|
|
|
|
|
SuppressionFrame();
|
|
|
|
|
SuppressionFrame(const SuppressionFrame &other);
|
|
|
|
|
~SuppressionFrame();
|
|
|
|
|
SuppressionFrame &operator=(const SuppressionFrame &other);
|
|
|
|
|
void swap(SuppressionFrame &other);
|
|
|
|
|
bool operator==(const SuppressionFrame &other) const;
|
|
|
|
|
bool operator!=(const SuppressionFrame &other) const
|
|
|
|
|
{
|
|
|
|
|
return !operator==(other);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString object() const;
|
|
|
|
|
void setObject(const QString &object);
|
|
|
|
|
|
|
|
|
|
QString function() const;
|
|
|
|
|
void setFunction(const QString &function);
|
|
|
|
|
|
|
|
|
|
QString toString() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
class Private;
|
|
|
|
|
QSharedDataPointer<Private> d;
|
|
|
|
|
};
|
|
|
|
|
|
2018-12-10 08:11:18 +01:00
|
|
|
using SuppressionFrames = QVector<SuppressionFrame>;
|
2011-05-18 17:05:49 +02:00
|
|
|
|
2011-07-05 10:40:37 +02:00
|
|
|
class Suppression
|
2011-05-18 17:05:49 +02:00
|
|
|
{
|
2011-03-04 12:15:18 +01:00
|
|
|
public:
|
|
|
|
|
Suppression();
|
|
|
|
|
Suppression(const Suppression &other);
|
|
|
|
|
~Suppression();
|
|
|
|
|
Suppression &operator=(const Suppression &other);
|
2011-05-18 17:05:49 +02:00
|
|
|
|
2011-03-04 12:15:18 +01:00
|
|
|
void swap(Suppression &other);
|
|
|
|
|
bool operator==(const Suppression &other) const;
|
|
|
|
|
|
|
|
|
|
bool isNull() const;
|
|
|
|
|
|
|
|
|
|
QString name() const;
|
|
|
|
|
void setName(const QString &name);
|
|
|
|
|
|
|
|
|
|
QString kind() const;
|
|
|
|
|
void setKind(const QString &kind);
|
|
|
|
|
|
|
|
|
|
QString auxKind() const;
|
|
|
|
|
void setAuxKind(const QString &kind);
|
|
|
|
|
|
|
|
|
|
QString rawText() const;
|
|
|
|
|
void setRawText(const QString &text);
|
|
|
|
|
|
2011-05-18 17:05:49 +02:00
|
|
|
SuppressionFrames frames() const;
|
|
|
|
|
void setFrames(const SuppressionFrames &frames);
|
2011-03-04 12:15:18 +01:00
|
|
|
|
|
|
|
|
QString toString() const;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
class Private;
|
|
|
|
|
QSharedDataPointer<Private> d;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace XmlProtocol
|
|
|
|
|
} // namespace Valgrind
|