63 QObject::connect(ExtensionSystem::PluginManager::instance(), SIGNAL(objectAdded(QObject *)),
64 this, SLOT(objectAdded(QObject *)));
65 QObject::connect(ExtensionSystem::PluginManager::instance(),
66 SIGNAL(aboutToRemoveObject(QObject *)),
this,
67 SLOT(aboutToRemoveObject(QObject *)));
80 auto vids = board->getVendorIDs();
81 for (
const auto vid : vids)
92 void BoardManager::objectAdded(QObject *obj)
95 IBoardType *board = Aggregation::query<IBoardType>(obj);
107 void BoardManager::aboutToRemoveObject(QObject *obj)
110 IBoardType *board = Aggregation::query<IBoardType>(obj);
132 const auto infos = board->firmwareUSBInfo();
133 for (
const auto &info : qAsConst(infos))
143 const auto infos = board->bootloaderUSBInfo();
144 for (
const auto &info : qAsConst(infos))
QList< IBoardType * > m_boardTypesList
QList< int > getKnownVendorIDs()
getKnownVendorIDs Get all USB VendorIDs known by the board manager. This can be used by any plugin wh...
QList< IBoardType::USBInfo > getKnownFirmwareUSBInfo()
getKnownFirmwareUSBInfo
int getBoardType()
Get the board type number.
QList< IBoardType::USBInfo > getKnownBootloaderUSBInfo()
getKnownBootloaderUSBInfo
IBoardType * getBoard(int type)
Find a board from it's type.