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 (qt-info@nokia.com)
11 ** No Commercial Usage
13 ** This file contains pre-release code and may not be distributed.
14 ** You may use this file in accordance with the terms and conditions
15 ** contained in the Technology Preview License Agreement accompanying
18 ** GNU Lesser General Public License Usage
20 ** Alternatively, this file may be used under the terms of the GNU Lesser
21 ** General Public License version 2.1 as published by the Free Software
22 ** Foundation and appearing in the file LICENSE.LGPL included in the
23 ** packaging of this file. Please review the following information to
24 ** ensure the GNU Lesser General Public License version 2.1 requirements
25 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
27 ** In addition, as a special exception, Nokia gives you certain additional
28 ** rights. These rights are described in the Nokia Qt LGPL Exception
29 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
31 ** If you have questions regarding the use of this file, please contact
32 ** Nokia at qt-info@nokia.com.
34 **************************************************************************/
36 #ifndef LIBVALGRIND_PROTOCOL_STATUS_H
37 #define LIBVALGRIND_PROTOCOL_STATUS_H
39 #include "../valgrind_global.h"
41 #include <QtCore/QMetaType>
42 #include <QtCore/QSharedDataPointer>
49 namespace XmlProtocol {
51 class VALGRINDSHARED_EXPORT Status
60 Status(const Status &other);
62 Status &operator=(const Status &other);
63 void swap(Status &other);
64 bool operator==(const Status &other) const;
67 void setState(State state);
70 void setTime(const QString &time);
74 QSharedDataPointer<Private> d;
77 } // namespace XmlProtocol
78 } // namespace Valgrind
80 Q_DECLARE_METATYPE(Valgrind::XmlProtocol::Status)
82 #endif // LIBVALGRIND_PROTOCOL_STATUS_H