12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef QQMLDEBUG_H
- #define QQMLDEBUG_H
- #include <QtQml/qtqmlglobal.h>
- #include <QtCore/qstring.h>
- #include <QtCore/qvariant.h>
- QT_BEGIN_NAMESPACE
- struct Q_QML_EXPORT QQmlDebuggingEnabler
- {
- enum StartMode {
- DoNotWaitForClient,
- WaitForClient
- };
- QQmlDebuggingEnabler(bool printWarning = true);
- static QStringList debuggerServices();
- static QStringList inspectorServices();
- static QStringList profilerServices();
- static void setServices(const QStringList &services);
- static bool startTcpDebugServer(int port, StartMode mode = DoNotWaitForClient,
- const QString &hostName = QString());
- static bool connectToLocalDebugger(const QString &socketFileName,
- StartMode mode = DoNotWaitForClient);
- static bool startDebugConnector(const QString &pluginName,
- const QVariantHash &configuration = QVariantHash());
- };
- #if defined(QT_QML_DEBUG_NO_WARNING)
- static QQmlDebuggingEnabler qQmlEnableDebuggingHelper(false);
- #elif defined(QT_QML_DEBUG)
- static QQmlDebuggingEnabler qQmlEnableDebuggingHelper(true);
- #endif
- QT_END_NAMESPACE
- #endif
|