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 <QMetaType>
|
|
|
|
|
#include <QSharedDataPointer>
|
2011-03-04 12:15:18 +01:00
|
|
|
|
|
|
|
|
namespace Valgrind {
|
|
|
|
|
namespace XmlProtocol {
|
|
|
|
|
|
2011-07-05 10:40:37 +02:00
|
|
|
class Status
|
2011-03-04 12:15:18 +01:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
enum State {
|
|
|
|
|
Running,
|
|
|
|
|
Finished
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Status();
|
|
|
|
|
Status(const Status &other);
|
|
|
|
|
~Status();
|
|
|
|
|
Status &operator=(const Status &other);
|
|
|
|
|
void swap(Status &other);
|
|
|
|
|
bool operator==(const Status &other) const;
|
|
|
|
|
|
|
|
|
|
State state() const;
|
|
|
|
|
void setState(State state);
|
|
|
|
|
|
|
|
|
|
QString time() const;
|
|
|
|
|
void setTime(const QString &time);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
class Private;
|
|
|
|
|
QSharedDataPointer<Private> d;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace XmlProtocol
|
|
|
|
|
} // namespace Valgrind
|
|
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(Valgrind::XmlProtocol::Status)
|