Revision control

Copy as Markdown

// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QT3DCORE_QSYSTEMINFORMATIONSERVICE_P_H
#define QT3DCORE_QSYSTEMINFORMATIONSERVICE_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of other Qt classes. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <Qt3DCore/qt3dcore_global.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qvariant.h>
#include <Qt3DCore/private/qservicelocator_p.h>
QT_BEGIN_NAMESPACE
namespace Qt3DCore {
class QSystemInformationServicePrivate;
struct JobRunStats;
class Q_3DCORESHARED_EXPORT QSystemInformationService : public QAbstractServiceProvider
{
Q_OBJECT
Q_PROPERTY(bool traceEnabled READ isTraceEnabled WRITE setTraceEnabled NOTIFY traceEnabledChanged)
Q_PROPERTY(bool graphicsTraceEnabled READ isGraphicsTraceEnabled WRITE setGraphicsTraceEnabled NOTIFY graphicsTraceEnabledChanged)
Q_PROPERTY(bool commandServerEnabled READ isCommandServerEnabled CONSTANT)
public:
QSystemInformationService(QAspectEngine *aspectEngine);
bool isTraceEnabled() const;
bool isGraphicsTraceEnabled() const;
bool isCommandServerEnabled() const;
QStringList aspectNames() const;
int threadPoolThreadCount() const;
void writePreviousFrameTraces();
Q_INVOKABLE void revealLogFolder();
public Q_SLOTS:
void setTraceEnabled(bool traceEnabled);
void setGraphicsTraceEnabled(bool graphicsTraceEnabled);
QVariant executeCommand(const QString &command);
void dumpCommand(const QString &command);
signals:
void traceEnabledChanged(bool traceEnabled);
void graphicsTraceEnabledChanged(bool graphicsTraceEnabled);
protected:
Q_DECLARE_PRIVATE(QSystemInformationService)
QSystemInformationService(QAspectEngine *aspectEngine, const QString &description);
QSystemInformationService(QSystemInformationServicePrivate &dd);
};
} // namespace Qt3DCore
QT_END_NAMESPACE
#endif // QT3DCORE_QSYSTEMINFORMATIONSERVICE_P_H