aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljsdebugclient/qdeclarativeoutputparser.h
diff options
context:
space:
mode:
authorKai Koehne <[email protected]>2011-10-31 16:42:31 +0100
committerKai Koehne <[email protected]>2011-11-01 17:04:15 +0100
commit8f7411fdad06828ba86c37e7f7f332d4c5f6e1da (patch)
tree44052711212a2c40d223ac2ce91e05e2e8d7f461 /src/libs/qmljsdebugclient/qdeclarativeoutputparser.h
parent3a4710e7809ef6fbba3d00f5a0433cd1ff943a89 (diff)
Unify parsing of application output in Debugger and Profiler
Change-Id: I8711f39aa44fea7d1a7091a27d77f5e73d5e4291 Reviewed-by: Aurindam Jana <[email protected]>
Diffstat (limited to 'src/libs/qmljsdebugclient/qdeclarativeoutputparser.h')
-rw-r--r--src/libs/qmljsdebugclient/qdeclarativeoutputparser.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/libs/qmljsdebugclient/qdeclarativeoutputparser.h b/src/libs/qmljsdebugclient/qdeclarativeoutputparser.h
new file mode 100644
index 00000000000..7206faed1e0
--- /dev/null
+++ b/src/libs/qmljsdebugclient/qdeclarativeoutputparser.h
@@ -0,0 +1,64 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation ([email protected])
+**
+** GNU Lesser General Public License Usage
+**
+** This file may be used under the terms of the GNU Lesser General Public
+** License version 2.1 as published by the Free Software Foundation and
+** appearing in the file LICENSE.LGPL included in the packaging of this file.
+** Please review the following information to ensure the GNU Lesser General
+** Public License version 2.1 requirements will be met:
+** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** Other Usage
+**
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at [email protected].
+**
+**************************************************************************/
+
+#ifndef QDECLARATIVEOUTPUTPARSER_H
+#define QDECLARATIVEOUTPUTPARSER_H
+
+#include "qmljsdebugclient_global.h"
+
+#include <QtCore/QObject>
+
+namespace QmlJsDebugClient {
+
+class QMLJSDEBUGCLIENT_EXPORT QDeclarativeOutputParser : public QObject
+{
+ Q_OBJECT
+public:
+ QDeclarativeOutputParser(QObject *parent = 0);
+
+ void setNoOutputText(const QString &text);
+ void processOutput(const QString &output);
+
+signals:
+ void waitingForConnectionMessage();
+ void connectionEstablishedMessage();
+ void errorMessage(const QString &detailedError);
+ void unknownMessage(const QString &unknownMessage);
+ void noOutputMessage();
+
+private:
+ QString m_noOutputText;
+ QString m_buffer;
+};
+
+} // namespace QmLJsDebugClient
+
+#endif // QDECLARATIVEOUTPUTPARSER_H