GammaRay  2.4.0
probeabi.h
1 /*
2  probeabi.h
3 
4  This file is part of GammaRay, the Qt application inspection and
5  manipulation tool.
6 
7  Copyright (C) 2014-2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
8  Author: Volker Krause <volker.krause@kdab.com>
9 
10  Licensees holding valid commercial KDAB GammaRay licenses may use this file in
11  acuordance with GammaRay Commercial License Agreement provided with the Software.
12 
13  Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 
15  This program is free software; you can redistribute it and/or modify
16  it under the terms of the GNU General Public License as published by
17  the Free Software Foundation, either version 2 of the License, or
18  (at your option) any later version.
19 
20  This program is distributed in the hope that it will be useful,
21  but WITHOUT ANY WARRANTY; without even the implied warranty of
22  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  GNU General Public License for more details.
24 
25  You should have received a copy of the GNU General Public License
26  along with this program. If not, see <http://www.gnu.org/licenses/>.
27 */
28 
29 #ifndef GAMMARAY_PROBEABI_H
30 #define GAMMARAY_PROBEABI_H
31 
32 #include "gammaray_launcher_export.h"
33 
34 #include <QSharedDataPointer>
35 
36 namespace GammaRay {
37 
38 class ProbeABIPrivate;
39 
44 class GAMMARAY_LAUNCHER_EXPORT ProbeABI
45 {
46 public:
47  ProbeABI();
48  ProbeABI(const ProbeABI &other);
49  ~ProbeABI();
50 
51  ProbeABI& operator=(const ProbeABI &other);
52 
54  int majorQtVersion() const;
55  int minorQtVersion() const;
56  void setQtVersion(int major, int minor);
57  bool hasQtVersion() const;
58 
60  QString architecture() const;
61  void setArchitecture(const QString &architecture);
62 
64  bool isDebug() const;
65  void setIsDebug(bool debug);
67  bool isDebugRelevant() const;
68 
70  QString compiler() const;
71  void setCompiler(const QString &compiler);
72 
74  bool isValid() const;
75 
77  bool isCompatible(const ProbeABI &referenceABI) const;
78 
79  bool operator==(const ProbeABI &rhs) const;
80 
84  bool operator<(const ProbeABI &rhs) const;
85 
87  QString id() const;
88  static ProbeABI fromString(const QString& id);
89 
91  QString displayString() const;
92 
93 private:
94  QSharedDataPointer<ProbeABIPrivate> d;
95 };
96 
97 }
98 
99 #endif // GAMMARAY_PROBEABI_H
Describes a probe ABI. The probe ABI is everything that determines if a probe is compatible with a gi...
Definition: probeabi.h:44
Definition: endpoint.h:42
QString displayString(const QObject *object)

Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
http://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
http://www.kdab.com/kdab-products/gammaray/