1 /**************************************************************************
3 ** This file is part of Qt Creator
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
7 ** Author: Frank Osterfeld, KDAB (frank.osterfeld@kdab.com)
9 ** Contact: Nokia Corporation (info@qt.nokia.com)
12 ** GNU Lesser General Public License Usage
14 ** This file may be used under the terms of the GNU Lesser General Public
15 ** License version 2.1 as published by the Free Software Foundation and
16 ** appearing in the file LICENSE.LGPL included in the packaging of this file.
17 ** Please review the following information to ensure the GNU Lesser General
18 ** Public License version 2.1 requirements will be met:
19 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
21 ** In addition, as a special exception, Nokia gives you certain additional
22 ** rights. These rights are described in the Nokia Qt LGPL Exception
23 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
27 ** Alternatively, this file may be used in accordance with the terms and
28 ** conditions contained in a signed written agreement between you and Nokia.
30 ** If you have questions regarding the use of this file, please contact
31 ** Nokia at qt-info@nokia.com.
33 **************************************************************************/
35 #ifndef LIBVALGRIND_PROTOCOL_SUPPRESSION_H
36 #define LIBVALGRIND_PROTOCOL_SUPPRESSION_H
38 #include "../valgrind_global.h"
40 #include <QtCore/QSharedDataPointer>
44 template <typename T> class QVector;
48 namespace XmlProtocol {
50 class VALGRINDSHARED_EXPORT SuppressionFrame {
53 SuppressionFrame(const SuppressionFrame &other);
55 SuppressionFrame &operator=(const SuppressionFrame &other);
56 void swap(SuppressionFrame &other);
57 bool operator==(const SuppressionFrame &other) const;
58 bool operator!=(const SuppressionFrame &other) const
60 return !operator==(other);
63 QString object() const;
64 void setObject(const QString &object);
66 QString function() const;
67 void setFunction(const QString &function);
69 QString toString() const;
73 QSharedDataPointer<Private> d;
76 class VALGRINDSHARED_EXPORT Suppression {
79 Suppression(const Suppression &other);
81 Suppression &operator=(const Suppression &other);
82 void swap(Suppression &other);
83 bool operator==(const Suppression &other) const;
88 void setName(const QString &name);
91 void setKind(const QString &kind);
93 QString auxKind() const;
94 void setAuxKind(const QString &kind);
96 QString rawText() const;
97 void setRawText(const QString &text);
99 QVector<SuppressionFrame> frames() const;
100 void setFrames(const QVector<SuppressionFrame> &frames);
102 QString toString() const;
106 QSharedDataPointer<Private> d;
109 } // namespace XmlProtocol
110 } // namespace Valgrind
112 #endif // LIBVALGRIND_PROTOCOL_SUPPRESSION_H