From a862f9638ef21d5fd7848a4f07ac57dbde049b64 Mon Sep 17 00:00:00 2001 From: zedamota Date: Sun, 11 Apr 2010 15:38:21 +0000 Subject: [PATCH] Uploader Plugin- Added installed ports debug information. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@482 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../src/plugins/uploader/uploadergadgetoptionspage.cpp | 10 ++++++++++ .../src/plugins/uploader/uploadergadgetoptionspage.h | 1 + 2 files changed, 11 insertions(+) diff --git a/ground/src/plugins/uploader/uploadergadgetoptionspage.cpp b/ground/src/plugins/uploader/uploadergadgetoptionspage.cpp index 0fce16c08..3e1414552 100755 --- a/ground/src/plugins/uploader/uploadergadgetoptionspage.cpp +++ b/ground/src/plugins/uploader/uploadergadgetoptionspage.cpp @@ -258,6 +258,16 @@ QWidget *UploaderGadgetOptionsPage::createPage(QWidget *parent) QList ports =QextSerialEnumerator ::getPorts(); qSort(ports.begin(), ports.end()); + qDebug() << "List of ports:"; + for (int i = 0; i < ports.size(); i++) { + qDebug() << "port name:" << ports.at(i).portName; + qDebug() << "friendly name:" << ports.at(i).friendName; + qDebug() << "physical name:" << ports.at(i).physName; + qDebug() << "enumerator name:" << ports.at(i).enumName; + qDebug() << "vendor ID:" << QString::number(ports.at(i).vendorID, 16); + qDebug() << "product ID:" << QString::number(ports.at(i).productID, 16); + qDebug() << "==================================="; + } #ifdef Q_OS_WIN for (int i = 0; i < ports.size(); i++) { m_portCB->addItem((QString)ports.at(i).portName.toLocal8Bit().constData()); diff --git a/ground/src/plugins/uploader/uploadergadgetoptionspage.h b/ground/src/plugins/uploader/uploadergadgetoptionspage.h index 7ede48079..2ec53b3fd 100755 --- a/ground/src/plugins/uploader/uploadergadgetoptionspage.h +++ b/ground/src/plugins/uploader/uploadergadgetoptionspage.h @@ -31,6 +31,7 @@ #include "coreplugin/dialogs/ioptionspage.h" #include "QString" #include +#include namespace Core { class IUAVGadgetConfiguration; }