Add AndroidRunnable

Using the AndroidRunnable is easy for other plugins to run custom adb
commands before intent is started and after it's stopped.

Change-Id: I012ae87c92cea16aa8074dce2dc6f2b0c4ebeb30
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
BogDan Vatra
2016-01-29 14:05:00 +02:00
parent b5b328c331
commit 221b03a162
6 changed files with 91 additions and 23 deletions

View File

@@ -27,6 +27,7 @@
#define ANDROIDRUNNER_H
#include "androidconfigurations.h"
#include "androidrunnable.h"
#include <projectexplorer/runconfiguration.h>
#include <qmldebug/qmldebugcommandlinearguments.h>
@@ -58,6 +59,8 @@ public:
~AndroidRunner();
QString displayName() const;
void setRunnable(const AndroidRunnable &runnable);
const AndroidRunnable &runnable() const { return m_androidRunnable; }
public slots:
void start();
@@ -92,12 +95,9 @@ private:
QTimer m_checkPIDTimer;
bool m_wasStarted;
int m_tries;
QByteArray m_stdoutBuffer;
QByteArray m_stderrBuffer;
QString m_intentName;
QString m_packageName;
QString m_deviceSerialNumber;
AndroidRunnable m_androidRunnable;
qint64 m_processPID;
bool m_useCppDebugger;
QmlDebug::QmlDebugServicesPreset m_qmlDebugServices;