Maemo: Add support for checking available TCP ports on device.

Reviewed-by: kh1
This commit is contained in:
Christian Kandeler
2010-10-15 15:06:50 +02:00
parent 270cd904f8
commit 235430fd8a
7 changed files with 304 additions and 4 deletions

View File

@@ -51,6 +51,7 @@ namespace Qt4ProjectManager {
namespace Internal {
class MaemoDeviceConfig;
class MaemoUsedPortsGatherer;
/**
* A dialog that runs a test of a device configuration.
@@ -67,12 +68,15 @@ private slots:
void processSshOutput(const QByteArray &output);
void handleConnectionError();
void handleTestProcessFinished(int exitStatus);
void handlePortListReady();
void handlePortListFailure(const QString &errMsg);
private:
void startConfigTest();
QString parseTestOutput();
void handleGeneralTestResult(int exitStatus);
void handleMadDeveloperTestResult(int exitStatus);
void finish();
Ui_MaemoConfigTestDialog *m_ui;
QPushButton *m_closeButton;
@@ -81,6 +85,7 @@ private:
QSharedPointer<Core::SshRemoteProcessRunner> m_testProcessRunner;
QString m_deviceTestOutput;
bool m_qtVersionOk;
MaemoUsedPortsGatherer *const m_portsGatherer;
enum DeviceTest { GeneralTest, MadDeveloperTest };
DeviceTest m_currentTest;