on ef98de7 help sign in
unity8/src/DebuggingController.h
54 lines 1.7 kB history raw
1/*
2 * Copyright (C) 2016 - Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License, as
6 * published by the Free Software Foundation; either version 2.1 or 3.0
7 * of the License.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranties of
11 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the applicable version of the GNU Lesser General Public
13 * License for more details.
14 *
15 * You should have received a copy of both the GNU Lesser General Public
16 * License along with this program. If not, see <http://www.gnu.org/licenses/>
17 */
20#ifndef DEBUGGINGCONTROLLER_H
21#define DEBUGGINGCONTROLLER_H
23#include <QQmlEngine>
24#include <QQmlExtensionPlugin>
26#include "unitydbusobject.h"
28class DebuggingController: public UnityDBusObject
30 Q_OBJECT
31 Q_CLASSINFO("D-Bus Interface", "com.canonical.Unity8.Debugging")
33public:
34 DebuggingController(QObject *parent = nullptr);
35 ~DebuggingController() = default;
37public Q_SLOTS:
38 /**
39 * Set the QSG_VISUALIZE mode. This follows the vlues supported by Qt in
40 * http://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph-renderer.html
41 */
42 Q_SCRIPTABLE void SetSceneGraphVisualizer(const QString &visualizer);
44 /**
45 * Slow down animations for better inspection.
46 */
47 Q_SCRIPTABLE void SetSlowAnimations(bool slowAnimations);
49 /**
50 * Set the QLoggingCategory filter rules.
51 */
52 Q_SCRIPTABLE void SetLoggingFilterRules(const QString &filterRules);
53};
54#endif // DEBUGGINGCONTROLLER_H