summaryrefslogtreecommitdiff
path: root/src/plugins/qnx/blackberrylogprocessrunner.h
diff options
context:
space:
mode:
authorTobias Nätterlund <tobias.naetterlund.qnx@kdab.com>2013-10-18 10:45:43 +0200
committerTobias Nätterlund <tobias.naetterlund@kdab.com>2013-10-21 10:31:15 +0200
commitc35a6d610cb2f7bc4650fc9358905d34c9dff2ad (patch)
treee130aea002b03fa7ca993aa3bcffc42339782454 /src/plugins/qnx/blackberrylogprocessrunner.h
parent3d2ef178f67138ce8aa89449aa65fc56e9b74a01 (diff)
downloadqt-creator-c35a6d610cb2f7bc4650fc9358905d34c9dff2ad.tar.gz
QNX: Refactor BlackBerryLogProcessRunner
This change introduce a separate class for running the slog2info process, in order to be able to use that for pure QNX (non-BlackBerry) devices. Also moved from using QSsh::SshRemoteProcessRunner to use ProcessExplorer::SshDeviceProcess for the tail/slog2info processes instead. Change-Id: If917bd2a1099800f1a7333639d674c8d1b16de7b Reviewed-by: Mehdi Fekari <mfekari@blackberry.com> Reviewed-by: David Kaspar <dkaspar@blackberry.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'src/plugins/qnx/blackberrylogprocessrunner.h')
-rw-r--r--src/plugins/qnx/blackberrylogprocessrunner.h43
1 files changed, 10 insertions, 33 deletions
diff --git a/src/plugins/qnx/blackberrylogprocessrunner.h b/src/plugins/qnx/blackberrylogprocessrunner.h
index 8a80bb0317..49a8948f20 100644
--- a/src/plugins/qnx/blackberrylogprocessrunner.h
+++ b/src/plugins/qnx/blackberrylogprocessrunner.h
@@ -35,19 +35,18 @@
#include "blackberrydeviceconfiguration.h"
#include <utils/outputformat.h>
-#include <ssh/sshconnection.h>
-
-#include <QDateTime>
#include <QObject>
-namespace QSsh {
-class SshRemoteProcessRunner;
+namespace ProjectExplorer {
+class SshDeviceProcess;
}
namespace Qnx {
namespace Internal {
+class Slog2InfoRunner;
+
class BlackBerryLogProcessRunner : public QObject
{
Q_OBJECT
@@ -63,39 +62,17 @@ public slots:
void stop();
private slots:
- void handleSlog2infoFound();
- void readLaunchTime();
- void readApplicationLog();
-
- void handleTailOutput();
- void handleTailProcessConnectionError();
-
- void handleSlog2infoOutput();
- void handleSlog2infoProcessConnectionError();
-
- void handleLogError();
+ void launchTailProcess();
+ void readTailStandardOutput();
+ void readTailStandardError();
+ void handleTailProcessError();
private:
QString m_appId;
- QString m_tailCommand;
- QString m_slog2infoCommand;
-
- bool m_currentLogs;
- bool m_slog2infoFound;
-
- QDateTime m_launchDateTime;
BlackBerryDeviceConfiguration::ConstPtr m_device;
- QSsh::SshConnectionParameters m_sshParams;
-
- QSsh::SshRemoteProcessRunner *m_tailProcess;
- QSsh::SshRemoteProcessRunner *m_slog2infoProcess;
-
- QSsh::SshRemoteProcessRunner *m_testSlog2Process;
- QSsh::SshRemoteProcessRunner *m_launchDateTimeProcess;
-
- bool showQtMessage(const QString& pattern, const QString& line);
- void killProcessRunner(QSsh::SshRemoteProcessRunner *processRunner, const QString& command);
+ ProjectExplorer::SshDeviceProcess *m_tailProcess;
+ Slog2InfoRunner *m_slog2InfoRunner;
};
} // namespace Internal
} // namespace Qnx