15 QStringList banksStringList = QStringList();
18 bool sequential =
false;
21 for (
int i = 0;
i < channelBank.size(); ++
i) {
23 banksString.append(QString(
"%1").arg(channelBank[
i]));
25 if (channelBank.size() > 1) {
26 if ((channelBank[i] + 1) == channelBank[i + 1]) {
36 }
else if (
i == channelBank.size() - 1)
37 banksString.append(QString(
"%1").arg(channelBank[
i]));
40 if ((channelBank[i] + 1) == channelBank[i + 1]) {
44 banksString.append(QString(
"%1,").arg(
49 banksString.append(QString(
"%1").arg(channelBank[i]));
51 if ((channelBank[i] + 1) == channelBank[i + 1]) {
65 if (banksString.isEmpty())
66 banksString.append(
"-");
69 banksStringList << banksString;
72 return banksStringList;
92 QVector<QVector<int>> cb;
96 for (
int i = 0;
i < cb.count();
i++) {
97 foreach (
const qint32 chan, cb.at(
i)) {
110 vids.insert(info.vendorID);
112 vids.insert(info.vendorID);
114 return vids.toList();
QList< int > getVendorIDs()
QList< USBInfo > m_firmwareUSBInfo
virtual QVector< QVector< int > > getChannelBanks()
Get banks of output PWM channels banks on the board.
Core plugin system that manages the plugins, their life cycle and their registered objects...
int getBankFromOutputChannel(int channel)
QList< USBInfo > m_bootloaderUSBInfo
virtual QStringList queryChannelBanks()
Query number & names of output PWM channels banks on the board.
int getBoardType()
Get the board type number.
static QString getBoardNameFromID(int id)
virtual QString shortName()=0