diff options
Diffstat (limited to 'examples/multimedia/video/qmlvideo/performancemonitor.h')
-rw-r--r-- | examples/multimedia/video/qmlvideo/performancemonitor.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/multimedia/video/qmlvideo/performancemonitor.h b/examples/multimedia/video/qmlvideo/performancemonitor.h new file mode 100644 index 000000000..683468619 --- /dev/null +++ b/examples/multimedia/video/qmlvideo/performancemonitor.h @@ -0,0 +1,33 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +#ifndef PERFORMANCEMONITOR_H +#define PERFORMANCEMONITOR_H + +#include <QByteArray> + +namespace PerformanceMonitor { + +struct State +{ + State() : valid(true), logging(false), visible(true) { } + State(bool l, bool v) : valid(true), logging(l), visible(v) { } + bool operator==(const State &other) const + { + return logging == other.logging && visible == other.visible; + } + bool operator!=(const State &other) const + { + return logging != other.logging || visible != other.visible; + } + + bool parseArgument(const QByteArray &arg); + + bool valid; + bool logging; + bool visible; +}; + +} // namespace PerformanceMonitor + +#endif // PERFORMANCEMONITOR_H |