OSDN Git Service

Update license.
[qt-creator-jp/qt-creator-jp.git] / src / libs / valgrind / xmlprotocol / suppression.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Author: Frank Osterfeld, KDAB (frank.osterfeld@kdab.com)
8 **
9 ** Contact: Nokia Corporation (info@qt.nokia.com)
10 **
11 **
12 ** GNU Lesser General Public License Usage
13 **
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.
20 **
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.
24 **
25 ** Other Usage
26 **
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.
29 **
30 ** If you have questions regarding the use of this file, please contact
31 ** Nokia at qt-info@nokia.com.
32 **
33 **************************************************************************/
34
35 #ifndef LIBVALGRIND_PROTOCOL_SUPPRESSION_H
36 #define LIBVALGRIND_PROTOCOL_SUPPRESSION_H
37
38 #include "../valgrind_global.h"
39
40 #include <QtCore/QSharedDataPointer>
41
42 QT_BEGIN_NAMESPACE
43 class QString;
44 template <typename T> class QVector;
45 QT_END_NAMESPACE
46
47 namespace Valgrind {
48 namespace XmlProtocol {
49
50 class VALGRINDSHARED_EXPORT SuppressionFrame {
51 public:
52     SuppressionFrame();
53     SuppressionFrame(const SuppressionFrame &other);
54     ~SuppressionFrame();
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
59     {
60         return !operator==(other);
61     }
62
63     QString object() const;
64     void setObject(const QString &object);
65
66     QString function() const;
67     void setFunction(const QString &function);
68
69     QString toString() const;
70
71 private:
72     class Private;
73     QSharedDataPointer<Private> d;
74 };
75
76 class VALGRINDSHARED_EXPORT Suppression {
77 public:
78     Suppression();
79     Suppression(const Suppression &other);
80     ~Suppression();
81     Suppression &operator=(const Suppression &other);
82     void swap(Suppression &other);
83     bool operator==(const Suppression &other) const;
84
85     bool isNull() const;
86
87     QString name() const;
88     void setName(const QString &name);
89
90     QString kind() const;
91     void setKind(const QString &kind);
92
93     QString auxKind() const;
94     void setAuxKind(const QString &kind);
95
96     QString rawText() const;
97     void setRawText(const QString &text);
98
99     QVector<SuppressionFrame> frames() const;
100     void setFrames(const QVector<SuppressionFrame> &frames);
101
102     QString toString() const;
103
104 private:
105     class Private;
106     QSharedDataPointer<Private> d;
107 };
108
109 } // namespace XmlProtocol
110 } // namespace Valgrind
111
112 #endif // LIBVALGRIND_PROTOCOL_SUPPRESSION_H